googlemock/test/gmock-function-mocker_test.cc
TYPED_TEST(FunctionMockerTest, MocksFunctionWithNonConstReferenceArgument) {
  int a = 0;
  EXPECT_CALL(this->mock_foo_, TakesNonConstReference(Ref(a)))
      .WillOnce(Return(true));

  EXPECT_TRUE(this->foo_->TakesNonConstReference(a));
}
// Tests mocking a function that takes a non-const reference.
Tests mocking a function that takes a non-const reference.
Tests mocking a function that takes a non - const reference .
TYPED_TEST(FunctionMockerTest, MocksFunctionWithNonConstReferenceArgument) {
  int a = 0;
  EXPECT_CALL(this->mock_foo_, TakesNonConstReference(Ref(a)))
      .WillOnce(Return(true));
  EXPECT_TRUE(this->foo_->TakesNonConstReference(a));
}
TYPED_TEST ( FunctionMockerTest , MocksFunctionWithNonConstReferenceArgument ) { int a = 0 ; EXPECT_CALL ( this -> mock_foo_ , TakesNonConstReference ( Ref ( a ) ) ) . WillOnce ( Return ( true ) ) ; EXPECT_TRUE ( this -> foo_ -> TakesNonConstReference ( a ) ) ; }
Tests mocking a function that takes a non-const reference.
Tests mocking a function that takes a non - const reference .