Page Speed Optimization Libraries
1.13.35.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) |
Public Member Functions inherited from net_instaweb::StringAsyncFetch | |
StringAsyncFetch (const RequestContextPtr &request_ctx) | |
StringAsyncFetch (const RequestContextPtr &request_ctx, GoogleString *buffer) | |
virtual bool | HandleWrite (const StringPiece &content, MessageHandler *handler) |
virtual bool | HandleFlush (MessageHandler *handler) |
virtual void | HandleHeadersComplete () |
bool | success () const |
bool | done () const |
const GoogleString & | buffer () const |
virtual void | Reset () |
Public Member Functions inherited from net_instaweb::AsyncFetch | |
AsyncFetch (const RequestContextPtr &request_ctx) | |
void | HeadersComplete () |
void | Done (bool success) |
virtual bool | Write (const StringPiece &content, MessageHandler *handler) |
virtual bool | Flush (MessageHandler *handler) |
virtual bool | IsCachedResultValid (const ResponseHeaders &headers) |
RequestHeaders * | request_headers () |
void | set_request_headers (RequestHeaders *headers) |
void | SetRequestHeadersTakingOwnership (RequestHeaders *headers) |
Same as above, but takes ownership. | |
const RequestHeaders * | request_headers () const |
ResponseHeaders * | response_headers () |
See doc for request_headers and set_request_headers. | |
void | set_response_headers (ResponseHeaders *headers) |
ResponseHeaders * | extra_response_headers () |
void | set_extra_response_headers (ResponseHeaders *headers) |
virtual bool | IsBackgroundFetch () const |
bool | headers_complete () const |
bool | content_length_known () const |
int64 | content_length () const |
void | set_content_length (int64 x) |
GoogleString | LoggingString () |
virtual const RequestContextPtr & | request_context () |
virtual AbstractLogRecord * | log_record () |
void | FixCacheControlForGoogleCache () |
Public Member Functions inherited from net_instaweb::Writer | |
virtual bool | Dump (Writer *writer, MessageHandler *message_handler) |
Additional Inherited Members | |
Static Public Member Functions inherited from net_instaweb::AsyncFetch | |
static bool | IsGoogleCacheVia (StringPiece via_value) |
Static Public Attributes inherited from net_instaweb::AsyncFetch | |
static const int | kContentLengthUnknown = -1 |
Protected Member Functions inherited from net_instaweb::StringAsyncFetch | |
void | set_success (bool success) |
void | set_done (bool done) |
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.