summaryrefslogtreecommitdiffstats
path: root/googlemock
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2018-04-09 15:35:01 (GMT)
committerGennadiy Civil <misterg@google.com>2018-04-09 15:35:01 (GMT)
commit8bc7c631e848e7fc9eef2d95eeac12966caefb43 (patch)
tree67376a952dc1f0da3bc81a7b3032a3a316a97137 /googlemock
parentc4e3d77ddc155a32e9f98f64ea1e111a5cce0e43 (diff)
downloadgoogletest-8bc7c631e848e7fc9eef2d95eeac12966caefb43.zip
googletest-8bc7c631e848e7fc9eef2d95eeac12966caefb43.tar.gz
googletest-8bc7c631e848e7fc9eef2d95eeac12966caefb43.tar.bz2
testing msvc again
Diffstat (limited to 'googlemock')
-rw-r--r--googlemock/test/gmock-actions_test.cc16
-rw-r--r--googlemock/test/gmock-more-actions_test.cc14
2 files changed, 14 insertions, 16 deletions
diff --git a/googlemock/test/gmock-actions_test.cc b/googlemock/test/gmock-actions_test.cc
index f8b9a1e..ea6129d 100644
--- a/googlemock/test/gmock-actions_test.cc
+++ b/googlemock/test/gmock-actions_test.cc
@@ -43,16 +43,6 @@
#include "gtest/gtest.h"
#include "gtest/gtest-spi.h"
-// Silence C4800 (C4800: 'int *const ': forcing value
-// to bool 'true' or 'false') for MSVC 14,15
-#ifdef _MSC_VER
-#if _MSC_VER <= 1900
-# pragma warning(push)
-# pragma warning(disable:4800)
-#endif
-#endif
-
-
namespace {
// This list should be kept sorted.
@@ -1566,9 +1556,3 @@ TEST(MoveOnlyArgumentsTest, ReturningActions) {
#endif // GTEST_LANG_CXX11
} // Unnamed namespace
-
-#ifdef _MSC_VER
-#if _MSC_VER == 1900
-# pragma warning(pop)
-#endif
-#endif
diff --git a/googlemock/test/gmock-more-actions_test.cc b/googlemock/test/gmock-more-actions_test.cc
index f5e28ea..e9b272b 100644
--- a/googlemock/test/gmock-more-actions_test.cc
+++ b/googlemock/test/gmock-more-actions_test.cc
@@ -42,6 +42,15 @@
#include "gtest/gtest.h"
#include "gtest/internal/gtest-linked_ptr.h"
+// Silence C4800 (C4800: 'int *const ': forcing value
+// to bool 'true' or 'false') for MSVC 14,15
+#ifdef _MSC_VER
+#if _MSC_VER <= 1900
+# pragma warning(push)
+# pragma warning(disable:4800)
+#endif
+#endif
+
namespace testing {
namespace gmock_more_actions_test {
@@ -709,3 +718,8 @@ TEST(ReturnPointeeTest, Works) {
} // namespace gmock_generated_actions_test
} // namespace testing
+#ifdef _MSC_VER
+#if _MSC_VER == 1900
+# pragma warning(pop)
+#endif
+#endif