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

Unified Diff: components/policy/core/common/schema_registry_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/schema_registry_unittest.cc
diff --git a/components/policy/core/common/schema_registry_unittest.cc b/components/policy/core/common/schema_registry_unittest.cc
index 9d5fbd4f6db0fae5c7544426b24b408a4275bd2e..3d53d96295b34d2b93d97821b7595b4c0584a95d 100644
--- a/components/policy/core/common/schema_registry_unittest.cc
+++ b/components/policy/core/common/schema_registry_unittest.cc
@@ -4,7 +4,8 @@
#include "components/policy/core/common/schema_registry.h"
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "components/policy/core/common/policy_namespace.h"
#include "components/policy/core/common/schema.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -140,8 +141,8 @@ TEST(SchemaRegistryTest, Combined) {
ASSERT_TRUE(schema.valid()) << error;
MockSchemaRegistryObserver observer;
- scoped_ptr<SchemaRegistry> registry1(new SchemaRegistry);
- scoped_ptr<SchemaRegistry> registry2(new SchemaRegistry);
+ std::unique_ptr<SchemaRegistry> registry1(new SchemaRegistry);
+ std::unique_ptr<SchemaRegistry> registry2(new SchemaRegistry);
CombinedSchemaRegistry combined;
combined.AddObserver(&observer);
@@ -246,7 +247,7 @@ TEST(SchemaRegistryTest, Combined) {
}
TEST(SchemaRegistryTest, ForwardingSchemaRegistry) {
- scoped_ptr<SchemaRegistry> registry(new SchemaRegistry);
+ std::unique_ptr<SchemaRegistry> registry(new SchemaRegistry);
ForwardingSchemaRegistry forwarding(registry.get());
MockSchemaRegistryObserver observer;
forwarding.AddObserver(&observer);

Powered by Google App Engine
This is Rietveld 408576698