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

Side by Side Diff: chrome/browser/autofill/content_autofill_driver_browsertest.cc

Issue 772253003: Create an autofill Suggestion class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self review 2 Created 6 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "chrome/browser/browser_process.h" 6 #include "chrome/browser/browser_process.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_tabstrip.h" 8 #include "chrome/browser/ui/browser_tabstrip.h"
9 #include "chrome/browser/ui/tabs/tab_strip_model.h" 9 #include "chrome/browser/ui/tabs/tab_strip_model.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 20 matching lines...) Expand all
31 public: 31 public:
32 MockAutofillClient() {} 32 MockAutofillClient() {}
33 virtual ~MockAutofillClient() {} 33 virtual ~MockAutofillClient() {}
34 34
35 virtual PrefService* GetPrefs() { return &prefs_; } 35 virtual PrefService* GetPrefs() { return &prefs_; }
36 36
37 user_prefs::PrefRegistrySyncable* GetPrefRegistry() { 37 user_prefs::PrefRegistrySyncable* GetPrefRegistry() {
38 return prefs_.registry(); 38 return prefs_.registry();
39 } 39 }
40 40
41 MOCK_METHOD7(ShowAutofillPopup, 41 MOCK_METHOD5(ShowAutofillPopup,
42 void(const gfx::RectF& element_bounds, 42 void(const gfx::RectF& element_bounds,
43 base::i18n::TextDirection text_direction, 43 base::i18n::TextDirection text_direction,
44 const std::vector<base::string16>& values, 44 const std::vector<autofill::Suggestion>& icons,
45 const std::vector<base::string16>& labels,
46 const std::vector<base::string16>& icons,
47 const std::vector<int>& identifiers, 45 const std::vector<int>& identifiers,
48 base::WeakPtr<AutofillPopupDelegate> delegate)); 46 base::WeakPtr<AutofillPopupDelegate> delegate));
49 47
50 MOCK_METHOD0(HideAutofillPopup, void()); 48 MOCK_METHOD0(HideAutofillPopup, void());
51 49
52 private: 50 private:
53 TestingPrefServiceSyncable prefs_; 51 TestingPrefServiceSyncable prefs_;
54 52
55 DISALLOW_COPY_AND_ASSIGN(MockAutofillClient); 53 DISALLOW_COPY_AND_ASSIGN(MockAutofillClient);
56 }; 54 };
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 browser()->OpenURL(content::OpenURLParams(GURL(chrome::kChromeUIAboutURL), 146 browser()->OpenURL(content::OpenURLParams(GURL(chrome::kChromeUIAboutURL),
149 content::Referrer(), 147 content::Referrer(),
150 CURRENT_TAB, 148 CURRENT_TAB,
151 ui::PAGE_TRANSITION_TYPED, 149 ui::PAGE_TRANSITION_TYPED,
152 false)); 150 false));
153 runner->Run(); 151 runner->Run();
154 nav_entry_committed_callback_.Reset(); 152 nav_entry_committed_callback_.Reset();
155 } 153 }
156 154
157 } // namespace autofill 155 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698