From e0d051ea64dd5f32d5b6af9831747d1acb2a9c40 Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Thu, 19 Feb 2009 00:33:37 +0000 Subject: Makes sure all internal macros are named GMOCK_*_. No functionality is changed. --- test/gmock-internal-utils_test.cc | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'test') diff --git a/test/gmock-internal-utils_test.cc b/test/gmock-internal-utils_test.cc index 2ea76b0e..6503ffb2 100644 --- a/test/gmock-internal-utils_test.cc +++ b/test/gmock-internal-utils_test.cc @@ -103,11 +103,11 @@ TEST(RemoveReferenceTest, RemovesReference) { CompileAssertTypesEqual::type>(); } -// Tests GMOCK_REMOVE_REFERENCE. +// Tests GMOCK_REMOVE_REFERENCE_. template void TestGMockRemoveReference() { - CompileAssertTypesEqual(); + CompileAssertTypesEqual(); } TEST(RemoveReferenceTest, MacroVersion) { @@ -127,11 +127,11 @@ TEST(RemoveConstTest, RemovesConst) { CompileAssertTypesEqual::type>(); } -// Tests GMOCK_REMOVE_CONST. +// Tests GMOCK_REMOVE_CONST_. template void TestGMockRemoveConst() { - CompileAssertTypesEqual(); + CompileAssertTypesEqual(); } TEST(RemoveConstTest, MacroVersion) { @@ -152,11 +152,11 @@ TEST(AddReferenceTest, AddsReference) { CompileAssertTypesEqual::type>(); } -// Tests GMOCK_ADD_REFERENCE. +// Tests GMOCK_ADD_REFERENCE_. template void TestGMockAddReference() { - CompileAssertTypesEqual(); + CompileAssertTypesEqual(); } TEST(AddReferenceTest, MacroVersion) { @@ -164,11 +164,11 @@ TEST(AddReferenceTest, MacroVersion) { TestGMockAddReference(); } -// Tests GMOCK_REFERENCE_TO_CONST. +// Tests GMOCK_REFERENCE_TO_CONST_. template void TestGMockReferenceToConst() { - CompileAssertTypesEqual(); + CompileAssertTypesEqual(); } TEST(GMockReferenceToConstTest, Works) { @@ -207,8 +207,9 @@ class Derived : public Base {}; // Tests that ImplicitlyConvertible::value is a compile-time constant. TEST(ImplicitlyConvertibleTest, ValueIsCompileTimeConstant) { - GMOCK_COMPILE_ASSERT((ImplicitlyConvertible::value), const_true); - GMOCK_COMPILE_ASSERT((!ImplicitlyConvertible::value), const_false); + GMOCK_COMPILE_ASSERT_((ImplicitlyConvertible::value), const_true); + GMOCK_COMPILE_ASSERT_((!ImplicitlyConvertible::value), + const_false); } // Tests that ImplicitlyConvertible::value is true when T1 can @@ -233,8 +234,8 @@ TEST(ImplicitlyConvertibleTest, ValueIsFalseWhenNotConvertible) { // Tests that IsAProtocolMessage::value is a compile-time constant. TEST(IsAProtocolMessageTest, ValueIsCompileTimeConstant) { - GMOCK_COMPILE_ASSERT(IsAProtocolMessage::value, const_true); - GMOCK_COMPILE_ASSERT(!IsAProtocolMessage::value, const_false); + GMOCK_COMPILE_ASSERT_(IsAProtocolMessage::value, const_true); + GMOCK_COMPILE_ASSERT_(!IsAProtocolMessage::value, const_false); } // Tests that IsAProtocolMessage::value is true when T is -- cgit v1.2.3