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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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"
20 #include "components/autofill/browser/autofill_metrics.h"
21 #include "components/autofill/browser/test_personal_data_manager.h"
22 #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h" 19 #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h"
23 #include "components/autofill/content/browser/wallet/full_wallet.h" 20 #include "components/autofill/content/browser/wallet/full_wallet.h"
24 #include "components/autofill/content/browser/wallet/instrument.h" 21 #include "components/autofill/content/browser/wallet/instrument.h"
25 #include "components/autofill/content/browser/wallet/wallet_address.h" 22 #include "components/autofill/content/browser/wallet/wallet_address.h"
26 #include "components/autofill/content/browser/wallet/wallet_client.h" 23 #include "components/autofill/content/browser/wallet/wallet_client.h"
27 #include "components/autofill/content/browser/wallet/wallet_service_url.h" 24 #include "components/autofill/content/browser/wallet/wallet_service_url.h"
28 #include "components/autofill/content/browser/wallet/wallet_test_util.h" 25 #include "components/autofill/content/browser/wallet/wallet_test_util.h"
26 #include "components/autofill/core/browser/autofill_common_test.h"
27 #include "components/autofill/core/browser/autofill_metrics.h"
28 #include "components/autofill/core/browser/test_personal_data_manager.h"
29 #include "components/autofill/core/common/autofill_switches.h" 29 #include "components/autofill/core/common/autofill_switches.h"
30 #include "components/autofill/core/common/form_data.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"
(...skipping 2036 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc ('k') | chrome/browser/ui/autofill/autofill_dialog_models.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698