Page Speed Optimization Libraries
1.5.27.2
|
Protected Member Functions | |
GoogleString | OriginTtlMaxAge () |
RewriteContextTestBase (std::pair< TestRewriteDriverFactory *, TestRewriteDriverFactory * > factories) | |
virtual void | SetUp () |
virtual void | TearDown () |
virtual bool | AddBody () const |
virtual void | ClearStats () |
void | InitResources () |
void | InitResourcesToDomain (const char *domain) |
void | InitTrimFilters (OutputResourceKind kind) |
void | InitUpperFilter (OutputResourceKind kind, RewriteDriver *rewrite_driver) |
void | InitCombiningFilter (int64 rewrite_delay_ms) |
void | InitNestedFilter (bool expected_nested_rewrite_result) |
Protected Attributes | |
TrimWhitespaceRewriter * | trim_filter_ |
TrimWhitespaceRewriter * | other_trim_filter_ |
CombiningFilter * | combining_filter_ |
NestedFilter * | nested_filter_ |
Static Protected Attributes | |
static const int64 | kRewriteDeadlineMs = 20 |
static const int64 | kOriginTtlMs = 12 * Timer::kMinuteMs |
static const int64 | kLowOriginTtlMs = 5 * Timer::kSecondMs |
virtual bool net_instaweb::RewriteContextTestBase::AddBody | ( | ) | const [inline, protected, virtual] |
In this set of tests, we will provide explicit body tags, so the test harness should not add them in for our convenience. It can go ahead and add the <html> and </html>, however.
Reimplemented from net_instaweb::RewriteTestBase.
GoogleString net_instaweb::RewriteContextTestBase::OriginTtlMaxAge | ( | ) | [inline, protected] |
Use a TTL value other than the implicit value, so we are sure we are using the original TTL value.
const int64 net_instaweb::RewriteContextTestBase::kLowOriginTtlMs = 5 * Timer::kSecondMs [static, protected] |
An TTL value that is lower than the default implicit TTL value (300 seconds).
const int64 net_instaweb::RewriteContextTestBase::kOriginTtlMs = 12 * Timer::kMinuteMs [static, protected] |
Use a TTL value other than the implicit value, so we are sure we are using the original TTL value.