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

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

Issue 10546054: TabContentsWrapper -> TabContents, part 5. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 }; 54 };
55 55
56 } // namespace 56 } // namespace
57 57
58 class AutofillPopupViewBrowserTest : public InProcessBrowserTest { 58 class AutofillPopupViewBrowserTest : public InProcessBrowserTest {
59 public: 59 public:
60 AutofillPopupViewBrowserTest() {} 60 AutofillPopupViewBrowserTest() {}
61 virtual ~AutofillPopupViewBrowserTest() {} 61 virtual ~AutofillPopupViewBrowserTest() {}
62 62
63 virtual void SetUpOnMainThread() OVERRIDE { 63 virtual void SetUpOnMainThread() OVERRIDE {
64 web_contents_ = browser()->GetSelectedWebContents(); 64 web_contents_ = browser()->GetActiveWebContents();
65 ASSERT_TRUE(web_contents_ != NULL); 65 ASSERT_TRUE(web_contents_ != NULL);
66 66
67 autofill_popup_view_.reset(new TestAutofillPopupView( 67 autofill_popup_view_.reset(new TestAutofillPopupView(
68 web_contents_, 68 web_contents_,
69 &autofill_external_delegate_)); 69 &autofill_external_delegate_));
70 } 70 }
71 71
72 protected: 72 protected:
73 content::WebContents* web_contents_; 73 content::WebContents* web_contents_;
74 scoped_ptr<TestAutofillPopupView> autofill_popup_view_; 74 scoped_ptr<TestAutofillPopupView> autofill_popup_view_;
(...skipping 25 matching lines...) Expand all
100 browser()->OpenURL(content::OpenURLParams( 100 browser()->OpenURL(content::OpenURLParams(
101 GURL(chrome::kAboutBlankURL), content::Referrer(), 101 GURL(chrome::kAboutBlankURL), content::Referrer(),
102 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); 102 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false));
103 browser()->OpenURL(content::OpenURLParams( 103 browser()->OpenURL(content::OpenURLParams(
104 GURL(chrome::kChromeUIAboutURL), content::Referrer(), 104 GURL(chrome::kChromeUIAboutURL), content::Referrer(),
105 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); 105 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false));
106 observer.Wait(); 106 observer.Wait();
107 107
108 // The mock verifies that the call was made. 108 // The mock verifies that the call was made.
109 } 109 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_metrics_unittest.cc ('k') | chrome/browser/autofill/form_structure_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698