From 18489fa4f81a65ab5f42a6705c28ca2f80eab3bd Mon Sep 17 00:00:00 2001 From: kosak Date: Wed, 4 Dec 2013 23:49:07 +0000 Subject: Distinguish between C++11 language and library support for . Fix spelling: repositary -> repository. Pull in gtest 671. --- README | 4 ++-- include/gmock/gmock-matchers.h | 8 ++++---- test/gmock-generated-matchers_test.cc | 4 ++-- test/gmock-matchers_test.cc | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README b/README index ed2e69ba..0cb9123b 100644 --- a/README +++ b/README @@ -42,7 +42,7 @@ Requirements for End Users Google Mock is implemented on top of the Google Test C++ testing framework (http://code.google.com/p/googletest/), and includes the -latter as part of the SVN repositary and distribution package. You +latter as part of the SVN repository and distribution package. You must use the bundled version of Google Test when using Google Mock, or you may get compiler/linker errors. @@ -92,7 +92,7 @@ Getting the Source There are two primary ways of getting Google Mock's source code: you can download a stable source release in your preferred archive format, -or directly check out the source from our Subversion (SVN) repositary. +or directly check out the source from our Subversion (SVN) repository. The SVN checkout requires a few extra steps and some extra software packages on your system, but lets you track development and make patches much more easily, so we highly encourage it. diff --git a/include/gmock/gmock-matchers.h b/include/gmock/gmock-matchers.h index 979b0e85..5e2a8d5c 100644 --- a/include/gmock/gmock-matchers.h +++ b/include/gmock/gmock-matchers.h @@ -52,8 +52,8 @@ #include "gmock/internal/gmock-port.h" #include "gtest/gtest.h" -#if GTEST_LANG_CXX11 -#include // NOLINT -- must be after gtest.h +#if GTEST_HAS_STD_INITIALIZER_LIST_ +# include // NOLINT -- must be after gtest.h #endif namespace testing { @@ -3350,7 +3350,7 @@ inline internal::ElementsAreArrayMatcher ElementsAreArray( return ElementsAreArray(vec.begin(), vec.end()); } -#if GTEST_LANG_CXX11 +#if GTEST_HAS_STD_INITIALIZER_LIST_ template inline internal::ElementsAreArrayMatcher ElementsAreArray(::std::initializer_list xs) { @@ -3392,7 +3392,7 @@ UnorderedElementsAreArray(const ::std::vector& vec) { return UnorderedElementsAreArray(vec.begin(), vec.end()); } -#if GTEST_LANG_CXX11 +#if GTEST_HAS_STD_INITIALIZER_LIST_ template inline internal::UnorderedElementsAreArrayMatcher UnorderedElementsAreArray(::std::initializer_list xs) { diff --git a/test/gmock-generated-matchers_test.cc b/test/gmock-generated-matchers_test.cc index c59b7dec..ff235001 100644 --- a/test/gmock-generated-matchers_test.cc +++ b/test/gmock-generated-matchers_test.cc @@ -630,7 +630,7 @@ TEST(ElementsAreArrayTest, CanBeCreatedWithVector) { EXPECT_THAT(test_vector, Not(ElementsAreArray(expected))); } -#if GTEST_LANG_CXX11 +#if GTEST_HAS_STD_INITIALIZER_LIST_ TEST(ElementsAreArrayTest, TakesInitializerList) { const int a[5] = { 1, 2, 3, 4, 5 }; @@ -666,7 +666,7 @@ TEST(ElementsAreArrayTest, { Eq(1), Ne(-2), Ge(3), Le(4), Eq(6) }))); } -#endif // GTEST_LANG_CXX11 +#endif // GTEST_HAS_STD_INITIALIZER_LIST_ TEST(ElementsAreArrayTest, CanBeCreatedWithMatcherVector) { const int a[] = { 1, 2, 3 }; diff --git a/test/gmock-matchers_test.cc b/test/gmock-matchers_test.cc index bd7a38a5..2a5cf908 100644 --- a/test/gmock-matchers_test.cc +++ b/test/gmock-matchers_test.cc @@ -4503,7 +4503,7 @@ TEST(UnorderedElementsAreArrayTest, WorksForStreamlike) { EXPECT_THAT(s, Not(UnorderedElementsAreArray(expected))); } -#if GTEST_LANG_CXX11 +#if GTEST_HAS_STD_INITIALIZER_LIST_ TEST(UnorderedElementsAreArrayTest, TakesInitializerList) { const int a[5] = { 2, 1, 4, 5, 3 }; @@ -4537,7 +4537,7 @@ TEST(UnorderedElementsAreArrayTest, { Eq(1), Ne(-2), Ge(3), Le(4), Eq(6) }))); } -#endif // GTEST_LANG_CXX11 +#endif // GTEST_HAS_STD_INITIALIZER_LIST_ class UnorderedElementsAreTest : public testing::Test { protected: -- cgit v1.2.3