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/command_line.h" | 8 #include "base/command_line.h" |
8 #include "base/guid.h" | 9 #include "base/guid.h" |
9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
11 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
12 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
13 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" | 15 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
15 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" | 16 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" |
16 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
(...skipping 2015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2032 CreateFullWallet("choose_another_instrument_or_address")); | 2033 CreateFullWallet("choose_another_instrument_or_address")); |
2033 EXPECT_EQ(1U, NotificationsOfType( | 2034 EXPECT_EQ(1U, NotificationsOfType( |
2034 DialogNotification::REQUIRED_ACTION).size()); | 2035 DialogNotification::REQUIRED_ACTION).size()); |
2035 | 2036 |
2036 controller()->OnAccept(); | 2037 controller()->OnAccept(); |
2037 EXPECT_EQ(0U, NotificationsOfType( | 2038 EXPECT_EQ(0U, NotificationsOfType( |
2038 DialogNotification::REQUIRED_ACTION).size()); | 2039 DialogNotification::REQUIRED_ACTION).size()); |
2039 } | 2040 } |
2040 | 2041 |
2041 } // namespace autofill | 2042 } // namespace autofill |
OLD | NEW |