googlemock/test/gmock-function-mocker_test.cc
TYPED_TEST(FunctionMockerTest, MocksNullaryFunctionWithCallType) {
  EXPECT_CALL(this->mock_foo_, CTNullary())
      .WillOnce(Return(-1))
      .WillOnce(Return(0));

  EXPECT_EQ(-1, this->foo_->CTNullary());
  EXPECT_EQ(0, this->foo_->CTNullary());
}
// Tests mocking a nullary function with calltype.
Tests mocking a nullary function with calltype.
Tests mocking a nullary function with calltype .
TYPED_TEST(FunctionMockerTest, MocksNullaryFunctionWithCallType) {
  EXPECT_CALL(this->mock_foo_, CTNullary())
      .WillOnce(Return(-1))
      .WillOnce(Return(0));
  EXPECT_EQ(-1, this->foo_->CTNullary());
  EXPECT_EQ(0, this->foo_->CTNullary());
}
TYPED_TEST ( FunctionMockerTest , MocksNullaryFunctionWithCallType ) { EXPECT_CALL ( this -> mock_foo_ , CTNullary ( ) ) . WillOnce ( Return ( -1 ) ) . WillOnce ( Return ( 0 ) ) ; EXPECT_EQ ( -1 , this -> foo_ -> CTNullary ( ) ) ; EXPECT_EQ ( 0 , this -> foo_ -> CTNullary ( ) ) ; }
Tests mocking a nullary function with calltype.
Tests mocking a nullary function with calltype .