aboutsummaryrefslogtreecommitdiffstats
path: root/test/gmock-nice-strict_test.cc
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2010-08-31 18:28:02 +0000
committerzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2010-08-31 18:28:02 +0000
commit2516f60da9073f3b04c0bbfc37d3aefffe11767e (patch)
treeb7ce61b652acc1b0401fed3804605f5b56543ff7 /test/gmock-nice-strict_test.cc
parentccedc1c93371e3b3826bc2d83b77ab1a26d07dc6 (diff)
downloadgoogletest-2516f60da9073f3b04c0bbfc37d3aefffe11767e.tar.gz
googletest-2516f60da9073f3b04c0bbfc37d3aefffe11767e.tar.bz2
googletest-2516f60da9073f3b04c0bbfc37d3aefffe11767e.zip
Publishes GTEST_HAS_STREAM_REDIRECTION (by Vlad Losev); casts char to unsigned char before calling isspace() etc to avoid undefined behavior (by Zhanyong Wan); fixes the VC projects (by Fredrik Roubert).
Diffstat (limited to 'test/gmock-nice-strict_test.cc')
-rw-r--r--test/gmock-nice-strict_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/gmock-nice-strict_test.cc b/test/gmock-nice-strict_test.cc
index 0e52450d..f340cecb 100644
--- a/test/gmock-nice-strict_test.cc
+++ b/test/gmock-nice-strict_test.cc
@@ -57,10 +57,10 @@ using testing::HasSubstr;
using testing::NiceMock;
using testing::StrictMock;
-#if GTEST_HAS_STREAM_REDIRECTION_
+#if GTEST_HAS_STREAM_REDIRECTION
using testing::internal::CaptureStdout;
using testing::internal::GetCapturedStdout;
-#endif // GTEST_HAS_STREAM_REDIRECTION_
+#endif
// Defines some mock classes needed by the tests.
@@ -107,7 +107,7 @@ class MockBar {
GTEST_DISALLOW_COPY_AND_ASSIGN_(MockBar);
};
-#if GTEST_HAS_STREAM_REDIRECTION_
+#if GTEST_HAS_STREAM_REDIRECTION
// Tests that a nice mock generates no warning for uninteresting calls.
TEST(NiceMockTest, NoWarningForUninterestingCall) {
@@ -151,7 +151,7 @@ TEST(NiceMockTest, InfoForUninterestingCall) {
GMOCK_FLAG(verbose) = saved_flag;
}
-#endif // GTEST_HAS_STREAM_REDIRECTION_
+#endif // GTEST_HAS_STREAM_REDIRECTION
// Tests that a nice mock allows expected calls.
TEST(NiceMockTest, AllowsExpectedCall) {