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

Unified Diff: components/content_settings/core/test/content_settings_test_utils.h

Issue 1865803002: [Policy Experimental] Add policies to allow Cookies and Pop-ups exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync; compile fix in PolicyProvider::GetUserExceptionsUsageSettingForType(). Created 4 years, 8 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/content_settings/core/test/content_settings_test_utils.h
diff --git a/components/content_settings/core/test/content_settings_test_utils.h b/components/content_settings/core/test/content_settings_test_utils.h
index 2374df07f87c866d2b22235c220146130d3d3c54..165001e740d58c7fe6509c0685098e7bc384215b 100644
--- a/components/content_settings/core/test/content_settings_test_utils.h
+++ b/components/content_settings/core/test/content_settings_test_utils.h
@@ -5,11 +5,15 @@
#ifndef COMPONENTS_CONTENT_SETTINGS_CORE_TEST_CONTENT_SETTINGS_TEST_UTILS_H_
#define COMPONENTS_CONTENT_SETTINGS_CORE_TEST_CONTENT_SETTINGS_TEST_UTILS_H_
+#include <string>
+
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "components/content_settings/core/browser/content_settings_utils.h"
+class HostContentSettingsMap;
+
namespace content_settings {
class TestUtils {
@@ -45,6 +49,12 @@ class TestUtils {
ContentSettingsPattern* primary_pattern,
ContentSettingsPattern* secondary_pattern);
+ // Accesses the PrefProvider in |map| to add a pattern.
+ static bool AddPrefException(const std::string& pattern_string,
+ ContentSettingsType content_type,
+ ContentSetting setting,
+ HostContentSettingsMap* settings_map);
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(TestUtils);
};

Powered by Google App Engine
This is Rietveld 408576698