Index: components/policy/core/common/cloud/component_cloud_policy_service_unittest.cc |
diff --git a/components/policy/core/common/cloud/component_cloud_policy_service_unittest.cc b/components/policy/core/common/cloud/component_cloud_policy_service_unittest.cc |
index 60699a0edfbbb280cdba7c00e23d80e6e0540dc5..69086202e460b971cc9408de6224beeafe44f7f6 100644 |
--- a/components/policy/core/common/cloud/component_cloud_policy_service_unittest.cc |
+++ b/components/policy/core/common/cloud/component_cloud_policy_service_unittest.cc |
@@ -134,10 +134,16 @@ class ComponentCloudPolicyServiceTest : public testing::Test { |
builder_.payload().set_download_url(kTestDownload); |
builder_.payload().set_secure_hash(crypto::SHA256HashString(kTestPolicy)); |
- expected_policy_.Set("Name", POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER, |
- base::Value::CreateStringValue("disabled"), NULL); |
- expected_policy_.Set("Second", POLICY_LEVEL_RECOMMENDED, POLICY_SCOPE_USER, |
- base::Value::CreateStringValue("maybe"), NULL); |
+ expected_policy_.Set("Name", |
+ POLICY_LEVEL_MANDATORY, |
+ POLICY_SCOPE_USER, |
+ new base::StringValue("disabled"), |
+ NULL); |
+ expected_policy_.Set("Second", |
+ POLICY_LEVEL_RECOMMENDED, |
+ POLICY_SCOPE_USER, |
+ new base::StringValue("maybe"), |
+ NULL); |
} |
virtual void TearDown() OVERRIDE { |
@@ -550,8 +556,10 @@ TEST_F(ComponentCloudPolicyServiceTest, LoadInvalidPolicyFromCache) { |
PolicyBundle expected_bundle; |
const PolicyNamespace ns(POLICY_DOMAIN_EXTENSIONS, kTestExtension); |
- expected_bundle.Get(ns).Set("Name", POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER, |
- base::Value::CreateStringValue("published"), |
+ expected_bundle.Get(ns).Set("Name", |
+ POLICY_LEVEL_MANDATORY, |
+ POLICY_SCOPE_USER, |
+ new base::StringValue("published"), |
NULL); |
EXPECT_TRUE(service_->policy().Equals(expected_bundle)); |
} |