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

Unified Diff: pagespeed/testing/pagespeed_test.cc

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/rules/specify_image_dimensions.cc ('k') | pagespeed/testing/pagespeed_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pagespeed/testing/pagespeed_test.cc
===================================================================
--- pagespeed/testing/pagespeed_test.cc (revision 2211)
+++ pagespeed/testing/pagespeed_test.cc (working copy)
@@ -96,9 +96,13 @@
void PagespeedTest::DoTearDown() {}
void PagespeedTest::Freeze() {
+ Freeze(true);
+}
+
+void PagespeedTest::Freeze(bool expected_result) {
ASSERT_TRUE(
pagespeed_input_->AcquireInstrumentationData(&instrumentation_data_));
- ASSERT_TRUE(pagespeed_input_->Freeze());
+ ASSERT_EQ(expected_result, pagespeed_input_->Freeze());
}
pagespeed::Resource* PagespeedTest::NewResource(const std::string& url,
« no previous file with comments | « pagespeed/rules/specify_image_dimensions.cc ('k') | pagespeed/testing/pagespeed_test.h » ('j') | no next file with comments »

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