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

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

Issue 7647026: base: Add three helper functions to Values API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix a typo Ceate -> Create 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..8bc82692b0f6a93c05d4ce5b7ad9850dffacb713 100644
--- a/chrome/browser/policy/config_dir_policy_provider_unittest.cc
+++ b/chrome/browser/policy/config_dir_policy_provider_unittest.cc
@@ -143,7 +143,7 @@ class ValueTestParams {
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,
@@ -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