#include "mock_callback.h"
Public Member Functions | |
virtual void | Done (bool success) |
bool | success () const |
bool | done () const |
Callback that can be used for testing resource fetches with accessors to find out if it has been called and whether result was success. MockCallback does not delete itself and expects to be allocated on stack so that it can be accessed before and after Done() is called.
Note: this only has one user now: TestConditionalFetch in UrlAsyncFetcherTest.