Closed GoogleCodeExporter closed 8 years ago
This is the same as issue 79. A work around is to switch the definition of
objectA
and objectB.
Original comment by w...@google.com
on 2 Jun 2010 at 7:59
An extremely helpful comment!
Original comment by zilvinas...@gmail.com
on 25 Oct 2010 at 1:18
Can't make it work this workaround. My real example is a bit complex but in
general I've got the same problem. When I'm invoking method which should take
argument boost::shared_ptr of mocked class (body is nothing more than mock of
base intereface), whole results hang. Do you have any suggestions?
Original comment by darek.be...@gmail.com
on 16 Jul 2011 at 11:32
I found that manually reset()'ing shared_ptr instances to mocks that I use in a
test case works around the problem:
TEST(SomeTest, someCase) {
auto mock = make_shared<MockObject>();
// Pass shared_ptr somewhere ...
mock.reset();
}
Original comment by denis.a....@gmail.com
on 16 Feb 2013 at 2:04
Original issue reported on code.google.com by
tim.dave@gmail.com
on 2 Jun 2010 at 7:44Attachments: