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

Side by Side Diff: components/autofill/core/browser/autofill_xml_parser_unittest.cc

Issue 1859453002: components/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/core/browser/autofill_xml_parser.h"
6
7 #include <memory>
5 #include <string> 8 #include <string>
6 #include <utility> 9 #include <utility>
7 #include <vector> 10 #include <vector>
8 11
9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
11 #include "components/autofill/core/browser/autofill_server_field_info.h" 13 #include "components/autofill/core/browser/autofill_server_field_info.h"
12 #include "components/autofill/core/browser/autofill_xml_parser.h"
13 #include "components/autofill/core/browser/field_types.h" 14 #include "components/autofill/core/browser/field_types.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 16
16 namespace autofill { 17 namespace autofill {
17 namespace { 18 namespace {
18 19
19 class AutofillQueryXmlParserTest : public testing::Test { 20 class AutofillQueryXmlParserTest : public testing::Test {
20 public: 21 public:
21 AutofillQueryXmlParserTest(): upload_required_(USE_UPLOAD_RATES) {} 22 AutofillQueryXmlParserTest(): upload_required_(USE_UPLOAD_RATES) {}
22 ~AutofillQueryXmlParserTest() override{}; 23 ~AutofillQueryXmlParserTest() override{};
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Unknown autofill type is handled gracefully. 132 // Unknown autofill type is handled gracefully.
132 ParseQueryXML(std::move(xml), true); 133 ParseQueryXML(std::move(xml), true);
133 134
134 EXPECT_EQ(USE_UPLOAD_RATES, upload_required_); 135 EXPECT_EQ(USE_UPLOAD_RATES, upload_required_);
135 ASSERT_EQ(1U, field_infos_.size()); 136 ASSERT_EQ(1U, field_infos_.size());
136 EXPECT_EQ(NO_SERVER_DATA, field_infos_[0].field_type); 137 EXPECT_EQ(NO_SERVER_DATA, field_infos_[0].field_type);
137 } 138 }
138 139
139 } // namespace 140 } // namespace
140 } // namespace autofill 141 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_test_utils.cc ('k') | components/autofill/core/browser/country_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698