#include "gtest\gtest.h"
using namespace testing;
class MyGTest : public Test
{
public:
void f(){}
void g(){
f();
f();
}
};
TEST_F(MyGTest, first)
{
EXPECT_CALL(*this, f()).Times(2);
g();
}
VC2013 says:
"MyGTest_first_Test" has no member "gmock_f"
What does it mean? I expect the call to g() to call f() for 2 times. Any syntax error I made?
Aucun commentaire:
Enregistrer un commentaire