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

Side by Side Diff: chrome/browser/autocomplete_history_manager_unittest.cc

Issue 9235072: Adding Mouse Support for new GTK Autofill (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: First Draft Created 8 years, 10 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
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 <vector> 5 #include <vector>
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/autocomplete_history_manager.h" 10 #include "chrome/browser/autocomplete_history_manager.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 const gfx::Rect& bounds, 151 const gfx::Rect& bounds,
152 bool display_warning) OVERRIDE {} 152 bool display_warning) OVERRIDE {}
153 153
154 MOCK_METHOD5(OnSuggestionsReturned, 154 MOCK_METHOD5(OnSuggestionsReturned,
155 void(int query_id, 155 void(int query_id,
156 const std::vector<string16>& autofill_values, 156 const std::vector<string16>& autofill_values,
157 const std::vector<string16>& autofill_labels, 157 const std::vector<string16>& autofill_labels,
158 const std::vector<string16>& autofill_icons, 158 const std::vector<string16>& autofill_icons,
159 const std::vector<int>& autofill_unique_ids)); 159 const std::vector<int>& autofill_unique_ids));
160 160
161 virtual void HideAutofillPopup() OVERRIDE {} 161 virtual void HideAutofillPopupInternal() OVERRIDE {}
162 162
163 163
164 virtual void ApplyAutofillSuggestions( 164 virtual void ApplyAutofillSuggestions(
165 const std::vector<string16>& autofill_values, 165 const std::vector<string16>& autofill_values,
166 const std::vector<string16>& autofill_labels, 166 const std::vector<string16>& autofill_labels,
167 const std::vector<string16>& autofill_icons, 167 const std::vector<string16>& autofill_icons,
168 const std::vector<int>& autofill_unique_ids, 168 const std::vector<int>& autofill_unique_ids,
169 int separator_index) OVERRIDE {} 169 int separator_index) OVERRIDE {}
170 170
171 virtual void OnQueryPlatformSpecific( 171 virtual void OnQueryPlatformSpecific(
(...skipping 27 matching lines...) Expand all
199 &profile_, web_data_service_); 199 &profile_, web_data_service_);
200 200
201 MockAutofillExternalDelegate external_delegate( 201 MockAutofillExternalDelegate external_delegate(
202 TabContentsWrapper::GetCurrentWrapperForContents(contents())); 202 TabContentsWrapper::GetCurrentWrapperForContents(contents()));
203 EXPECT_CALL(external_delegate, OnSuggestionsReturned(_, _, _, _, _)); 203 EXPECT_CALL(external_delegate, OnSuggestionsReturned(_, _, _, _, _));
204 autocomplete_history_manager.SetExternalDelegate(&external_delegate); 204 autocomplete_history_manager.SetExternalDelegate(&external_delegate);
205 205
206 // Should trigger a call to OnSuggestionsReturned, verified by the mock. 206 // Should trigger a call to OnSuggestionsReturned, verified by the mock.
207 autocomplete_history_manager.SendSuggestions(NULL); 207 autocomplete_history_manager.SendSuggestions(NULL);
208 } 208 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698