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

Unified Diff: chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc

Issue 11365227: Reland 167337 - Move url_request_test_util into net namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc
diff --git a/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc b/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc
index b6c3e2fcd449e3a618df15c462789bcc5026952c..e92ec7412b2813ca6780d164b71ba2297bba9f14 100644
--- a/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc
+++ b/chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc
@@ -227,8 +227,8 @@ TEST_F(WebRequestRulesRegistryTest, AddRulesImpl) {
std::set<WebRequestRule::GlobalRuleId> matches;
GURL http_url("http://www.example.com");
- TestURLRequestContext context;
- TestURLRequest http_request(http_url, NULL, &context);
+ net::TestURLRequestContext context;
+ net::TestURLRequest http_request(http_url, NULL, &context);
matches = registry->GetMatches(
WebRequestRule::RequestData(&http_request, ON_BEFORE_REQUEST));
EXPECT_EQ(2u, matches.size());
@@ -238,7 +238,7 @@ TEST_F(WebRequestRulesRegistryTest, AddRulesImpl) {
matches.end());
GURL foobar_url("http://www.foobar.com");
- TestURLRequest foobar_request(foobar_url, NULL, &context);
+ net::TestURLRequest foobar_request(foobar_url, NULL, &context);
matches = registry->GetMatches(
WebRequestRule::RequestData(&foobar_request, ON_BEFORE_REQUEST));
EXPECT_EQ(1u, matches.size());
@@ -359,8 +359,8 @@ TEST_F(WebRequestRulesRegistryTest, Precedences) {
EXPECT_EQ("", error);
GURL url("http://www.google.com");
- TestURLRequestContext context;
- TestURLRequest request(url, NULL, &context);
+ net::TestURLRequestContext context;
+ net::TestURLRequest request(url, NULL, &context);
std::list<LinkedPtrEventResponseDelta> deltas =
registry->CreateDeltas(
NULL,
@@ -409,8 +409,8 @@ TEST_F(WebRequestRulesRegistryTest, Priorities) {
EXPECT_EQ("", error);
GURL url("http://www.google.com/index.html");
- TestURLRequestContext context;
- TestURLRequest request(url, NULL, &context);
+ net::TestURLRequestContext context;
+ net::TestURLRequest request(url, NULL, &context);
std::list<LinkedPtrEventResponseDelta> deltas =
registry->CreateDeltas(
NULL,

Powered by Google App Engine
This is Rietveld 408576698