googlemock/test/gmock-function-mocker_test.cc
TYPED_TEST(FunctionMockerTest, MocksFunctionWithConstArgument) {
  EXPECT_CALL(this->mock_foo_, TakesConst(Lt(10))).WillOnce(DoDefault());

  EXPECT_FALSE(this->foo_->TakesConst(5));
}
// Tests mocking a function that takes a const variable.
Tests mocking a function that takes a const variable.
Tests mocking a function that takes a const variable .
TYPED_TEST(FunctionMockerTest, MocksFunctionWithConstArgument) {
  EXPECT_CALL(this->mock_foo_, TakesConst(Lt(10))).WillOnce(DoDefault());
  EXPECT_FALSE(this->foo_->TakesConst(5));
}
TYPED_TEST ( FunctionMockerTest , MocksFunctionWithConstArgument ) { EXPECT_CALL ( this -> mock_foo_ , TakesConst ( Lt ( 10 ) ) ) . WillOnce ( DoDefault ( ) ) ; EXPECT_FALSE ( this -> foo_ -> TakesConst ( 5 ) ) ; }
Tests mocking a function that takes a const variable.
Tests mocking a function that takes a const variable .