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

Unified Diff: components/policy/core/common/cloud/cloud_policy_manager_unittest.cc

Issue 397793002: Eliminate CreateBooleanValue from test files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/cloud/cloud_policy_manager_unittest.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_manager_unittest.cc b/components/policy/core/common/cloud/cloud_policy_manager_unittest.cc
index 274b95d6521d322e1d78d6664200b028f1204462..ff393dd9b5e8dfe78c0b2bcd66baa295c323a3bc 100644
--- a/components/policy/core/common/cloud/cloud_policy_manager_unittest.cc
+++ b/components/policy/core/common/cloud/cloud_policy_manager_unittest.cc
@@ -101,8 +101,11 @@ void TestHarness::InstallIntegerPolicy(const std::string& policy_name,
void TestHarness::InstallBooleanPolicy(const std::string& policy_name,
bool policy_value) {
- store_.policy_map_.Set(policy_name, policy_level(), policy_scope(),
- base::Value::CreateBooleanValue(policy_value), NULL);
+ store_.policy_map_.Set(policy_name,
+ policy_level(),
+ policy_scope(),
+ new base::FundamentalValue(policy_value),
+ NULL);
}
void TestHarness::InstallStringListPolicy(const std::string& policy_name,

Powered by Google App Engine
This is Rietveld 408576698