Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(940)

Unified Diff: chrome/browser/predictors/resource_prefetcher_unittest.cc

Issue 2228003002: predictors: Fix duplicate content type detection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comment. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/predictors/resource_prefetch_predictor_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/predictors/resource_prefetcher_unittest.cc
diff --git a/chrome/browser/predictors/resource_prefetcher_unittest.cc b/chrome/browser/predictors/resource_prefetcher_unittest.cc
index e97d8e61f1e18c5bf66f8f57f48e4326eb193f1e..e1576e2a52bf5e73878be44974724f0cf29d2a92 100644
--- a/chrome/browser/predictors/resource_prefetcher_unittest.cc
+++ b/chrome/browser/predictors/resource_prefetcher_unittest.cc
@@ -189,10 +189,7 @@ TEST_F(ResourcePrefetcherTest, TestPrefetcherFinishes) {
requests->push_back(new ResourcePrefetcher::Request(GURL(
"http://yahoo.com/resource5.png")));
- NavigationID navigation_id;
- navigation_id.render_process_id = 1;
- navigation_id.render_frame_id = 2;
- navigation_id.main_frame_url = GURL("http://www.google.com");
+ NavigationID navigation_id(1, 2, GURL("http://www.google.com"));
// Needed later for comparison.
ResourcePrefetcher::RequestVector* requests_ptr = requests.get();
@@ -310,10 +307,7 @@ TEST_F(ResourcePrefetcherTest, TestPrefetcherStopped) {
requests->push_back(new ResourcePrefetcher::Request(GURL(
"http://m.google.com/resource1.jpg")));
- NavigationID navigation_id;
- navigation_id.render_process_id = 1;
- navigation_id.render_frame_id = 2;
- navigation_id.main_frame_url = GURL("http://www.google.com");
+ NavigationID navigation_id(1, 2, GURL("http://www.google.com"));
// Needed later for comparison.
ResourcePrefetcher::RequestVector* requests_ptr = requests.get();
« no previous file with comments | « chrome/browser/predictors/resource_prefetch_predictor_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698