Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: chrome/browser/autofill/autofill_popup_view_browsertest.cc

Issue 10073018: Add Delete Support to New Autofill UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 11 matching lines...) Expand all
22 using ::testing::AtLeast; 22 using ::testing::AtLeast;
23 using testing::_; 23 using testing::_;
24 24
25 namespace { 25 namespace {
26 26
27 class MockAutofillExternalDelegate : public TestAutofillExternalDelegate { 27 class MockAutofillExternalDelegate : public TestAutofillExternalDelegate {
28 public: 28 public:
29 MockAutofillExternalDelegate() : TestAutofillExternalDelegate(NULL, NULL) {} 29 MockAutofillExternalDelegate() : TestAutofillExternalDelegate(NULL, NULL) {}
30 ~MockAutofillExternalDelegate() {} 30 ~MockAutofillExternalDelegate() {}
31 31
32 virtual void SelectAutofillSuggestionAtIndex(int unique_id, int list_index) 32 virtual void SelectAutofillSuggestionAtIndex(int unique_id)
33 OVERRIDE {} 33 OVERRIDE {}
34 }; 34 };
35 35
36 class TestAutofillPopupView : public AutofillPopupView { 36 class TestAutofillPopupView : public AutofillPopupView {
37 public: 37 public:
38 TestAutofillPopupView( 38 TestAutofillPopupView(
39 content::WebContents* web_contents, 39 content::WebContents* web_contents,
40 AutofillExternalDelegate* autofill_external_delegate) 40 AutofillExternalDelegate* autofill_external_delegate)
41 : AutofillPopupView(web_contents, autofill_external_delegate) {} 41 : AutofillPopupView(web_contents, autofill_external_delegate) {}
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698