googlemock/test/gmock-function-mocker_test.cc
TYPED_TEST(FunctionMockerTest, MocksFunctionsConstFunctionWithCallType) {
  EXPECT_CALL(Const(this->mock_foo_), CTConst(_)).WillOnce(Return('a'));

  EXPECT_EQ('a', Const(*this->foo_).CTConst(0));
}
// Tests mocking functions overloaded on the const-ness of this object.
Tests mocking functions overloaded on the const-ness of this object.
Tests mocking functions overloaded on the const - ness of this object .
TYPED_TEST(FunctionMockerTest, MocksFunctionsConstFunctionWithCallType) {
  EXPECT_CALL(Const(this->mock_foo_), CTConst(_)).WillOnce(Return('a'));
  EXPECT_EQ('a', Const(*this->foo_).CTConst(0));
}
TYPED_TEST ( FunctionMockerTest , MocksFunctionsConstFunctionWithCallType ) { EXPECT_CALL ( Const ( this -> mock_foo_ ) , CTConst ( _ ) ) . WillOnce ( Return ( ' ' ) ) ; EXPECT_EQ ( ' ' , Const ( * this -> foo_ ) . CTConst ( 0 ) ) ; }
Tests mocking functions overloaded on the const-ness of this object.
Tests mocking functions overloaded on the const - ness of this object .