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

Side by Side Diff: ui/compositor/test/test_suite.cc

Issue 14061025: ui: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « ui/compositor/test/test_compositor_host_linux.cc ('k') | ui/gl/gl_context_cgl.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) 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 "ui/compositor/test/test_suite.h" 5 #include "ui/compositor/test/test_suite.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "ui/base/ui_base_paths.h" 9 #include "ui/base/ui_base_paths.h"
10 #include "ui/compositor/compositor.h" 10 #include "ui/compositor/compositor.h"
(...skipping 18 matching lines...) Expand all
29 #if defined(USE_X11) 29 #if defined(USE_X11)
30 XInitThreads(); 30 XInitThreads();
31 #endif 31 #endif
32 #if defined(OS_LINUX) 32 #if defined(OS_LINUX)
33 gfx::InitializeGLBindings(gfx::kGLImplementationOSMesaGL); 33 gfx::InitializeGLBindings(gfx::kGLImplementationOSMesaGL);
34 #endif 34 #endif
35 base::TestSuite::Initialize(); 35 base::TestSuite::Initialize();
36 36
37 gfx::RegisterPathProvider(); 37 gfx::RegisterPathProvider();
38 38
39 message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI)); 39 message_loop_.reset(new base::MessageLoop(base::MessageLoop::TYPE_UI));
40 CompositorTestSupport::Initialize(); 40 CompositorTestSupport::Initialize();
41 Compositor::Initialize(); 41 Compositor::Initialize();
42 } 42 }
43 43
44 void CompositorTestSuite::Shutdown() { 44 void CompositorTestSuite::Shutdown() {
45 Compositor::Terminate(); 45 Compositor::Terminate();
46 CompositorTestSupport::Terminate(); 46 CompositorTestSupport::Terminate();
47 message_loop_.reset(); 47 message_loop_.reset();
48 48
49 base::TestSuite::Shutdown(); 49 base::TestSuite::Shutdown();
50 } 50 }
51 51
52 } // namespace test 52 } // namespace test
53 } // namespace ui 53 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/test/test_compositor_host_linux.cc ('k') | ui/gl/gl_context_cgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698