Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
91ba05cc
Commit
91ba05cc
authored
Jan 08, 2018
by
Gennadiy Civil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small cleanups, merge
parent
3d27bdef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
sample4_unittest.cc
googletest/samples/sample4_unittest.cc
+4
-1
sample5_unittest.cc
googletest/samples/sample5_unittest.cc
+1
-1
No files found.
googletest/samples/sample4_unittest.cc
View file @
91ba05cc
...
@@ -29,10 +29,12 @@
...
@@ -29,10 +29,12 @@
//
//
// Author: wan@google.com (Zhanyong Wan)
// Author: wan@google.com (Zhanyong Wan)
#include "gtest/gtest.h"
#include "sample4.h"
#include "sample4.h"
#include "gtest/gtest.h"
namespace
{
namespace
{
// Tests the Increment() method.
// Tests the Increment() method.
TEST
(
Counter
,
Increment
)
{
TEST
(
Counter
,
Increment
)
{
Counter
c
;
Counter
c
;
...
@@ -43,4 +45,5 @@ TEST(Counter, Increment) {
...
@@ -43,4 +45,5 @@ TEST(Counter, Increment) {
EXPECT_EQ
(
1
,
c
.
Increment
());
EXPECT_EQ
(
1
,
c
.
Increment
());
EXPECT_EQ
(
2
,
c
.
Increment
());
EXPECT_EQ
(
2
,
c
.
Increment
());
}
}
}
// namespace
}
// namespace
googletest/samples/sample5_unittest.cc
View file @
91ba05cc
...
@@ -46,9 +46,9 @@
...
@@ -46,9 +46,9 @@
#include <limits.h>
#include <limits.h>
#include <time.h>
#include <time.h>
#include "sample3-inl.h"
#include "gtest/gtest.h"
#include "gtest/gtest.h"
#include "sample1.h"
#include "sample1.h"
#include "sample3-inl.h"
namespace
{
namespace
{
// In this sample, we want to ensure that every test finishes within
// In this sample, we want to ensure that every test finishes within
// ~5 seconds. If a test takes longer to run, we consider it a
// ~5 seconds. If a test takes longer to run, we consider it a
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment