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

Unified Diff: components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc

Issue 2175763002: Integrate IndexedRuleset into DocumentSubresourceFilter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests. Created 4 years, 5 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: components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc
diff --git a/components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc b/components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc
index 213e796dac7a9d645ab44bceb3c998466e454fd3..47c1d1e2450f6c3655bf8381b92ab6ebaae4efd6 100644
--- a/components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc
+++ b/components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc
@@ -82,7 +82,7 @@ class SubresourceFilterAgentTest : public ::testing::Test {
void SetTestRulesetToDisallowURLsWithPathSuffix(base::StringPiece suffix) {
base::File ruleset_file;
ASSERT_NO_FATAL_FAILURE(
- test_ruleset_creator_.CreateRulesetToDisallowURLsWithPathSuffix(
+ test_ruleset_creator_.CreateRulesetFileToDisallowURLsWithPathSuffix(
suffix, &ruleset_file));
ruleset_dealer_.SetRulesetFile(std::move(ruleset_file));
}
@@ -116,7 +116,7 @@ class SubresourceFilterAgentTest : public ::testing::Test {
void ExpectLoadAllowed(base::StringPiece url_spec, bool allowed) {
blink::WebURL url = GURL(url_spec);
blink::WebURLRequest::RequestContext request_context =
- blink::WebURLRequest::RequestContextUnspecified;
+ blink::WebURLRequest::RequestContextImage;
EXPECT_EQ(allowed, agent()->filter()->allowLoad(url, request_context));
}

Powered by Google App Engine
This is Rietveld 408576698