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

Unified Diff: chrome/browser/policy/profile_policy_connector_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: chrome/browser/policy/profile_policy_connector_unittest.cc
diff --git a/chrome/browser/policy/profile_policy_connector_unittest.cc b/chrome/browser/policy/profile_policy_connector_unittest.cc
index 7ebe705c5fcc0307839f52bf4e84e38757d51e50..53ec53d66a5c21948ecd215e6eaf1e4ad1894e93 100644
--- a/chrome/browser/policy/profile_policy_connector_unittest.cc
+++ b/chrome/browser/policy/profile_policy_connector_unittest.cc
@@ -93,8 +93,7 @@ TEST_F(ProfilePolicyConnectorTest, IsProfilePolicy) {
// Set the policy at the cloud provider.
cloud_policy_store_.policy_map_.Set(
key::kAutoFillEnabled, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER,
- POLICY_SOURCE_CLOUD, base::MakeUnique<base::FundamentalValue>(false),
- nullptr);
+ POLICY_SOURCE_CLOUD, base::MakeUnique<base::Value>(false), nullptr);
cloud_policy_store_.NotifyStoreLoaded();
base::RunLoop().RunUntilIdle();
EXPECT_TRUE(connector.IsProfilePolicy(key::kAutoFillEnabled));
@@ -102,19 +101,18 @@ TEST_F(ProfilePolicyConnectorTest, IsProfilePolicy) {
connector.policy_service()->GetPolicies(chrome_ns).GetValue(
key::kAutoFillEnabled);
ASSERT_TRUE(value);
- EXPECT_TRUE(base::FundamentalValue(false).Equals(value));
+ EXPECT_TRUE(base::Value(false).Equals(value));
// Now test with a higher-priority provider also setting the policy.
PolicyMap map;
map.Set(key::kAutoFillEnabled, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER,
- POLICY_SOURCE_CLOUD, base::MakeUnique<base::FundamentalValue>(true),
- nullptr);
+ POLICY_SOURCE_CLOUD, base::MakeUnique<base::Value>(true), nullptr);
mock_provider_.UpdateChromePolicy(map);
EXPECT_FALSE(connector.IsProfilePolicy(key::kAutoFillEnabled));
value = connector.policy_service()->GetPolicies(chrome_ns).GetValue(
key::kAutoFillEnabled);
ASSERT_TRUE(value);
- EXPECT_TRUE(base::FundamentalValue(true).Equals(value));
+ EXPECT_TRUE(base::Value(true).Equals(value));
// Cleanup.
connector.Shutdown();
« no previous file with comments | « chrome/browser/policy/policy_startup_browsertest.cc ('k') | chrome/browser/prefs/chrome_command_line_pref_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698