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

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

Issue 1873343002: [Policy] HostContentSettingsMap: Add AreUserExceptionsAllowedForType() and tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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..61622d01831dcd34c78079098605027e1576f269 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);
+ // Adds a pattern into the PrefProvider in |settings_map|.
+ static bool AddUserException(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