googlemock/test/gmock-function-mocker_test.cc
TYPED_TEST(FunctionMockerTest, MocksFunctionWithConstReferenceArgument) {
  int a = 0;
  EXPECT_CALL(this->mock_foo_, TakesConstReference(Ref(a)))
      .WillOnce(Return("Hello"));

  EXPECT_EQ("Hello", this->foo_->TakesConstReference(a));
}
// Tests mocking a function that takes a const reference.
Tests mocking a function that takes a const reference.
Tests mocking a function that takes a const reference .
TYPED_TEST(FunctionMockerTest, MocksFunctionWithConstReferenceArgument) {
  int a = 0;
  EXPECT_CALL(this->mock_foo_, TakesConstReference(Ref(a)))
      .WillOnce(Return("Hello"));
  EXPECT_EQ("Hello", this->foo_->TakesConstReference(a));
}
TYPED_TEST ( FunctionMockerTest , MocksFunctionWithConstReferenceArgument ) { int a = 0 ; EXPECT_CALL ( this -> mock_foo_ , TakesConstReference ( Ref ( a ) ) ) . WillOnce ( Return ( " " ) ) ; EXPECT_EQ ( " " , this -> foo_ -> TakesConstReference ( a ) ) ; }
Tests mocking a function that takes a const reference.
Tests mocking a function that takes a const reference .