net_instaweb::FetcherTest::MockFetcher Class Reference

Helpful classes for testing. More...

#include "fetcher_test.h"

Inheritance diagram for net_instaweb::FetcherTest::MockFetcher:
net_instaweb::UrlFetcher

List of all members.

Public Member Functions

virtual bool StreamingFetchUrl (const GoogleString &url, const RequestHeaders &request_headers, ResponseHeaders *response_headers, Writer *response_writer, MessageHandler *message_handler)
int num_fetches () const

Detailed Description

Helpful classes for testing.

This mock fetcher will only fetch kGoodUrl, returning kHtmlContent. If you ask for any other URL it will fail.


Member Function Documentation

virtual bool net_instaweb::FetcherTest::MockFetcher::StreamingFetchUrl ( const GoogleString url,
const RequestHeaders request_headers,
ResponseHeaders response_headers,
Writer response_writer,
MessageHandler message_handler 
) [virtual]

Fetch a URL, streaming the output to fetched_content_writer, and returning the headers. Returns true if the fetch was successful.

Implements net_instaweb::UrlFetcher.


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:53 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3