| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_ | 6 #define CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/autofill/autofill_external_delegate.h" | 9 #include "chrome/browser/autofill/autofill_external_delegate.h" |
| 10 | 10 |
| 11 class AutofillManager; | 11 class AutofillManager; |
| 12 class TabContentsWrapper; | 12 class TabContents; |
| 13 typedef TabContents TabContentsWrapper; |
| 13 | 14 |
| 14 // This test class is meant to give tests a base AutofillExternalDelegate | 15 // 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 // class that requires no additional work to compile with (i.e. all the |
| 16 // pure virtual functions have been giving empty methods). | 17 // pure virtual functions have been giving empty methods). |
| 17 class TestAutofillExternalDelegate : public AutofillExternalDelegate { | 18 class TestAutofillExternalDelegate : public AutofillExternalDelegate { |
| 18 public: | 19 public: |
| 19 TestAutofillExternalDelegate(TabContentsWrapper* wrapper, | 20 TestAutofillExternalDelegate(TabContentsWrapper* wrapper, |
| 20 AutofillManager* autofill_manager); | 21 AutofillManager* autofill_manager); |
| 21 virtual ~TestAutofillExternalDelegate(); | 22 virtual ~TestAutofillExternalDelegate(); |
| 22 | 23 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 34 | 35 |
| 35 virtual void HideAutofillPopupInternal() OVERRIDE; | 36 virtual void HideAutofillPopupInternal() OVERRIDE; |
| 36 | 37 |
| 37 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 38 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 DISALLOW_COPY_AND_ASSIGN(TestAutofillExternalDelegate); | 41 DISALLOW_COPY_AND_ASSIGN(TestAutofillExternalDelegate); |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_ | 44 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_EXTERNAL_DELEGATE_H_ |
| OLD | NEW |