Index: chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc |
diff --git a/chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc b/chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc |
index bbcfc0783e067b6b7cd3e0727840981a70737819..f81f6f2ef83473515b184fcceb5db9cee2e1e2c9 100644 |
--- a/chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc |
+++ b/chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc |
@@ -67,12 +67,14 @@ TEST(WebRequestConditionAttributeTest, TestResourceType) { |
EXPECT_EQ("", error); |
ASSERT_TRUE(attribute.get()); |
- TestURLRequest url_request_ok(GURL("http://www.example.com"), NULL); |
+ TestURLRequestContext context; |
+ TestURLRequest url_request_ok(GURL("http://www.example.com"), NULL, &context); |
content::ResourceRequestInfo::AllocateForTesting(&url_request_ok, |
ResourceType::MAIN_FRAME, NULL); |
EXPECT_TRUE(attribute->IsFulfilled(&url_request_ok, ON_BEFORE_REQUEST)); |
- TestURLRequest url_request_fail(GURL("http://www.example.com"), NULL); |
+ TestURLRequest url_request_fail( |
+ GURL("http://www.example.com"), NULL, &context); |
content::ResourceRequestInfo::AllocateForTesting(&url_request_ok, |
ResourceType::SUB_FRAME, NULL); |
EXPECT_FALSE(attribute->IsFulfilled(&url_request_fail, ON_BEFORE_REQUEST)); |