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

Unified Diff: components/policy/core/common/policy_bundle_unittest.cc

Issue 397793002: Eliminate CreateBooleanValue from test files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad merge Created 6 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/policy/core/common/policy_bundle_unittest.cc
diff --git a/components/policy/core/common/policy_bundle_unittest.cc b/components/policy/core/common/policy_bundle_unittest.cc
index 351e70564df163a99a959af65714d4f06aea1210..4f9a37e1c3f716c80dc1f809528cbc070aa66bba 100644
--- a/components/policy/core/common/policy_bundle_unittest.cc
+++ b/components/policy/core/common/policy_bundle_unittest.cc
@@ -34,8 +34,11 @@ void AddTestPolicies(PolicyMap* policy) {
NULL);
policy->Set("mandatory-machine", POLICY_LEVEL_MANDATORY, POLICY_SCOPE_MACHINE,
base::Value::CreateStringValue("omg"), NULL);
- policy->Set("recommended-user", POLICY_LEVEL_RECOMMENDED,
- POLICY_SCOPE_USER, base::Value::CreateBooleanValue(true), NULL);
+ policy->Set("recommended-user",
+ POLICY_LEVEL_RECOMMENDED,
+ POLICY_SCOPE_USER,
+ new base::FundamentalValue(true),
+ NULL);
base::DictionaryValue* dict = new base::DictionaryValue();
dict->SetBoolean("false", false);
dict->SetInteger("int", 456);

Powered by Google App Engine
This is Rietveld 408576698