OLD | NEW |
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 Loading... |
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_METHOD4(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>& suggestions, |
45 const std::vector<base::string16>& labels, | |
46 const std::vector<base::string16>& icons, | |
47 const std::vector<int>& identifiers, | |
48 base::WeakPtr<AutofillPopupDelegate> delegate)); | 45 base::WeakPtr<AutofillPopupDelegate> delegate)); |
49 | 46 |
50 MOCK_METHOD0(HideAutofillPopup, void()); | 47 MOCK_METHOD0(HideAutofillPopup, void()); |
51 | 48 |
52 private: | 49 private: |
53 TestingPrefServiceSyncable prefs_; | 50 TestingPrefServiceSyncable prefs_; |
54 | 51 |
55 DISALLOW_COPY_AND_ASSIGN(MockAutofillClient); | 52 DISALLOW_COPY_AND_ASSIGN(MockAutofillClient); |
56 }; | 53 }; |
57 | 54 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 browser()->OpenURL(content::OpenURLParams(GURL(chrome::kChromeUIAboutURL), | 145 browser()->OpenURL(content::OpenURLParams(GURL(chrome::kChromeUIAboutURL), |
149 content::Referrer(), | 146 content::Referrer(), |
150 CURRENT_TAB, | 147 CURRENT_TAB, |
151 ui::PAGE_TRANSITION_TYPED, | 148 ui::PAGE_TRANSITION_TYPED, |
152 false)); | 149 false)); |
153 runner->Run(); | 150 runner->Run(); |
154 nav_entry_committed_callback_.Reset(); | 151 nav_entry_committed_callback_.Reset(); |
155 } | 152 } |
156 | 153 |
157 } // namespace autofill | 154 } // namespace autofill |
OLD | NEW |