| Index: components/policy/core/browser/configuration_policy_pref_store_unittest.cc
|
| diff --git a/components/policy/core/browser/configuration_policy_pref_store_unittest.cc b/components/policy/core/browser/configuration_policy_pref_store_unittest.cc
|
| index e307f98006c650729291767745fa192385ed4283..35d91ee01d2313b8d3c5c0e402f7bf4052884efe 100644
|
| --- a/components/policy/core/browser/configuration_policy_pref_store_unittest.cc
|
| +++ b/components/policy/core/browser/configuration_policy_pref_store_unittest.cc
|
| @@ -52,8 +52,8 @@ TEST_F(ConfigurationPolicyPrefStoreListTest, GetDefault) {
|
|
|
| TEST_F(ConfigurationPolicyPrefStoreListTest, SetValue) {
|
| base::ListValue* in_value = new base::ListValue();
|
| - in_value->Append(base::Value::CreateStringValue("test1"));
|
| - in_value->Append(base::Value::CreateStringValue("test2,"));
|
| + in_value->Append(new base::StringValue("test1"));
|
| + in_value->Append(new base::StringValue("test2,"));
|
| PolicyMap policy;
|
| policy.Set(kTestPolicy, POLICY_LEVEL_MANDATORY,
|
| POLICY_SCOPE_USER, in_value, NULL);
|
| @@ -80,9 +80,11 @@ TEST_F(ConfigurationPolicyPrefStoreStringTest, GetDefault) {
|
|
|
| TEST_F(ConfigurationPolicyPrefStoreStringTest, SetValue) {
|
| PolicyMap policy;
|
| - policy.Set(kTestPolicy, POLICY_LEVEL_MANDATORY,
|
| + policy.Set(kTestPolicy,
|
| + POLICY_LEVEL_MANDATORY,
|
| POLICY_SCOPE_USER,
|
| - base::Value::CreateStringValue("http://chromium.org"), NULL);
|
| + new base::StringValue("http://chromium.org"),
|
| + NULL);
|
| UpdateProviderPolicy(policy);
|
| const base::Value* value = NULL;
|
| EXPECT_TRUE(store_->GetValue(kTestPref, &value));
|
| @@ -189,7 +191,7 @@ TEST_F(ConfigurationPolicyPrefStoreRefreshTest, Refresh) {
|
| policy.Set(kTestPolicy,
|
| POLICY_LEVEL_MANDATORY,
|
| POLICY_SCOPE_USER,
|
| - base::Value::CreateStringValue("http://www.chromium.org"),
|
| + new base::StringValue("http://www.chromium.org"),
|
| NULL);
|
| UpdateProviderPolicy(policy);
|
| observer_.VerifyAndResetChangedKey(kTestPref);
|
|
|