merging
This commit is contained in:
		@@ -63,10 +63,10 @@ TEST(MatcherTupleTest, ForSize2) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
TEST(MatcherTupleTest, ForSize5) {
 | 
			
		||||
  CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char>, Matcher<bool>,
 | 
			
		||||
                                Matcher<double>, Matcher<char*> >,
 | 
			
		||||
                          MatcherTuple<tuple<int, char, bool, double, char*>
 | 
			
		||||
                                      >::type>();
 | 
			
		||||
  CompileAssertTypesEqual<
 | 
			
		||||
      tuple<Matcher<int>, Matcher<char>, Matcher<bool>, Matcher<double>,
 | 
			
		||||
            Matcher<char*> >,
 | 
			
		||||
      MatcherTuple<tuple<int, char, bool, double, char*> >::type>();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Tests the Function template struct.
 | 
			
		||||
@@ -97,7 +97,8 @@ TEST(FunctionTest, Binary) {
 | 
			
		||||
  CompileAssertTypesEqual<bool, F::Argument1>();
 | 
			
		||||
  CompileAssertTypesEqual<const long&, F::Argument2>();  // NOLINT
 | 
			
		||||
  CompileAssertTypesEqual<tuple<bool, const long&>, F::ArgumentTuple>();  // NOLINT
 | 
			
		||||
  CompileAssertTypesEqual<tuple<Matcher<bool>, Matcher<const long&> >,  // NOLINT
 | 
			
		||||
  CompileAssertTypesEqual<
 | 
			
		||||
      tuple<Matcher<bool>, Matcher<const long&> >,  // NOLINT
 | 
			
		||||
      F::ArgumentMatcherTuple>();
 | 
			
		||||
  CompileAssertTypesEqual<void(bool, const long&), F::MakeResultVoid>();  // NOLINT
 | 
			
		||||
  CompileAssertTypesEqual<IgnoredValue(bool, const long&),  // NOLINT
 | 
			
		||||
@@ -114,8 +115,9 @@ TEST(FunctionTest, LongArgumentList) {
 | 
			
		||||
  CompileAssertTypesEqual<const long&, F::Argument5>();  // NOLINT
 | 
			
		||||
  CompileAssertTypesEqual<tuple<bool, int, char*, int&, const long&>,  // NOLINT
 | 
			
		||||
                          F::ArgumentTuple>();
 | 
			
		||||
  CompileAssertTypesEqual<tuple<Matcher<bool>, Matcher<int>, Matcher<char*>,
 | 
			
		||||
                                Matcher<int&>, Matcher<const long&> >,  // NOLINT
 | 
			
		||||
  CompileAssertTypesEqual<
 | 
			
		||||
      tuple<Matcher<bool>, Matcher<int>, Matcher<char*>, Matcher<int&>,
 | 
			
		||||
            Matcher<const long&> >,  // NOLINT
 | 
			
		||||
      F::ArgumentMatcherTuple>();
 | 
			
		||||
  CompileAssertTypesEqual<void(bool, int, char*, int&, const long&),  // NOLINT
 | 
			
		||||
                          F::MakeResultVoid>();
 | 
			
		||||
 
 | 
			
		||||
@@ -328,7 +328,8 @@ TEST(InvokeTest, FunctionThatTakes10Arguments) {
 | 
			
		||||
// Tests using Invoke() with functions with parameters declared as Unused.
 | 
			
		||||
TEST(InvokeTest, FunctionWithUnusedParameters) {
 | 
			
		||||
  Action<int(int, int, double, const std::string&)> a1 = Invoke(SumOfFirst2);
 | 
			
		||||
  tuple<int, int, double, std::string> dummy = make_tuple(10, 2, 5.6, std::string("hi"));
 | 
			
		||||
  tuple<int, int, double, std::string> dummy =
 | 
			
		||||
      make_tuple(10, 2, 5.6, std::string("hi"));
 | 
			
		||||
  EXPECT_EQ(12, a1.Perform(dummy));
 | 
			
		||||
 | 
			
		||||
  Action<int(int, int, bool, int*)> a2 =
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user