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

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

Issue 10897034: First part of PAGE_TRANSITION_START_PAGE cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 3 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/browser/ui/browser_tabstrip.h" 10 #include "chrome/browser/ui/browser_tabstrip.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 }; 77 };
78 78
79 IN_PROC_BROWSER_TEST_F(AutofillPopupViewBrowserTest, 79 IN_PROC_BROWSER_TEST_F(AutofillPopupViewBrowserTest,
80 SwitchTabAndHideAutofillPopup) { 80 SwitchTabAndHideAutofillPopup) {
81 EXPECT_CALL(*autofill_popup_view_, Hide()).Times(AtLeast(1)); 81 EXPECT_CALL(*autofill_popup_view_, Hide()).Times(AtLeast(1));
82 82
83 content::WindowedNotificationObserver observer( 83 content::WindowedNotificationObserver observer(
84 content::NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED, 84 content::NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED,
85 content::Source<content::WebContents>(web_contents_)); 85 content::Source<content::WebContents>(web_contents_));
86 chrome::AddSelectedTabWithURL(browser(), GURL(chrome::kAboutBlankURL), 86 chrome::AddSelectedTabWithURL(browser(), GURL(chrome::kAboutBlankURL),
87 content::PAGE_TRANSITION_START_PAGE); 87 content::PAGE_TRANSITION_AUTO_TOPLEVEL);
88 observer.Wait(); 88 observer.Wait();
89 89
90 // The mock verifies that the call was made. 90 // The mock verifies that the call was made.
91 } 91 }
92 92
93 IN_PROC_BROWSER_TEST_F(AutofillPopupViewBrowserTest, 93 IN_PROC_BROWSER_TEST_F(AutofillPopupViewBrowserTest,
94 TestPageNavigationHidingAutofillPopup) { 94 TestPageNavigationHidingAutofillPopup) {
95 EXPECT_CALL(*autofill_popup_view_, Hide()).Times(AtLeast(1)); 95 EXPECT_CALL(*autofill_popup_view_, Hide()).Times(AtLeast(1));
96 96
97 content::WindowedNotificationObserver observer( 97 content::WindowedNotificationObserver observer(
98 content::NOTIFICATION_NAV_ENTRY_COMMITTED, 98 content::NOTIFICATION_NAV_ENTRY_COMMITTED,
99 content::Source<content::NavigationController>( 99 content::Source<content::NavigationController>(
100 &(web_contents_->GetController()))); 100 &(web_contents_->GetController())));
101 browser()->OpenURL(content::OpenURLParams( 101 browser()->OpenURL(content::OpenURLParams(
102 GURL(chrome::kAboutBlankURL), content::Referrer(), 102 GURL(chrome::kAboutBlankURL), content::Referrer(),
103 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); 103 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false));
104 browser()->OpenURL(content::OpenURLParams( 104 browser()->OpenURL(content::OpenURLParams(
105 GURL(chrome::kChromeUIAboutURL), content::Referrer(), 105 GURL(chrome::kChromeUIAboutURL), content::Referrer(),
106 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); 106 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false));
107 observer.Wait(); 107 observer.Wait();
108 108
109 // The mock verifies that the call was made. 109 // The mock verifies that the call was made.
110 } 110 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_browsertest.cc ('k') | chrome/browser/debugger/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698