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

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

Issue 1902633006: Convert //components/policy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and use namespace alias Created 4 years, 8 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/proxy_policy_provider_unittest.cc
diff --git a/components/policy/core/common/proxy_policy_provider_unittest.cc b/components/policy/core/common/proxy_policy_provider_unittest.cc
index 142e353632a3a7485d0704efad7a26f553314b56..76e13fb78f2d6fac07893f9b2f4a3a8d4da67628 100644
--- a/components/policy/core/common/proxy_policy_provider_unittest.cc
+++ b/components/policy/core/common/proxy_policy_provider_unittest.cc
@@ -35,8 +35,8 @@ class ProxyPolicyProviderTest : public testing::Test {
MockConfigurationPolicyProvider mock_provider_;
ProxyPolicyProvider proxy_provider_;
- static scoped_ptr<PolicyBundle> CopyBundle(const PolicyBundle& bundle) {
- scoped_ptr<PolicyBundle> copy(new PolicyBundle());
+ static std::unique_ptr<PolicyBundle> CopyBundle(const PolicyBundle& bundle) {
+ std::unique_ptr<PolicyBundle> copy(new PolicyBundle());
copy->CopyFrom(bundle);
return copy;
}
@@ -99,7 +99,8 @@ TEST_F(ProxyPolicyProviderTest, RefreshPolicies) {
Mock::VerifyAndClearExpectations(&mock_provider_);
EXPECT_CALL(observer_, OnUpdatePolicy(&proxy_provider_));
- mock_provider_.UpdatePolicy(scoped_ptr<PolicyBundle>(new PolicyBundle()));
+ mock_provider_.UpdatePolicy(
+ std::unique_ptr<PolicyBundle>(new PolicyBundle()));
Mock::VerifyAndClearExpectations(&observer_);
}
« no previous file with comments | « components/policy/core/common/proxy_policy_provider.cc ('k') | components/policy/core/common/registry_dict_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698