| Index: components/autofill/core/browser/name_field_unittest.cc
|
| diff --git a/components/autofill/core/browser/name_field_unittest.cc b/components/autofill/core/browser/name_field_unittest.cc
|
| index 2221da13bb3141407c50fcbece2fc05cf5afc6cd..a76c15f62b6f8421329d2868a678817df0e8b42a 100644
|
| --- a/components/autofill/core/browser/name_field_unittest.cc
|
| +++ b/components/autofill/core/browser/name_field_unittest.cc
|
| @@ -2,13 +2,16 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include "components/autofill/core/browser/name_field.h"
|
| +
|
| +#include <memory>
|
| +
|
| #include "base/macros.h"
|
| -#include "base/memory/scoped_ptr.h"
|
| +#include "base/memory/ptr_util.h"
|
| #include "base/memory/scoped_vector.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "components/autofill/core/browser/autofill_field.h"
|
| #include "components/autofill/core/browser/autofill_scanner.h"
|
| -#include "components/autofill/core/browser/name_field.h"
|
| #include "components/autofill/core/common/form_field_data.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| @@ -22,13 +25,13 @@ class NameFieldTest : public testing::Test {
|
|
|
| protected:
|
| ScopedVector<AutofillField> list_;
|
| - scoped_ptr<NameField> field_;
|
| + std::unique_ptr<NameField> field_;
|
| FieldCandidatesMap field_candidates_map_;
|
|
|
| // Downcast for tests.
|
| - static scoped_ptr<NameField> Parse(AutofillScanner* scanner) {
|
| - scoped_ptr<FormField> field = NameField::Parse(scanner);
|
| - return make_scoped_ptr(static_cast<NameField*>(field.release()));
|
| + static std::unique_ptr<NameField> Parse(AutofillScanner* scanner) {
|
| + std::unique_ptr<FormField> field = NameField::Parse(scanner);
|
| + return base::WrapUnique(static_cast<NameField*>(field.release()));
|
| }
|
|
|
| private:
|
|
|