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

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

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 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: chrome/browser/policy/config_dir_policy_provider_unittest.cc
diff --git a/chrome/browser/policy/config_dir_policy_provider_unittest.cc b/chrome/browser/policy/config_dir_policy_provider_unittest.cc
index 924d874cc856e74f0b38ae0276e0c4adb0a84d97..323da9f7671e4c409e4ee7271566de3639b87eeb 100644
--- a/chrome/browser/policy/config_dir_policy_provider_unittest.cc
+++ b/chrome/browser/policy/config_dir_policy_provider_unittest.cc
@@ -138,24 +138,24 @@ class ValueTestParams {
static ValueTestParams ForStringPolicy(
ConfigurationPolicyType type,
const char* policy_key) {
- return ValueTestParams(type, policy_key, Value::CreateStringValue("test"));
+ return ValueTestParams(type, policy_key, base::StringValue::New("test"));
}
static ValueTestParams ForBooleanPolicy(
ConfigurationPolicyType type,
const char* policy_key) {
- return ValueTestParams(type, policy_key, Value::CreateBooleanValue(true));
+ return ValueTestParams(type, policy_key, base::TrueValue());
}
static ValueTestParams ForIntegerPolicy(
ConfigurationPolicyType type,
const char* policy_key) {
- return ValueTestParams(type, policy_key, Value::CreateIntegerValue(42));
+ return ValueTestParams(type, policy_key, base::NumberValue::New(42));
}
static ValueTestParams ForListPolicy(
ConfigurationPolicyType type,
const char* policy_key) {
ListValue* value = new ListValue();
- value->Set(0U, Value::CreateStringValue("first"));
- value->Set(1U, Value::CreateStringValue("second"));
+ value->Set(0U, base::StringValue::New("first"));
+ value->Set(1U, base::StringValue::New("second"));
return ValueTestParams(type, policy_key, value);
}
@@ -197,7 +197,7 @@ TEST_P(ConfigDirPolicyProviderValueTest, Default) {
TEST_P(ConfigDirPolicyProviderValueTest, NullValue) {
DictionaryValue dict;
- dict.Set(GetParam().policy_key(), Value::CreateNullValue());
+ dict.Set(GetParam().policy_key(), base::NullValue());
WriteConfigFile(dict, "empty");
ConfigDirPolicyProvider provider(
ConfigurationPolicyPrefStore::GetChromePolicyDefinitionList(),
« no previous file with comments | « chrome/browser/policy/cloud_policy_provider_unittest.cc ('k') | chrome/browser/policy/configuration_policy_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698