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 <algorithm> | 5 #include <algorithm> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/prefs/pref_service.h" | 14 #include "base/prefs/pref_service.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
18 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
19 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
20 #include "base/strings/utf_string_conversions.h" | 20 #include "base/strings/utf_string_conversions.h" |
21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
22 #include "base/tuple.h" | |
23 #include "components/autofill/core/browser/autocomplete_history_manager.h" | 22 #include "components/autofill/core/browser/autocomplete_history_manager.h" |
24 #include "components/autofill/core/browser/autofill_manager.h" | 23 #include "components/autofill/core/browser/autofill_manager.h" |
25 #include "components/autofill/core/browser/autofill_metrics.h" | 24 #include "components/autofill/core/browser/autofill_metrics.h" |
26 #include "components/autofill/core/browser/autofill_profile.h" | 25 #include "components/autofill/core/browser/autofill_profile.h" |
27 #include "components/autofill/core/browser/autofill_test_utils.h" | 26 #include "components/autofill/core/browser/autofill_test_utils.h" |
28 #include "components/autofill/core/browser/credit_card.h" | 27 #include "components/autofill/core/browser/credit_card.h" |
29 #include "components/autofill/core/browser/personal_data_manager.h" | 28 #include "components/autofill/core/browser/personal_data_manager.h" |
30 #include "components/autofill/core/browser/popup_item_ids.h" | 29 #include "components/autofill/core/browser/popup_item_ids.h" |
31 #include "components/autofill/core/browser/test_autofill_client.h" | 30 #include "components/autofill/core/browser/test_autofill_client.h" |
32 #include "components/autofill/core/browser/test_autofill_driver.h" | 31 #include "components/autofill/core/browser/test_autofill_driver.h" |
(...skipping 3073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3106 base::string16 expected_values[] = {ASCIIToUTF16("************3456")}; | 3105 base::string16 expected_values[] = {ASCIIToUTF16("************3456")}; |
3107 base::string16 expected_labels[] = {ASCIIToUTF16("04/12")}; | 3106 base::string16 expected_labels[] = {ASCIIToUTF16("04/12")}; |
3108 base::string16 expected_icons[] = {ASCIIToUTF16(kVisaCard)}; | 3107 base::string16 expected_icons[] = {ASCIIToUTF16(kVisaCard)}; |
3109 int expected_unique_ids[] = {autofill_manager_->GetPackedCreditCardID(4)}; | 3108 int expected_unique_ids[] = {autofill_manager_->GetPackedCreditCardID(4)}; |
3110 external_delegate_->CheckSuggestions( | 3109 external_delegate_->CheckSuggestions( |
3111 kDefaultPageID, arraysize(expected_values), expected_values, | 3110 kDefaultPageID, arraysize(expected_values), expected_values, |
3112 expected_labels, expected_icons, expected_unique_ids); | 3111 expected_labels, expected_icons, expected_unique_ids); |
3113 } | 3112 } |
3114 | 3113 |
3115 } // namespace autofill | 3114 } // namespace autofill |
OLD | NEW |