Page Speed Optimization Libraries
1.7.30.1
|
#include "mock_callback.h"
Public Member Functions | |
ExpectStringAsyncFetch (bool expect_success, const RequestContextPtr &request_context) | |
virtual void | HandleDone (bool success) |
void | set_expect_success (bool x) |
Callback that can be used for testing resource fetches which makes sure that Done() is called exactly once and with the expected success value. Can be used multiple times by calling Reset in between.