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

Unified Diff: components/policy/core/browser/configuration_policy_pref_store_unittest.cc

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 10 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/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 7fde29919118afbd7a4f8b5c4ea899a6a8f32a45..13513e5aa07a36a17e583326fa59c71c16583de9 100644
--- a/components/policy/core/browser/configuration_policy_pref_store_unittest.cc
+++ b/components/policy/core/browser/configuration_policy_pref_store_unittest.cc
@@ -113,8 +113,8 @@ TEST_F(ConfigurationPolicyPrefStoreBooleanTest, GetDefault) {
TEST_F(ConfigurationPolicyPrefStoreBooleanTest, SetValue) {
PolicyMap policy;
policy.Set(kTestPolicy, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER,
- POLICY_SOURCE_CLOUD,
- base::MakeUnique<base::FundamentalValue>(false), nullptr);
+ POLICY_SOURCE_CLOUD, base::MakeUnique<base::Value>(false),
+ nullptr);
UpdateProviderPolicy(policy);
const base::Value* value = NULL;
EXPECT_TRUE(store_->GetValue(kTestPref, &value));
@@ -125,8 +125,7 @@ TEST_F(ConfigurationPolicyPrefStoreBooleanTest, SetValue) {
EXPECT_FALSE(boolean_value);
policy.Set(kTestPolicy, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER,
- POLICY_SOURCE_CLOUD,
- base::MakeUnique<base::FundamentalValue>(true), nullptr);
+ POLICY_SOURCE_CLOUD, base::MakeUnique<base::Value>(true), nullptr);
UpdateProviderPolicy(policy);
value = NULL;
EXPECT_TRUE(store_->GetValue(kTestPref, &value));
@@ -153,12 +152,11 @@ TEST_F(ConfigurationPolicyPrefStoreIntegerTest, GetDefault) {
TEST_F(ConfigurationPolicyPrefStoreIntegerTest, SetValue) {
PolicyMap policy;
policy.Set(kTestPolicy, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER,
- POLICY_SOURCE_CLOUD, base::MakeUnique<base::FundamentalValue>(2),
- nullptr);
+ POLICY_SOURCE_CLOUD, base::MakeUnique<base::Value>(2), nullptr);
UpdateProviderPolicy(policy);
const base::Value* value = NULL;
EXPECT_TRUE(store_->GetValue(kTestPref, &value));
- EXPECT_TRUE(base::FundamentalValue(2).Equals(value));
+ EXPECT_TRUE(base::Value(2).Equals(value));
}
// Exercises the policy refresh mechanism.

Powered by Google App Engine
This is Rietveld 408576698