| Index: components/policy/core/browser/url_blacklist_policy_handler_unittest.cc
|
| diff --git a/components/policy/core/browser/url_blacklist_policy_handler_unittest.cc b/components/policy/core/browser/url_blacklist_policy_handler_unittest.cc
|
| index 9c9186a33d2717f31121ef9052b60745de292bfa..2d0260495d1ffbc82809727ead65caaaeeb7fbfe 100644
|
| --- a/components/policy/core/browser/url_blacklist_policy_handler_unittest.cc
|
| +++ b/components/policy/core/browser/url_blacklist_policy_handler_unittest.cc
|
| @@ -69,7 +69,7 @@ TEST_F(URLBlacklistPolicyHandlerTest,
|
| CheckPolicySettings_DisabledSchemesWrongType) {
|
| // The policy expects a list. Give it a boolean.
|
| EXPECT_TRUE(CheckPolicy(key::kDisabledSchemes,
|
| - base::WrapUnique(new base::FundamentalValue(false))));
|
| + base::MakeUnique<base::FundamentalValue>(false)));
|
| EXPECT_EQ(1U, errors_.size());
|
| const std::string expected = key::kDisabledSchemes;
|
| const std::string actual = errors_.begin()->first;
|
| @@ -80,7 +80,7 @@ TEST_F(URLBlacklistPolicyHandlerTest,
|
| CheckPolicySettings_URLBlacklistWrongType) {
|
| // The policy expects a list. Give it a boolean.
|
| EXPECT_TRUE(CheckPolicy(key::kURLBlacklist,
|
| - base::WrapUnique(new base::FundamentalValue(false))));
|
| + base::MakeUnique<base::FundamentalValue>(false)));
|
| EXPECT_EQ(1U, errors_.size());
|
| const std::string expected = key::kURLBlacklist;
|
| const std::string actual = errors_.begin()->first;
|
| @@ -96,7 +96,7 @@ TEST_F(URLBlacklistPolicyHandlerTest,
|
| ApplyPolicySettings_DisabledSchemesWrongType) {
|
| // The policy expects a list. Give it a boolean.
|
| SetPolicy(key::kDisabledSchemes,
|
| - base::WrapUnique(new base::FundamentalValue(false)));
|
| + base::MakeUnique<base::FundamentalValue>(false));
|
| ApplyPolicies();
|
| EXPECT_FALSE(prefs_.GetValue(policy_prefs::kUrlBlacklist, NULL));
|
| }
|
| @@ -105,7 +105,7 @@ TEST_F(URLBlacklistPolicyHandlerTest,
|
| ApplyPolicySettings_URLBlacklistWrongType) {
|
| // The policy expects a list. Give it a boolean.
|
| SetPolicy(key::kURLBlacklist,
|
| - base::WrapUnique(new base::FundamentalValue(false)));
|
| + base::MakeUnique<base::FundamentalValue>(false));
|
| ApplyPolicies();
|
| EXPECT_FALSE(prefs_.GetValue(policy_prefs::kUrlBlacklist, NULL));
|
| }
|
|
|