diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2011-02-22 22:08:59 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2011-02-22 22:08:59 +0000 |
commit | ffeb11d14a890b902dbb26ff2296cda7bf2d31df (patch) | |
tree | fd0c02c85dbd0a7a96f6791f00bf11a3f0e5eba2 /test/gtest-port_test.cc | |
parent | 0980b4bd66b496074d9e34d9f05244e700e9406d (diff) | |
download | googletest-ffeb11d14a890b902dbb26ff2296cda7bf2d31df.tar.gz googletest-ffeb11d14a890b902dbb26ff2296cda7bf2d31df.tar.bz2 googletest-ffeb11d14a890b902dbb26ff2296cda7bf2d31df.zip |
Indents preprocessor directives.
Diffstat (limited to 'test/gtest-port_test.cc')
-rw-r--r-- | test/gtest-port_test.cc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/gtest-port_test.cc b/test/gtest-port_test.cc index be0f8b0a..ff0165fe 100644 --- a/test/gtest-port_test.cc +++ b/test/gtest-port_test.cc @@ -36,7 +36,7 @@ #include <stdio.h> #if GTEST_OS_MAC -#include <time.h> +# include <time.h> #endif // GTEST_OS_MAC #include <utility> // For std::pair and std::make_pair. @@ -328,15 +328,19 @@ TEST(GtestCheckDeathTest, LivesSilentlyOnSuccess) { // For simplicity, we only cover the most important platforms here. TEST(RegexEngineSelectionTest, SelectsCorrectRegexEngine) { #if GTEST_HAS_POSIX_RE + EXPECT_TRUE(GTEST_USES_POSIX_RE); + #else + EXPECT_TRUE(GTEST_USES_SIMPLE_RE); + #endif } #if GTEST_USES_POSIX_RE -#if GTEST_HAS_TYPED_TEST +# if GTEST_HAS_TYPED_TEST template <typename Str> class RETest : public ::testing::Test {}; @@ -345,9 +349,9 @@ class RETest : public ::testing::Test {}; // supports. typedef testing::Types< ::std::string, -#if GTEST_HAS_GLOBAL_STRING +# if GTEST_HAS_GLOBAL_STRING ::string, -#endif // GTEST_HAS_GLOBAL_STRING +# endif // GTEST_HAS_GLOBAL_STRING const char*> StringTypes; TYPED_TEST_CASE(RETest, StringTypes); @@ -398,7 +402,7 @@ TYPED_TEST(RETest, PartialMatchWorks) { EXPECT_FALSE(RE::PartialMatch(TypeParam("zza"), re)); } -#endif // GTEST_HAS_TYPED_TEST +# endif // GTEST_HAS_TYPED_TEST #elif GTEST_USES_SIMPLE_RE |