| Index: chrome/browser/autocomplete_history_manager_unittest.cc
|
| diff --git a/chrome/browser/autocomplete_history_manager_unittest.cc b/chrome/browser/autocomplete_history_manager_unittest.cc
|
| index add04f01b23a42ffc3a9880629dcd05a9abbbe76..b8b667d2239aaa206a7276ebffa11ddcc88b9fb9 100644
|
| --- a/chrome/browser/autocomplete_history_manager_unittest.cc
|
| +++ b/chrome/browser/autocomplete_history_manager_unittest.cc
|
| @@ -8,7 +8,7 @@
|
| #include "base/string16.h"
|
| #include "base/utf_string_conversions.h"
|
| #include "chrome/browser/autocomplete_history_manager.h"
|
| -#include "chrome/browser/autofill/autofill_external_delegate.h"
|
| +#include "chrome/browser/autofill/autofill_external_delegate_test.h"
|
| #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
|
| #include "chrome/browser/webdata/web_data_service.h"
|
| #include "chrome/test/base/chrome_render_view_host_test_harness.h"
|
| @@ -139,17 +139,18 @@ TEST_F(AutocompleteHistoryManagerTest, SearchField) {
|
|
|
| namespace {
|
|
|
| -class MockAutofillExternalDelegate : public AutofillExternalDelegate {
|
| +class MockAutofillExternalDelegate : public AutofillExternalDelegateTest {
|
| public:
|
| explicit MockAutofillExternalDelegate(TabContentsWrapper* wrapper)
|
| - : AutofillExternalDelegate(wrapper, NULL) {}
|
| + : AutofillExternalDelegateTest(wrapper, NULL) {}
|
| virtual ~MockAutofillExternalDelegate() {}
|
|
|
| - virtual void OnQuery(int query_id,
|
| - const webkit::forms::FormData& form,
|
| - const webkit::forms::FormField& field,
|
| - const gfx::Rect& bounds,
|
| - bool display_warning) 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,
|
| + int separator_index) OVERRIDE {};
|
|
|
| MOCK_METHOD5(OnSuggestionsReturned,
|
| void(int query_id,
|
| @@ -158,22 +159,6 @@ class MockAutofillExternalDelegate : public AutofillExternalDelegate {
|
| const std::vector<string16>& autofill_icons,
|
| const std::vector<int>& autofill_unique_ids));
|
|
|
| - 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,
|
| - int separator_index) OVERRIDE {}
|
| -
|
| - virtual void OnQueryPlatformSpecific(
|
| - int query_id,
|
| - const webkit::forms::FormData& form,
|
| - const webkit::forms::FormField& field,
|
| - const gfx::Rect& bounds) OVERRIDE {}
|
| -
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(MockAutofillExternalDelegate);
|
| };
|
|
|