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

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

Issue 9349010: Move handling of debug urls like chrome://crash, chrome://gpuclean to content. These are for test... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/test/base/ui_test_utils.h" 9 #include "chrome/test/base/ui_test_utils.h"
10 #include "content/public/browser/navigation_controller.h" 10 #include "content/public/browser/navigation_controller.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 EXPECT_CALL(autofill_popup_view, Hide()); 64 EXPECT_CALL(autofill_popup_view, Hide());
65 65
66 ui_test_utils::WindowedNotificationObserver observer( 66 ui_test_utils::WindowedNotificationObserver observer(
67 content::NOTIFICATION_NAV_ENTRY_COMMITTED, 67 content::NOTIFICATION_NAV_ENTRY_COMMITTED,
68 content::Source<content::NavigationController>( 68 content::Source<content::NavigationController>(
69 &(web_contents->GetController()))); 69 &(web_contents->GetController())));
70 browser()->OpenURL(content::OpenURLParams( 70 browser()->OpenURL(content::OpenURLParams(
71 GURL(chrome::kAboutBlankURL), content::Referrer(), 71 GURL(chrome::kAboutBlankURL), content::Referrer(),
72 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); 72 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false));
73 browser()->OpenURL(content::OpenURLParams( 73 browser()->OpenURL(content::OpenURLParams(
74 GURL(chrome::kAboutCrashURL), content::Referrer(), 74 GURL(chrome::kChromeUICrashURL), content::Referrer(),
75 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false)); 75 CURRENT_TAB, content::PAGE_TRANSITION_TYPED, false));
76 observer.Wait(); 76 observer.Wait();
77 77
78 // The mock verifies that the call was made. 78 // The mock verifies that the call was made.
79 } 79 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698