Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
25e1436b
Unverified
Commit
25e1436b
authored
Aug 01, 2018
by
tisi1988
Committed by
GitHub
Aug 01, 2018
Browse files
Merge branch 'master' into master
parents
1ae4fdb7
4f160f73
Changes
52
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
39 additions
and
15 deletions
+39
-15
googlemock/include/gmock/internal/gmock-generated-internal-utils.h.pump
...lude/gmock/internal/gmock-generated-internal-utils.h.pump
+2
-0
googlemock/include/gmock/internal/gmock-internal-utils.h
googlemock/include/gmock/internal/gmock-internal-utils.h
+2
-0
googlemock/include/gmock/internal/gmock-port.h
googlemock/include/gmock/internal/gmock-port.h
+2
-0
googlemock/test/gmock_stress_test.cc
googlemock/test/gmock_stress_test.cc
+1
-2
googletest/docs/primer.md
googletest/docs/primer.md
+7
-13
googletest/include/gtest/gtest-death-test.h
googletest/include/gtest/gtest-death-test.h
+1
-0
googletest/include/gtest/gtest-message.h
googletest/include/gtest/gtest-message.h
+2
-0
googletest/include/gtest/gtest-param-test.h
googletest/include/gtest/gtest-param-test.h
+1
-0
googletest/include/gtest/gtest-param-test.h.pump
googletest/include/gtest/gtest-param-test.h.pump
+1
-0
googletest/include/gtest/gtest-printers.h
googletest/include/gtest/gtest-printers.h
+2
-0
googletest/include/gtest/gtest-spi.h
googletest/include/gtest/gtest-spi.h
+2
-0
googletest/include/gtest/gtest-test-part.h
googletest/include/gtest/gtest-test-part.h
+2
-0
googletest/include/gtest/gtest-typed-test.h
googletest/include/gtest/gtest-typed-test.h
+2
-0
googletest/include/gtest/gtest.h
googletest/include/gtest/gtest.h
+2
-0
googletest/include/gtest/gtest_pred_impl.h
googletest/include/gtest/gtest_pred_impl.h
+2
-0
googletest/include/gtest/gtest_prod.h
googletest/include/gtest/gtest_prod.h
+1
-0
googletest/include/gtest/internal/gtest-death-test-internal.h
...letest/include/gtest/internal/gtest-death-test-internal.h
+1
-0
googletest/include/gtest/internal/gtest-filepath.h
googletest/include/gtest/internal/gtest-filepath.h
+2
-0
googletest/include/gtest/internal/gtest-internal.h
googletest/include/gtest/internal/gtest-internal.h
+2
-0
googletest/include/gtest/internal/gtest-linked_ptr.h
googletest/include/gtest/internal/gtest-linked_ptr.h
+2
-0
No files found.
googlemock/include/gmock/internal/gmock-generated-internal-utils.h.pump
View file @
25e1436b
...
...
@@ -39,6 +39,8 @@ $var n = 10 $$ The maximum arity we support.
// This file contains template meta-programming utility classes needed
// for implementing Google Mock.
// GOOGLETEST_CM0002 DO NOT DELETE
#ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_GENERATED_INTERNAL_UTILS_H_
#define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_GENERATED_INTERNAL_UTILS_H_
...
...
googlemock/include/gmock/internal/gmock-internal-utils.h
View file @
25e1436b
...
...
@@ -35,6 +35,8 @@
// Mock. They are subject to change without notice, so please DO NOT
// USE THEM IN USER CODE.
// GOOGLETEST_CM0002 DO NOT DELETE
#ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_INTERNAL_UTILS_H_
#define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_INTERNAL_UTILS_H_
...
...
googlemock/include/gmock/internal/gmock-port.h
View file @
25e1436b
...
...
@@ -36,6 +36,8 @@
// end with _ are part of Google Mock's public API and can be used by
// code outside Google Mock.
// GOOGLETEST_CM0002 DO NOT DELETE
#ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_
#define GMOCK_INCLUDE_GMOCK_INTERNAL_GMOCK_PORT_H_
...
...
googlemock/test/gmock_stress_test.cc
View file @
25e1436b
...
...
@@ -33,13 +33,12 @@
// threads concurrently.
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace
testing
{
namespace
{
// From
"gtest/internal/
gtest-port.h
"
.
// From gtest-port.h.
using
::
testing
::
internal
::
ThreadWithParam
;
// The maximum number of test threads (not including helper threads)
...
...
googletest/docs/primer.md
View file @
25e1436b
...
...
@@ -203,7 +203,7 @@ for more details.
If you're working with floating point numbers, you may want to use the floating
point variations of some of these macros in order to avoid problems caused by
rounding. See
[
Advanced googletest Topics
](
advanced
)
for details.
rounding. See
[
Advanced googletest Topics
](
advanced
.md
)
for details.
Macros in this section work with both narrow and wide string objects (
`string`
and
`wstring`
).
...
...
@@ -219,18 +219,12 @@ as `ASSERT_EQ(expected, actual)`, so lots of existing code uses this order. Now
The assertions in this group compare two
**C strings**
. If you want to compare
two
`string`
objects, use
`EXPECT_EQ`
,
`EXPECT_NE`
, and etc instead.
| Fatal assertion | Nonfatal assertion | Verifies |
| ----------------------- | ----------------------- | ---------------------- |
|
`ASSERT_STREQ(str1, | `
EXPECT_STREQ(str1, | the two C strings have |
: str2);
` : str2);`
: the same content :
|
`ASSERT_STRNE(str1, | `
EXPECT_STRNE(str1, | the two C strings have |
: str2);
` : str2);`
: different contents :
|
`ASSERT_STRCASEEQ(str1, | `
EXPECT_STRCASEEQ(str1, | the two C strings have |
: str2);
` : str2);`
: the same content, :
: : : ignoring case :
|
`ASSERT_STRCASENE(str1, | `
EXPECT_STRCASENE(str1, | the two C strings have |
: str2);
` : str2);`
: different contents, :
: : : ignoring case :
| Fatal assertion | Nonfatal assertion | Verifies |
| ------------------------------- | ------------------------------- | -------------------------------------------------------- |
|
`ASSERT_STREQ(str1, str2);`
|
`EXPECT_STREQ(str1, str2);`
| the two C strings have the same content |
|
`ASSERT_STRNE(str1, str2);`
|
`EXPECT_STRNE(str1, str2);`
| the two C strings have different contents |
|
`ASSERT_STRCASEEQ(str1, str2);`
|
`EXPECT_STRCASEEQ(str1, str2);`
| the two C strings have the same content, ignoring case |
|
`ASSERT_STRCASENE(str1, str2);`
|
`EXPECT_STRCASENE(str1, str2);`
| the two C strings have different contents, ignoring case |
Note that "CASE" in an assertion name means that case is ignored. A
`NULL`
pointer and an empty string are considered
*different*
.
...
...
googletest/include/gtest/gtest-death-test.h
View file @
25e1436b
...
...
@@ -34,6 +34,7 @@
// This header file defines the public API for death tests. It is
// #included by gtest.h so a user doesn't need to include this
// directly.
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_GTEST_DEATH_TEST_H_
#define GTEST_INCLUDE_GTEST_GTEST_DEATH_TEST_H_
...
...
googletest/include/gtest/gtest-message.h
View file @
25e1436b
...
...
@@ -43,6 +43,8 @@
// to CHANGE WITHOUT NOTICE. Therefore DO NOT DEPEND ON IT in a user
// program!
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_
#define GTEST_INCLUDE_GTEST_GTEST_MESSAGE_H_
...
...
googletest/include/gtest/gtest-param-test.h
View file @
25e1436b
...
...
@@ -38,6 +38,7 @@
//
// This file is generated by a SCRIPT. DO NOT EDIT BY HAND!
//
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_
#define GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_
...
...
googletest/include/gtest/gtest-param-test.h.pump
View file @
25e1436b
...
...
@@ -37,6 +37,7 @@ $var maxtuple = 10 $$ Maximum number of Combine arguments we want to support.
//
// This file is generated by a SCRIPT. DO NOT EDIT BY HAND!
//
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_
#define GTEST_INCLUDE_GTEST_GTEST_PARAM_TEST_H_
...
...
googletest/include/gtest/gtest-printers.h
View file @
25e1436b
...
...
@@ -96,6 +96,8 @@
// being defined as many user-defined container types don't have
// value_type.
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_GTEST_PRINTERS_H_
#define GTEST_INCLUDE_GTEST_GTEST_PRINTERS_H_
...
...
googletest/include/gtest/gtest-spi.h
View file @
25e1436b
...
...
@@ -32,6 +32,8 @@
// Utilities for testing Google Test itself and code that uses Google Test
// (e.g. frameworks built on top of Google Test).
// GOOGLETEST_CM0004 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_GTEST_SPI_H_
#define GTEST_INCLUDE_GTEST_GTEST_SPI_H_
...
...
googletest/include/gtest/gtest-test-part.h
View file @
25e1436b
...
...
@@ -30,6 +30,8 @@
// Author: mheule@google.com (Markus Heule)
//
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_
#define GTEST_INCLUDE_GTEST_GTEST_TEST_PART_H_
...
...
googletest/include/gtest/gtest-typed-test.h
View file @
25e1436b
...
...
@@ -29,6 +29,8 @@
//
// Author: wan@google.com (Zhanyong Wan)
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_GTEST_TYPED_TEST_H_
#define GTEST_INCLUDE_GTEST_GTEST_TYPED_TEST_H_
...
...
googletest/include/gtest/gtest.h
View file @
25e1436b
...
...
@@ -48,6 +48,8 @@
// registration from Barthelemy Dagenais' (barthelemy@prologique.com)
// easyUnit framework.
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_GTEST_H_
#define GTEST_INCLUDE_GTEST_GTEST_H_
...
...
googletest/include/gtest/gtest_pred_impl.h
View file @
25e1436b
...
...
@@ -32,6 +32,8 @@
//
// Implements a family of generic predicate assertion macros.
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
#define GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
...
...
googletest/include/gtest/gtest_prod.h
View file @
25e1436b
...
...
@@ -30,6 +30,7 @@
// Author: wan@google.com (Zhanyong Wan)
//
// Google C++ Testing and Mocking Framework definitions useful in production code.
// GOOGLETEST_CM0003 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_GTEST_PROD_H_
#define GTEST_INCLUDE_GTEST_GTEST_PROD_H_
...
...
googletest/include/gtest/internal/gtest-death-test-internal.h
View file @
25e1436b
...
...
@@ -32,6 +32,7 @@
//
// This header file defines internal utilities needed for implementing
// death tests. They are subject to change without notice.
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_DEATH_TEST_INTERNAL_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_DEATH_TEST_INTERNAL_H_
...
...
googletest/include/gtest/internal/gtest-filepath.h
View file @
25e1436b
...
...
@@ -36,6 +36,8 @@
// This file is #included in gtest/internal/gtest-internal.h.
// Do not include this header file separately!
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_FILEPATH_H_
...
...
googletest/include/gtest/internal/gtest-internal.h
View file @
25e1436b
...
...
@@ -33,6 +33,8 @@
// This header file declares functions and macros used internally by
// Google Test. They are subject to change without notice.
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_INTERNAL_H_
...
...
googletest/include/gtest/internal/gtest-linked_ptr.h
View file @
25e1436b
...
...
@@ -65,6 +65,8 @@
// TODO(wan@google.com): rename this to safe_linked_ptr to avoid
// confusion with normal linked_ptr.
// GOOGLETEST_CM0001 DO NOT DELETE
#ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_LINKED_PTR_H_
#define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_LINKED_PTR_H_
...
...
Prev
1
2
3
Next
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