aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock/test/gmock-matchers_test.cc
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2018-04-04 15:44:27 -0400
committerGennadiy Civil <misterg@google.com>2018-04-04 15:44:27 -0400
commita608d4a36274d4bcbae3ed1216cb22f289348b57 (patch)
treea29ccd670430a3255adea0aec1d9b504554285e1 /googlemock/test/gmock-matchers_test.cc
parent6f4e93943a9e24e7bd619e76e68c513b7a992780 (diff)
downloadgoogletest-a608d4a36274d4bcbae3ed1216cb22f289348b57.tar.gz
googletest-a608d4a36274d4bcbae3ed1216cb22f289348b57.tar.bz2
googletest-a608d4a36274d4bcbae3ed1216cb22f289348b57.zip
More on MSVC warning C4503, decorated name length exceeded
Diffstat (limited to 'googlemock/test/gmock-matchers_test.cc')
-rw-r--r--googlemock/test/gmock-matchers_test.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/googlemock/test/gmock-matchers_test.cc b/googlemock/test/gmock-matchers_test.cc
index 190cedd0..41407548 100644
--- a/googlemock/test/gmock-matchers_test.cc
+++ b/googlemock/test/gmock-matchers_test.cc
@@ -59,6 +59,12 @@
# include <forward_list> // NOLINT
#endif
+// Disable MSVC2015 warning for std::pair:
+// "decorated name length exceeded, name was truncated".
+#if defined(_MSC_VER) && (_MSC_VER == 1900) +# include <type_traits>
+# pragma warning(disable:4503)
+#endif
+
#if GTEST_LANG_CXX11
# include <type_traits>
#endif
@@ -5382,7 +5388,6 @@ INSTANTIATE_TEST_CASE_P(AllGraphs, BipartiteTest,
::testing::Range(0, 5));
// Parameterized by a pair interpreted as (LhsSize, RhsSize).
-GTEST_DISABLE_MSC_WARNINGS_PUSH_(4503)
class BipartiteNonSquareTest
: public ::testing::TestWithParam<std::pair<size_t, size_t> > {
};
@@ -5467,7 +5472,6 @@ INSTANTIATE_TEST_CASE_P(Samples, BipartiteRandomTest,
std::make_pair(7, 2000),
std::make_pair(8, 500),
std::make_pair(9, 100)));
-GTEST_DISABLE_MSC_WARNINGS_POP_()
// Tests IsReadableTypeName().