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

Side by Side Diff: mojo/services/view_manager/public/cpp/tests/view_manager_test_suite.cc

Issue 1391243003: Move //mojo/services/X/public/... to //mojo/services/X/... (part 4). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_3-x-no_public_2-x-no_public_1
Patch Set: copyright header Created 5 years, 2 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "mojo/services/view_manager/public/cpp/tests/view_manager_test_suite.h"
6
7 #include "base/i18n/icu_util.h"
8
9 #if defined(USE_X11)
10 #include "ui/gfx/x/x11_connection.h"
11 #endif
12
13 namespace mojo {
14
15 ViewManagerTestSuite::ViewManagerTestSuite(int argc, char** argv)
16 : TestSuite(argc, argv) {}
17
18 ViewManagerTestSuite::~ViewManagerTestSuite() {
19 }
20
21 void ViewManagerTestSuite::Initialize() {
22 #if defined(USE_X11)
23 // Each test ends up creating a new thread for the native viewport service.
24 // In other words we'll use X on different threads, so tell it that.
25 gfx::InitializeThreadedX11();
26 #endif
27
28 base::TestSuite::Initialize();
29
30 // base::TestSuite and ViewsInit both try to load icu. That's ok for tests.
31 base::i18n::AllowMultipleInitializeCallsForTesting();
32 }
33
34 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698