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

Unified Diff: net/url_request/request_tracker_unittest.cc

Issue 579004: Pull latest googleurl to get various fixes (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 | « net/base/net_util_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/request_tracker_unittest.cc
===================================================================
--- net/url_request/request_tracker_unittest.cc (revision 40415)
+++ net/url_request/request_tracker_unittest.cc (working copy)
@@ -199,30 +199,32 @@
tracker.SetGraveyardFilter(ShouldRequestBeAddedToGraveyard);
// This will be excluded.
- TestRequest req1(GURL("chrome://dontcare"));
+ GURL url1("chrome://dontcare/");
+ TestRequest req1(url1);
tracker.Add(&req1);
tracker.Remove(&req1);
// This will be be added to graveyard.
- TestRequest req2(GURL("chrome2://dontcare"));
+ GURL url2("chrome2://dontcare/");
+ TestRequest req2(url2);
tracker.Add(&req2);
tracker.Remove(&req2);
// This will be be added to graveyard.
- TestRequest req3(GURL("http://foo"));
+ GURL url3("http://foo/");
+ TestRequest req3(url3);
tracker.Add(&req3);
tracker.Remove(&req3);
// This will be be excluded.
- TestRequest req4(GURL("data:sup"));
+ GURL url4("data:sup");
+ TestRequest req4(url4);
tracker.Add(&req4);
tracker.Remove(&req4);
ASSERT_EQ(2u, tracker.GetRecentlyDeceased().size());
- EXPECT_EQ("chrome2://dontcare/",
- tracker.GetRecentlyDeceased()[0].original_url.spec());
- EXPECT_EQ("http://foo/",
- tracker.GetRecentlyDeceased()[1].original_url.spec());
+ EXPECT_EQ(url2, tracker.GetRecentlyDeceased()[0].original_url);
+ EXPECT_EQ(url3, tracker.GetRecentlyDeceased()[1].original_url);
}
// Convert an unbounded tracker back to being bounded.
« no previous file with comments | « net/base/net_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698