Page Speed Optimization Libraries  1.3.25.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends
net_instaweb::ProxyInterfaceTestBase Class Reference

#include "proxy_interface_test_base.h"

Inheritance diagram for net_instaweb::ProxyInterfaceTestBase:
net_instaweb::RewriteTestBase net_instaweb::RewriteOptionsTestBase< OptionsClass > net_instaweb::HtmlParseTestBaseNoAlloc

List of all members.

Public Member Functions

void TestHeadersSetupRace ()

Protected Member Functions

virtual void SetUp ()
virtual void TearDown ()
void FetchFromProxy (const StringPiece &url, const RequestHeaders &request_headers, bool expect_success, GoogleString *string_out, ResponseHeaders *headers_out)
void FetchFromProxy (const StringPiece &url, bool expect_success, GoogleString *string_out, ResponseHeaders *headers_out)
void FetchFromProxyLoggingFlushes (const StringPiece &url, bool expect_success, GoogleString *string_out)
void FetchFromProxyNoWait (const StringPiece &url, const RequestHeaders &request_headers, bool expect_success, bool log_flush, ResponseHeaders *headers_out)
void WaitForFetch ()
void TestPropertyCache (const StringPiece &url, bool delay_pcache, bool thread_pcache, bool expect_success)
void TestPropertyCacheWithHeadersAndOutput (const StringPiece &url, bool delay_pcache, bool thread_pcache, bool expect_success, bool check_stats, bool add_create_filter_callback, bool expect_detach_before_pcache, const RequestHeaders &request_headers, ResponseHeaders *response_headers, GoogleString *output)

Protected Attributes

scoped_ptr< ProxyInterfaceproxy_interface_
scoped_ptr
< WorkerTestBase::SyncPoint
sync_
ResponseHeaders callback_response_headers_
GoogleString callback_buffer_
bool callback_done_value_

Static Protected Attributes

static const int kHtmlCacheTimeSec = 5000

Friends

class FilterCallback

Detailed Description

Todo:
TODO(morlovich): This currently relies on ResourceManagerTestBase to help setup fetchers; and also indirectly to prevent any rewrites from timing out (as it runs the tests with real scheduler but mock timer). It would probably be better to port this away to use TestRewriteDriverFactory directly.

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