Page Speed Optimization Libraries  1.2.24.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::ExpectStringAsyncFetch Class Reference

#include "mock_callback.h"

Inheritance diagram for net_instaweb::ExpectStringAsyncFetch:
net_instaweb::StringAsyncFetch net_instaweb::AsyncFetch net_instaweb::Writer

List of all members.

Public Member Functions

 ExpectStringAsyncFetch (bool expect_success)
 ExpectStringAsyncFetch (bool expect_success, const RequestContextPtr &request_context)
virtual void HandleDone (bool success)
void set_expect_success (bool x)

Detailed Description

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines