21 #ifndef NET_INSTAWEB_HTTP_PUBLIC_MOCK_CALLBACK_H_
22 #define NET_INSTAWEB_HTTP_PUBLIC_MOCK_CALLBACK_H_
25 #include "net/instaweb/http/public/request_context.h"
29 namespace net_instaweb {
43 virtual void HandleDone(
bool success) {
44 EXPECT_FALSE(done()) <<
"Already Done; perhaps you reused without Reset()";
45 StringAsyncFetch::HandleDone(success);
46 EXPECT_EQ(expect_success_, success);
49 void set_expect_success(
bool x) { expect_success_ = x; }
Definition: mock_callback.h:34
virtual const RequestContextPtr & request_context()
Definition: async_fetch.h:151
Definition: async_fetch.h:192