Page Speed Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Unified Diff: pagespeed/testing/pagespeed_test.h

Issue 736001: Move redirect chain computation from RuleInput to ResourceCollection. (Closed) Base URL: http://page-speed.googlecode.com/svn/lib/trunk/src/
Patch Set: Created 1 year ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pagespeed/testing/pagespeed_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pagespeed/testing/pagespeed_test.h
===================================================================
--- pagespeed/testing/pagespeed_test.h (revision 2211)
+++ pagespeed/testing/pagespeed_test.h (working copy)
@@ -99,6 +99,7 @@
// Freeze the PagespeedInput structure.
virtual void Freeze();
+ virtual void Freeze(bool expected_result);
// Construct a new HTTP GET Resource with the specified URL and
// status code, and add that resource to our PagespeedInput.
@@ -261,12 +262,16 @@
PagespeedTest::TearDown();
}
- virtual void Freeze() {
- PagespeedTest::Freeze();
+ virtual void Freeze(bool expected_result) {
+ PagespeedTest::Freeze(expected_result);
rule_input_.reset(new pagespeed::RuleInput(*pagespeed_input()));
rule_input_->Init();
}
+ virtual void Freeze() {
+ Freeze(true);
+ }
+
bool AppendResults() {
return rule_->AppendResults(*rule_input(), &provider_);
}
« no previous file with comments | « pagespeed/testing/pagespeed_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r757