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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa_browsertest.mm

Issue 306053008: Rename AutofillManagerDelegate to AutofillClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/tab_helpers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #import "chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h" 4 #import "chrome/browser/ui/cocoa/autofill/autofill_dialog_cocoa.h"
5 5
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" 10 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h"
11 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/tabs/tab_strip_model.h" 12 #include "chrome/browser/ui/tabs/tab_strip_model.h"
13 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
14 #include "chrome/test/base/in_process_browser_test.h" 14 #include "chrome/test/base/in_process_browser_test.h"
15 #include "components/autofill/core/browser/autofill_test_utils.h" 15 #include "components/autofill/core/browser/autofill_test_utils.h"
16 #include "components/autofill/core/common/form_data.h" 16 #include "components/autofill/core/common/form_data.h"
17 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
18 #include "content/public/test/test_utils.h" 18 #include "content/public/test/test_utils.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace autofill { 21 namespace autofill {
22 22
23 namespace { 23 namespace {
24 24
25 void MockCallback(AutofillManagerDelegate::RequestAutocompleteResult result, 25 void MockCallback(AutofillClient::RequestAutocompleteResult result,
26 const base::string16&, 26 const base::string16&,
27 const FormStructure*) {} 27 const FormStructure*) {
28 }
28 29
29 class TestAutofillDialogController : public AutofillDialogControllerImpl { 30 class TestAutofillDialogController : public AutofillDialogControllerImpl {
30 public: 31 public:
31 TestAutofillDialogController( 32 TestAutofillDialogController(
32 content::WebContents* contents, 33 content::WebContents* contents,
33 const FormData& form_structure, 34 const FormData& form_structure,
34 const AutofillMetrics& metric_logger, 35 const AutofillMetrics& metric_logger,
35 scoped_refptr<content::MessageLoopRunner> runner) 36 scoped_refptr<content::MessageLoopRunner> runner)
36 : AutofillDialogControllerImpl(contents, 37 : AutofillDialogControllerImpl(contents,
37 form_structure, 38 form_structure,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 controller()->Show(); 114 controller()->Show();
114 controller()->OnCancel(); 115 controller()->OnCancel();
115 controller()->Hide(); 116 controller()->Hide();
116 117
117 RunMessageLoop(); 118 RunMessageLoop();
118 } 119 }
119 120
120 } // namespace 121 } // namespace
121 122
122 } // namespace autofill 123 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/tab_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698