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

Unified Diff: chrome/browser/policy/url_blacklist_policy_handler_unittest.cc

Issue 140803003: Move the Autofill and URLBlacklist policy handlers to the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trying again... Created 6 years, 11 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
« no previous file with comments | « chrome/browser/policy/url_blacklist_policy_handler.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/url_blacklist_policy_handler_unittest.cc
diff --git a/chrome/browser/policy/url_blacklist_policy_handler_unittest.cc b/chrome/browser/policy/url_blacklist_policy_handler_unittest.cc
index fccf545492b3b567c344ceac929d030197312886..500f358bd654ac66349c06ea3bfe101b4b538403 100644
--- a/chrome/browser/policy/url_blacklist_policy_handler_unittest.cc
+++ b/chrome/browser/policy/url_blacklist_policy_handler_unittest.cc
@@ -4,19 +4,26 @@
#include "base/memory/scoped_ptr.h"
#include "base/prefs/pref_value_map.h"
-#include "chrome/browser/policy/url_blacklist_policy_handler.h"
+#include "base/values.h"
#include "components/policy/core/browser/policy_error_map.h"
+#include "components/policy/core/browser/url_blacklist_policy_handler.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_pref_names.h"
-#include "grit/generated_resources.h"
#include "policy/policy_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
+// Note: this file should move to components/policy/core/browser, but the
+// components_unittests runner does not load the ResourceBundle as
+// ChromeTestSuite::Initialize does, which leads to failures using
+// PolicyErrorMap.
+
namespace policy {
namespace {
+
const char kTestDisabledScheme[] = "kTestDisabledScheme";
const char kTestBlacklistValue[] = "kTestBlacklistValue";
+
} // namespace
class URLBlacklistPolicyHandlerTest : public testing::Test {
« no previous file with comments | « chrome/browser/policy/url_blacklist_policy_handler.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698