net_instaweb::MockCallback Class Reference

#include "mock_callback.h"

Inheritance diagram for net_instaweb::MockCallback:
net_instaweb::UrlAsyncFetcher::Callback

List of all members.

Public Member Functions

virtual void Done (bool success)
bool success () const
bool done () const

Detailed Description

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:33:54 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3