OLD | NEW |
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 Loading... |
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 |
OLD | NEW |