class Foo{
public:
Foo():mBar{someFactory::createBar(std::string type)}{}
void doStuff(){mBar->stuff();}
private:
std::unique_ptr<Bar> mBar;
};
class Bar{
public:
virtual void stuff(){}
};
class MockBar : public Bar{
public:
MOCK_METHOD0(stuff, void());
};
TEST(Foo,DoStuff){
Foo foo;
EXPECT_CALL(???, stuff());
foo.doStuff();
}
--
---
You received this message because you are subscribed to the Google Groups "Google C++ Mocking Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to googlemock+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/googlemock/cb6ee8f6-2bc2-4f06-8ff1-b1746cafbed7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to googlemock+...@googlegroups.com.