Merges-1
This commit is contained in:
		
							parent
							
								
									d30d3c7ec3
								
							
						
					
					
						commit
						78797f38ef
					
				@ -33,7 +33,6 @@
 | 
				
			|||||||
//
 | 
					//
 | 
				
			||||||
// Adds google3 callback support to CallableTraits.
 | 
					// Adds google3 callback support to CallableTraits.
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
#ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_CALLBACK_MATCHERS_H_
 | 
					#ifndef GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_MATCHERS_H_
 | 
				
			||||||
#define GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_CALLBACK_MATCHERS_H_
 | 
					#define GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_MATCHERS_H_
 | 
				
			||||||
 | 
					#endif  // GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_MATCHERS_H_
 | 
				
			||||||
#endif  //  GMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_CALLBACK_MATCHERS_H_
 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -90,8 +90,10 @@
 | 
				
			|||||||
//      Field
 | 
					//      Field
 | 
				
			||||||
//      Property
 | 
					//      Property
 | 
				
			||||||
//      ResultOf(function)
 | 
					//      ResultOf(function)
 | 
				
			||||||
 | 
					//      ResultOf(callback)
 | 
				
			||||||
//      Pointee
 | 
					//      Pointee
 | 
				
			||||||
//      Truly(predicate)
 | 
					//      Truly(predicate)
 | 
				
			||||||
 | 
					//      AddressSatisfies
 | 
				
			||||||
//      AllOf
 | 
					//      AllOf
 | 
				
			||||||
//      AnyOf
 | 
					//      AnyOf
 | 
				
			||||||
//      Not
 | 
					//      Not
 | 
				
			||||||
 | 
				
			|||||||
@ -217,13 +217,17 @@ GTEST_API_ bool ExitedUnsuccessfully(int exit_status);
 | 
				
			|||||||
// can be streamed.
 | 
					// can be streamed.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// This macro is for implementing ASSERT/EXPECT_DEBUG_DEATH when compiled in
 | 
					// This macro is for implementing ASSERT/EXPECT_DEBUG_DEATH when compiled in
 | 
				
			||||||
// NDEBUG mode. In this case we need the statements to be executed, the regex is
 | 
					// NDEBUG mode. In this case we need the statements to be executed and the macro
 | 
				
			||||||
// ignored, and the macro must accept a streamed message even though the message
 | 
					// must accept a streamed message even though the message is never printed.
 | 
				
			||||||
// is never printed.
 | 
					// The regex object is not evaluated, but it is used to prevent "unused"
 | 
				
			||||||
 | 
					// warnings and to avoid an expression that doesn't compile in debug mode.
 | 
				
			||||||
#define GTEST_EXECUTE_STATEMENT_(statement, regex)             \
 | 
					#define GTEST_EXECUTE_STATEMENT_(statement, regex)             \
 | 
				
			||||||
  GTEST_AMBIGUOUS_ELSE_BLOCKER_                                \
 | 
					  GTEST_AMBIGUOUS_ELSE_BLOCKER_                                \
 | 
				
			||||||
  if (::testing::internal::AlwaysTrue()) {                     \
 | 
					  if (::testing::internal::AlwaysTrue()) {                     \
 | 
				
			||||||
    GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
 | 
					    GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
 | 
				
			||||||
 | 
					  } else if (!::testing::internal::AlwaysTrue()) {             \
 | 
				
			||||||
 | 
					    const ::testing::internal::RE& gtest_regex = (regex);      \
 | 
				
			||||||
 | 
					    static_cast<void>(gtest_regex);                            \
 | 
				
			||||||
  } else                                                       \
 | 
					  } else                                                       \
 | 
				
			||||||
    ::testing::Message()
 | 
					    ::testing::Message()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user