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

Side by Side Diff: chrome/browser/ui/tab_modal_confirm_dialog_browsertest.cc

Issue 10822030: Move ui_test_utils::RunMessageLoop to test_utils so that it can be reused by content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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/ui/tab_modal_confirm_dialog_browsertest.h" 5 #include "chrome/browser/ui/tab_modal_confirm_dialog_browsertest.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/lifetime/application_lifetime.h" 9 #include "chrome/browser/lifetime/application_lifetime.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 IN_PROC_BROWSER_TEST_F(TabModalConfirmDialogTest, CancelSelf) { 87 IN_PROC_BROWSER_TEST_F(TabModalConfirmDialogTest, CancelSelf) {
88 EXPECT_CALL(*delegate_, OnCanceled()); 88 EXPECT_CALL(*delegate_, OnCanceled());
89 delegate_->Cancel(); 89 delegate_->Cancel();
90 } 90 }
91 91
92 IN_PROC_BROWSER_TEST_F(TabModalConfirmDialogTest, Quit) { 92 IN_PROC_BROWSER_TEST_F(TabModalConfirmDialogTest, Quit) {
93 EXPECT_CALL(*delegate_, OnCanceled()); 93 EXPECT_CALL(*delegate_, OnCanceled());
94 MessageLoopForUI::current()->PostTask(FROM_HERE, 94 MessageLoopForUI::current()->PostTask(FROM_HERE,
95 base::Bind(&browser::AttemptExit)); 95 base::Bind(&browser::AttemptExit));
96 ui_test_utils::RunMessageLoop(); 96 content::RunMessageLoop();
97 } 97 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_view_browsertest.cc ('k') | chrome/browser/ui/views/keyboard_access_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698