| 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);
|
|
|