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
a7ffeca9
Unverified
Commit
a7ffeca9
authored
Mar 05, 2018
by
Gennadiy Civil
Committed by
GitHub
Mar 05, 2018
Browse files
Merge pull request #1488 from gennadiycivil/master
Merges
parents
915c8d05
a518bd5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
12 deletions
+17
-12
googlemock/include/gmock/internal/custom/gmock-matchers.h
googlemock/include/gmock/internal/custom/gmock-matchers.h
+3
-4
googlemock/test/gmock_link_test.h
googlemock/test/gmock_link_test.h
+2
-0
googletest/include/gtest/internal/gtest-death-test-internal.h
...letest/include/gtest/internal/gtest-death-test-internal.h
+12
-8
No files found.
googlemock/include/gmock/internal/custom/gmock-matchers.h
View file @
a7ffeca9
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
//
//
// Adds google3 callback support to CallableTraits.
// Adds google3 callback support to CallableTraits.
//
//
#ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_CALLBACK_MATCHERS_H_
#ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_MATCHERS_H_
#define GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_CALLBACK_MATCHERS_H_
#define GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_MATCHERS_H_
#endif // GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_MATCHERS_H_
#endif // GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_CALLBACK_MATCHERS_H_
googlemock/test/gmock_link_test.h
View file @
a7ffeca9
...
@@ -90,8 +90,10 @@
...
@@ -90,8 +90,10 @@
// Field
// Field
// Property
// Property
// ResultOf(function)
// ResultOf(function)
// ResultOf(callback)
// Pointee
// Pointee
// Truly(predicate)
// Truly(predicate)
// AddressSatisfies
// AllOf
// AllOf
// AnyOf
// AnyOf
// Not
// Not
...
...
googletest/include/gtest/internal/gtest-death-test-internal.h
View file @
a7ffeca9
...
@@ -217,14 +217,18 @@ GTEST_API_ bool ExitedUnsuccessfully(int exit_status);
...
@@ -217,14 +217,18 @@ GTEST_API_ bool ExitedUnsuccessfully(int exit_status);
// can be streamed.
// can be streamed.
// This macro is for implementing ASSERT/EXPECT_DEBUG_DEATH when compiled in
// This macro is for implementing ASSERT/EXPECT_DEBUG_DEATH when compiled in
// NDEBUG mode. In this case we need the statements to be executed, the regex is
// NDEBUG mode. In this case we need the statements to be executed and the macro
// ignored, and the macro must accept a streamed message even though the message
// must accept a streamed message even though the message is never printed.
// is never printed.
// The regex object is not evaluated, but it is used to prevent "unused"
# define GTEST_EXECUTE_STATEMENT_(statement, regex) \
// warnings and to avoid an expression that doesn't compile in debug mode.
GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
#define GTEST_EXECUTE_STATEMENT_(statement, regex) \
if (::testing::internal::AlwaysTrue()) { \
GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
if (::testing::internal::AlwaysTrue()) { \
} else \
GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
} else if (!::testing::internal::AlwaysTrue()) { \
const ::testing::internal::RE& gtest_regex = (regex); \
static_cast<void>(gtest_regex); \
} else \
::testing::Message()
::testing::Message()
// A class representing the parsed contents of the
// A class representing the parsed contents of the
...
...
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