| 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 #include "chrome/browser/autofill/autofill_popup_view.h" | 5 #include "chrome/browser/autofill/autofill_popup_view.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "chrome/browser/autofill/test_autofill_external_delegate.h" | 8 #include "chrome/browser/autofill/test_autofill_external_delegate.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual ~TestAutofillPopupView() {} | 42 virtual ~TestAutofillPopupView() {} |
| 43 | 43 |
| 44 MOCK_METHOD0(Hide, void()); | 44 MOCK_METHOD0(Hide, void()); |
| 45 | 45 |
| 46 protected: | 46 protected: |
| 47 virtual void ShowInternal() OVERRIDE {} | 47 virtual void ShowInternal() OVERRIDE {} |
| 48 | 48 |
| 49 virtual void HideInternal() OVERRIDE {} | 49 virtual void HideInternal() OVERRIDE {} |
| 50 | 50 |
| 51 virtual void InvalidateRow(size_t row) OVERRIDE {} | 51 virtual void InvalidateRow(size_t row) OVERRIDE {} |
| 52 |
| 53 virtual void ResizePopup() OVERRIDE {} |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 } // namespace | 56 } // namespace |
| 55 | 57 |
| 56 class AutofillPopupViewBrowserTest : public InProcessBrowserTest { | 58 class AutofillPopupViewBrowserTest : public InProcessBrowserTest { |
| 57 public: | 59 public: |
| 58 AutofillPopupViewBrowserTest() {} | 60 AutofillPopupViewBrowserTest() {} |
| 59 virtual ~AutofillPopupViewBrowserTest() {} | 61 virtual ~AutofillPopupViewBrowserTest() {} |
| 60 | 62 |
| 61 virtual void SetUpOnMainThread() OVERRIDE { | 63 virtual void SetUpOnMainThread() OVERRIDE { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 browser()->OpenURL(content::OpenURLParams( | 100 browser()->OpenURL(content::OpenURLParams( |
| 99 GURL(chrome::kAboutBlankURL), content::Referrer(), | 101 GURL(chrome::kAboutBlankURL), content::Referrer(), |
| 100 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); | 102 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); |
| 101 browser()->OpenURL(content::OpenURLParams( | 103 browser()->OpenURL(content::OpenURLParams( |
| 102 GURL(chrome::kChromeUIAboutURL), content::Referrer(), | 104 GURL(chrome::kChromeUIAboutURL), content::Referrer(), |
| 103 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); | 105 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); |
| 104 observer.Wait(); | 106 observer.Wait(); |
| 105 | 107 |
| 106 // The mock verifies that the call was made. | 108 // The mock verifies that the call was made. |
| 107 } | 109 } |
| OLD | NEW |