Index: testing/gmock/test/gmock_link_test.h |
diff --git a/testing/gmock/test/gmock_link_test.h b/testing/gmock/test/gmock_link_test.h |
index d9635907939425d23769584319780c1495b673fb..aa9aab3a67cd07835b2c2e1f61f9e83c71c45180 100644 |
--- a/testing/gmock/test/gmock_link_test.h |
+++ b/testing/gmock/test/gmock_link_test.h |
@@ -185,10 +185,8 @@ using testing::SetErrnoAndReturn; |
using testing::Throw; |
#endif |
-#if GMOCK_HAS_REGEX |
using testing::ContainsRegex; |
using testing::MatchesRegex; |
-#endif |
class Interface { |
public: |
@@ -547,7 +545,6 @@ TEST(LinkTest, TestMatchersFloatingPoint) { |
.WillByDefault(Return()); |
} |
-#if GMOCK_HAS_REGEX |
// Tests the linkage of the ContainsRegex matcher. |
TEST(LinkTest, TestMatcherContainsRegex) { |
Mock mock; |
@@ -561,7 +558,6 @@ TEST(LinkTest, TestMatcherMatchesRegex) { |
ON_CALL(mock, VoidFromString(MatchesRegex(".*"))).WillByDefault(Return()); |
} |
-#endif // GMOCK_HAS_REGEX |
// Tests the linkage of the StartsWith, EndsWith, and HasSubstr matchers. |
TEST(LinkTest, TestMatchersSubstrings) { |