OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <map> | 5 #include <map> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/guid.h" | 9 #include "base/guid.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" | 15 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
16 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" | 16 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" |
17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
18 #include "chrome/test/base/testing_profile.h" | 18 #include "chrome/test/base/testing_profile.h" |
19 #include "components/autofill/browser/autofill_common_test.h" | 19 #include "components/autofill/browser/autofill_common_test.h" |
20 #include "components/autofill/browser/autofill_metrics.h" | 20 #include "components/autofill/browser/autofill_metrics.h" |
21 #include "components/autofill/browser/test_personal_data_manager.h" | 21 #include "components/autofill/browser/test_personal_data_manager.h" |
22 #include "components/autofill/common/autofill_switches.h" | |
23 #include "components/autofill/common/form_data.h" | |
24 #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h" | 22 #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h" |
25 #include "components/autofill/content/browser/wallet/full_wallet.h" | 23 #include "components/autofill/content/browser/wallet/full_wallet.h" |
26 #include "components/autofill/content/browser/wallet/instrument.h" | 24 #include "components/autofill/content/browser/wallet/instrument.h" |
27 #include "components/autofill/content/browser/wallet/wallet_address.h" | 25 #include "components/autofill/content/browser/wallet/wallet_address.h" |
28 #include "components/autofill/content/browser/wallet/wallet_client.h" | 26 #include "components/autofill/content/browser/wallet/wallet_client.h" |
29 #include "components/autofill/content/browser/wallet/wallet_service_url.h" | 27 #include "components/autofill/content/browser/wallet/wallet_service_url.h" |
30 #include "components/autofill/content/browser/wallet/wallet_test_util.h" | 28 #include "components/autofill/content/browser/wallet/wallet_test_util.h" |
| 29 #include "components/autofill/core/common/autofill_switches.h" |
| 30 #include "components/autofill/core/common/form_data.h" |
31 #include "content/public/browser/web_contents.h" | 31 #include "content/public/browser/web_contents.h" |
32 #include "content/public/test/test_browser_thread_bundle.h" | 32 #include "content/public/test/test_browser_thread_bundle.h" |
33 #include "content/public/test/web_contents_tester.h" | 33 #include "content/public/test/web_contents_tester.h" |
34 #include "testing/gmock/include/gmock/gmock.h" | 34 #include "testing/gmock/include/gmock/gmock.h" |
35 #include "testing/gtest/include/gtest/gtest.h" | 35 #include "testing/gtest/include/gtest/gtest.h" |
36 | 36 |
37 #if defined(OS_WIN) | 37 #if defined(OS_WIN) |
38 #include "ui/base/win/scoped_ole_initializer.h" | 38 #include "ui/base/win/scoped_ole_initializer.h" |
39 #endif | 39 #endif |
40 | 40 |
(...skipping 2034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2075 CreateFullWallet("choose_another_instrument_or_address")); | 2075 CreateFullWallet("choose_another_instrument_or_address")); |
2076 EXPECT_EQ(1U, NotificationsOfType( | 2076 EXPECT_EQ(1U, NotificationsOfType( |
2077 DialogNotification::REQUIRED_ACTION).size()); | 2077 DialogNotification::REQUIRED_ACTION).size()); |
2078 | 2078 |
2079 controller()->OnAccept(); | 2079 controller()->OnAccept(); |
2080 EXPECT_EQ(0U, NotificationsOfType( | 2080 EXPECT_EQ(0U, NotificationsOfType( |
2081 DialogNotification::REQUIRED_ACTION).size()); | 2081 DialogNotification::REQUIRED_ACTION).size()); |
2082 } | 2082 } |
2083 | 2083 |
2084 } // namespace autofill | 2084 } // namespace autofill |
OLD | NEW |