OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "chrome/browser/autofill/autofill_external_delegate.h" |
| 10 |
| 11 class AutofillManager; |
| 12 class TabContentsWrapper; |
| 13 |
| 14 // This test class is meant to give tests a base AutofillExternalDelegate |
| 15 // class that requires no additional work to compile with (i.e. all the |
| 16 // pure virtual functions have been giving empty methods). |
| 17 class TestAutofillExternalDelegate : public AutofillExternalDelegate { |
| 18 public: |
| 19 TestAutofillExternalDelegate(TabContentsWrapper* wrapper, |
| 20 AutofillManager* autofill_manager); |
| 21 virtual ~TestAutofillExternalDelegate(); |
| 22 |
| 23 virtual void ApplyAutofillSuggestions( |
| 24 const std::vector<string16>& autofill_values, |
| 25 const std::vector<string16>& autofill_labels, |
| 26 const std::vector<string16>& autofill_icons, |
| 27 const std::vector<int>& autofill_unique_ids, |
| 28 int separator_index) OVERRIDE; |
| 29 |
| 30 virtual void OnQueryPlatformSpecific(int query_id, |
| 31 const webkit::forms::FormData& form, |
| 32 const webkit::forms::FormField& field, |
| 33 const gfx::Rect& bounds) OVERRIDE; |
| 34 |
| 35 |
| 36 virtual void HideAutofillPopupInternal() OVERRIDE; |
| 37 |
| 38 private: |
| 39 DISALLOW_COPY_AND_ASSIGN(TestAutofillExternalDelegate); |
| 40 }; |
| 41 |
| 42 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_ |
OLD | NEW |