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_AUTOFILL_EXTERNAL_DELEGATE_TEST_H_ | |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_TEST_H_ | |
7 #pragma once | |
8 | |
9 #include "chrome/browser/autofill/autofill_external_delegate.h" | |
10 #include "testing/gmock/include/gmock/gmock.h" | |
Ilya Sherman
2012/02/07 23:35:55
nit: Looks like this isn't used, and it's a pretty
csharp
2012/02/08 16:11:16
Done.
| |
11 | |
12 class AutofillManager; | |
13 class TabContentsWrapper; | |
14 | |
15 // This test class is meant to give tests a base AutofillExternalDelegate | |
16 // class that requires no additional work to compile with (i.e. all the | |
17 // pure virtual functions have been giving empty methods). | |
18 class AutofillExternalDelegateTest : public AutofillExternalDelegate { | |
Ilya Sherman
2012/02/07 23:35:55
nit: Generally a suffix of "Test" means the class
csharp
2012/02/08 16:11:16
Done.
| |
19 public: | |
20 AutofillExternalDelegateTest(TabContentsWrapper* wrapper, | |
21 AutofillManager* autofill_manager); | |
22 virtual ~AutofillExternalDelegateTest(); | |
23 | |
24 virtual void ApplyAutofillSuggestions( | |
25 const std::vector<string16>& autofill_values, | |
26 const std::vector<string16>& autofill_labels, | |
27 const std::vector<string16>& autofill_icons, | |
28 const std::vector<int>& autofill_unique_ids, | |
29 int separator_index) OVERRIDE; | |
30 | |
31 virtual void OnQueryPlatformSpecific(int query_id, | |
32 const webkit::forms::FormData& form, | |
33 const webkit::forms::FormField& field, | |
34 const gfx::Rect& bounds) OVERRIDE; | |
35 | |
36 | |
37 virtual void HideAutofillPopupInternal() OVERRIDE; | |
38 | |
39 private: | |
40 DISALLOW_COPY_AND_ASSIGN(AutofillExternalDelegateTest); | |
41 }; | |
42 | |
43 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_EXTERNAL_DELEGATE_TEST_H_ | |
OLD | NEW |