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

Unified Diff: components/policy/core/common/generate_policy_source_unittest.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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/common/generate_policy_source_unittest.cc
diff --git a/components/policy/core/common/generate_policy_source_unittest.cc b/components/policy/core/common/generate_policy_source_unittest.cc
index 2e2a91f96fc245fd24477a1e57b516d21f017500..8ea85fdc03abc91450bd52fc2fee3f41e344f6b5 100644
--- a/components/policy/core/common/generate_policy_source_unittest.cc
+++ b/components/policy/core/common/generate_policy_source_unittest.cc
@@ -214,17 +214,17 @@ TEST(GeneratePolicySource, SetEnterpriseDefaults) {
const base::Value* multiprof_behavior =
policy_map.GetValue(key::kChromeOsMultiProfileUserBehavior);
- base::StringValue expected("primary-only");
+ base::Value expected("primary-only");
EXPECT_TRUE(expected.Equals(multiprof_behavior));
// If policy already configured, it's not changed to enterprise defaults.
policy_map.Set(key::kChromeOsMultiProfileUserBehavior, POLICY_LEVEL_MANDATORY,
POLICY_SCOPE_USER, POLICY_SOURCE_CLOUD,
- base::MakeUnique<base::StringValue>("test_value"), nullptr);
+ base::MakeUnique<base::Value>("test_value"), nullptr);
SetEnterpriseUsersDefaults(&policy_map);
multiprof_behavior =
policy_map.GetValue(key::kChromeOsMultiProfileUserBehavior);
- expected = base::StringValue("test_value");
+ expected = base::Value("test_value");
EXPECT_TRUE(expected.Equals(multiprof_behavior));
}
#endif
« no previous file with comments | « components/policy/core/common/configuration_policy_provider_test.cc ('k') | components/policy/core/common/mac_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698