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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc

Issue 2272323002: Allow Safe Browsing Saresource Filter to distinguish between different lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix safe_browsing_service_browsertest Created 4 years, 4 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/safe_browsing/safe_browsing_service_browsertest.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc b/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
index 4797dffd0a52f73c33387096321d7f66be6a737a..9b669989d661f4a5871d5d0f4c1cb2d8ddd1ed6a 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc
@@ -56,6 +56,8 @@
#include "components/safe_browsing_db/util.h"
#include "components/safe_browsing_db/v4_protocol_manager_util.h"
#include "components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h"
+#include "components/subresource_filter/core/browser/subresource_filter_features.h"
+#include "components/subresource_filter/core/browser/subresource_filter_features_test_support.h"
#include "content/public/browser/interstitial_page.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/render_frame_host.h"
@@ -899,6 +901,12 @@ IN_PROC_BROWSER_TEST_F(SafeBrowsingServiceTest, MainFrameHitWithReferrer) {
IN_PROC_BROWSER_TEST_F(SafeBrowsingServiceTest,
SocEngReportingBlacklistNotEmpty) {
+ subresource_filter::testing::ScopedSubresourceFilterFeatureToggle
+ scoped_feature_toggle(
+ base::FeatureList::OVERRIDE_ENABLE_FEATURE,
+ subresource_filter::kActivationStateEnabled,
+ subresource_filter::kActivationScopeNoSites,
+ subresource_filter::kActivationListSocialEngineeringAdsInterstitial);
// Tests that when Safe Browsing gets hit which is corresponding to the
// SOCIAL_ENGINEERING_ADS threat type, then URL is added to the Subresource
// Filter.

Powered by Google App Engine
This is Rietveld 408576698