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

Unified Diff: chrome/browser/prerender/prerender_history_unittest.cc

Issue 10933065: Separate same domain and cross domain <link rel=...> prerenders for reporting. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix pending prerenders Created 8 years, 3 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
Index: chrome/browser/prerender/prerender_history_unittest.cc
diff --git a/chrome/browser/prerender/prerender_history_unittest.cc b/chrome/browser/prerender/prerender_history_unittest.cc
index db0ccc72042bf41bb51640b20e6155fced25f76c..4537d6bda3f1553ffbc239e1c61962f3be73f90b 100644
--- a/chrome/browser/prerender/prerender_history_unittest.cc
+++ b/chrome/browser/prerender/prerender_history_unittest.cc
@@ -67,7 +67,7 @@ TEST(PrerenderHistoryTest, GetAsValue) {
// Add a single entry and make sure that it matches up.
const char* const kFirstUrl = "http://www.alpha.com/";
const FinalStatus kFirstFinalStatus = FINAL_STATUS_USED;
- const Origin kFirstOrigin = ORIGIN_LINK_REL_PRERENDER;
+ const Origin kFirstOrigin = ORIGIN_LINK_REL_PRERENDER_CROSSDOMAIN;
PrerenderHistory::Entry entry_first(
GURL(kFirstUrl), kFirstFinalStatus, kFirstOrigin, epoch_start);
history.AddEntry(entry_first);
@@ -98,7 +98,7 @@ TEST(PrerenderHistoryTest, GetAsValue) {
// Add a third entry and make sure that the first one drops off.
const char* const kThirdUrl = "http://www.gamma.com/";
const FinalStatus kThirdFinalStatus = FINAL_STATUS_AUTH_NEEDED;
- const Origin kThirdOrigin = ORIGIN_LINK_REL_PRERENDER;
+ const Origin kThirdOrigin = ORIGIN_LINK_REL_PRERENDER_CROSSDOMAIN;
PrerenderHistory::Entry entry_third(
GURL(kThirdUrl), kThirdFinalStatus, kThirdOrigin,
epoch_start + base::TimeDelta::FromMilliseconds(2));

Powered by Google App Engine
This is Rietveld 408576698