
please wait
../HtmlParser_gtests/main.cpp:19: Failure Actual function call count doesn't match EXPECT_CALL(mock, getUrlAsString("http://example.net"))... Expected: to be called once Actual: never called - unsatisfied and active |
|
|
|
|
|
|
But compiler write: ../HtmlParser_gtests/main.cpp:36: Failure Actual function call count doesn't match EXPECT_CALL(mock, getUrlAsString("http://example.net"))... Expected: to be called once Actual: never called - unsatisfied and active |
Presumably, what you want is for m_http to be a reference to the object being passed in, so that polymorphism can be used to ensure the mock methods are called. |
Nowhere in any of the code you've posted, is there anything that calls getUrlAsString(). You tell the mock to expect that method to be called once, but it never is. |
|
|