|
static const char | kStartDate [] |
|
static const char | kHtmlContent [] |
|
static const char | kGoodUrl [] |
|
static const char | kNotCachedUrl [] |
|
static const char | kBadUrl [] |
|
static const char | kHeaderName [] |
|
static const char | kHeaderValue [] |
|
static const char | kErrorMessage [] |
|
Override this to allow CountFetchesAsync w/o fetcher argument. It is not abstract (= 0) because they only need to be overridden by classes which want to use CountFetchersAsync.
int net_instaweb::FetcherTest::CountFetchesAsync |
( |
const StringPiece & |
url, |
|
|
bool |
expect_success, |
|
|
bool * |
callback_called |
|
) |
| |
|
protected |
Initiate an async URL fetch, and return the number of times the counting fetcher had to be run to perform the fetch. Note: You must override async_fetcher() to return the correct fetcher.
int net_instaweb::FetcherTest::CountFetchesAsync |
( |
const StringPiece & |
url, |
|
|
UrlAsyncFetcher * |
fetcher, |
|
|
bool |
expect_success, |
|
|
bool |
check_error_message, |
|
|
bool * |
callback_called |
|
) |
| |
|
protected |
Like above, but doesn't use async_fetcher(), and lets you opt-out of checking of error messages
This validation code is hard-coded to the http request capture in testdata/google.http.
Helpful classes for testing.
We set up a chain of fetchers: Counting -> Wait -> Mock, where the mock will only fetch kGoodUrl and kNotCachedUrl, returning kHtmlContent.
The documentation for this class was generated from the following file: