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

Unified Diff: chrome/browser/autofill/autofill_manager_unittest.cc

Issue 8488011: Moving AutofillAgent Logic into Browser (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Initializing form_field variables Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/autofill/autofill_metrics_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_manager_unittest.cc
diff --git a/chrome/browser/autofill/autofill_manager_unittest.cc b/chrome/browser/autofill/autofill_manager_unittest.cc
index 74d9f53a0b94c43c2a360f00703af48cf690af90..a3ad503f4fcd68a9d5d3571ccd4b3c1d534ce5ab 100644
--- a/chrome/browser/autofill/autofill_manager_unittest.cc
+++ b/chrome/browser/autofill/autofill_manager_unittest.cc
@@ -571,7 +571,8 @@ class AutofillManagerTest : public TabContentsWrapperTestHarness {
autofill_manager_->OnQueryFormFieldAutofill(query_id,
form,
field,
- gfx::Rect());
+ gfx::Rect(),
+ false);
}
void GetAutofillSuggestions(const webkit_glue::FormData& form,
@@ -2867,18 +2868,25 @@ class MockAutofillExternalDelegate : public AutofillExternalDelegate {
: AutofillExternalDelegate(wrapper) {}
virtual ~MockAutofillExternalDelegate() {}
- MOCK_METHOD4(OnQuery, void(int query_id,
+ MOCK_METHOD5(OnQuery, void(int query_id,
const webkit_glue::FormData& form,
const webkit_glue::FormField& field,
- const gfx::Rect& bounds));
- virtual void OnSuggestionsReturned(
- int query_id,
+ const gfx::Rect& bounds,
+ bool display_warning));
+
+ virtual void HideAutofillPopup() OVERRIDE {}
+
+ virtual void ApplyAutofillSuggestions(
const std::vector<string16>& autofill_values,
const std::vector<string16>& autofill_labels,
const std::vector<string16>& autofill_icons,
- const std::vector<int>& autofill_unique_ids) OVERRIDE {}
+ const std::vector<int>& autofill_unique_ids,
+ int separator_index) OVERRIDE {}
- virtual void HideAutofillPopup() OVERRIDE {}
+ virtual void OnQueryPlatformSpecific(
+ int query_id,
+ const webkit_glue::FormData& form,
+ const webkit_glue::FormField& field) OVERRIDE {}
private:
DISALLOW_COPY_AND_ASSIGN(MockAutofillExternalDelegate);
@@ -2889,7 +2897,7 @@ class MockAutofillExternalDelegate : public AutofillExternalDelegate {
// Test our external delegate is called at the right time.
TEST_F(AutofillManagerTest, TestExternalDelegate) {
MockAutofillExternalDelegate external_delegate(contents_wrapper());
- EXPECT_CALL(external_delegate, OnQuery(_, _, _, _));
+ EXPECT_CALL(external_delegate, OnQuery(_, _, _, _, _));
autofill_manager_->SetExternalDelegate(&external_delegate);
FormData form;
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/autofill/autofill_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698