diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/gmock_test.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/gmock_test.cc b/test/gmock_test.cc index baba7178..ae5e22c8 100644 --- a/test/gmock_test.cc +++ b/test/gmock_test.cc @@ -37,6 +37,9 @@ #include <string> #include "gtest/gtest.h" +#include "gtest/internal/custom/gtest.h" + +#if !defined(GTEST_CUSTOM_INIT_GOOGLE_TEST_FUNCTION_) using testing::GMOCK_FLAG(verbose); using testing::InitGoogleMock; @@ -208,6 +211,8 @@ TEST(WideInitGoogleMockTest, ParsesGoogleMockFlagAndUnrecognizedFlag) { TestInitGoogleMock(argv, new_argv, "error"); } +#endif // !defined(GTEST_CUSTOM_INIT_GOOGLE_TEST_FUNCTION_) + // Makes sure Google Mock flags can be accessed in code. TEST(FlagTest, IsAccessibleInCode) { bool dummy = testing::GMOCK_FLAG(catch_leaked_mocks) && |