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

Side by Side Diff: ui/views/test/views_test_base.cc

Issue 8771015: Rename Desktop->RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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
« no previous file with comments | « ui/views/controls/menu/menu_controller.cc ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/views/test/views_test_base.h" 5 #include "ui/views/test/views_test_base.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <ole2.h> 8 #include <ole2.h>
9 #endif 9 #endif
10 10
11 #if defined(USE_AURA) 11 #if defined(USE_AURA)
12 #include "ui/aura/desktop.h" 12 #include "ui/aura/root_window.h"
13 #include "ui/aura/test/test_stacking_client.h" 13 #include "ui/aura/test/test_stacking_client.h"
14 #endif 14 #endif
15 15
16 namespace views { 16 namespace views {
17 17
18 ViewsTestBase::ViewsTestBase() 18 ViewsTestBase::ViewsTestBase()
19 : setup_called_(false), 19 : setup_called_(false),
20 teardown_called_(false) { 20 teardown_called_(false) {
21 #if defined(OS_WIN) 21 #if defined(OS_WIN)
22 OleInitialize(NULL); 22 OleInitialize(NULL);
(...skipping 25 matching lines...) Expand all
48 // and these tasks if un-executed would upset Valgrind. 48 // and these tasks if un-executed would upset Valgrind.
49 RunPendingMessages(); 49 RunPendingMessages();
50 teardown_called_ = true; 50 teardown_called_ = true;
51 views_delegate_.reset(); 51 views_delegate_.reset();
52 testing::Test::TearDown(); 52 testing::Test::TearDown();
53 } 53 }
54 54
55 void ViewsTestBase::RunPendingMessages() { 55 void ViewsTestBase::RunPendingMessages() {
56 #if defined(USE_AURA) 56 #if defined(USE_AURA)
57 message_loop_.RunAllPendingWithDispatcher( 57 message_loop_.RunAllPendingWithDispatcher(
58 aura::Desktop::GetInstance()->GetDispatcher()); 58 aura::RootWindow::GetInstance()->GetDispatcher());
59 #else 59 #else
60 message_loop_.RunAllPending(); 60 message_loop_.RunAllPending();
61 #endif 61 #endif
62 } 62 }
63 63
64 } // namespace views 64 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_controller.cc ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698