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

Side by Side Diff: services/ui/public/cpp/tests/window_server_test_suite.cc

Issue 2903423003: Move ui_services_unittests into service_unittest. (Closed)
Patch Set: and not is_mac Created 3 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
« no previous file with comments | « services/ui/public/cpp/tests/window_server_test_suite.h ('k') | services/ui/ws/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "services/ui/public/cpp/tests/window_server_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" // nogncheck
11 #endif
12
13 namespace ui {
14
15 WindowServerTestSuite::WindowServerTestSuite(int argc, char** argv)
16 : TestSuite(argc, argv) {}
17
18 WindowServerTestSuite::~WindowServerTestSuite() {}
19
20 void WindowServerTestSuite::Initialize() {
21 #if defined(USE_X11)
22 // Each test ends up creating a new thread for the native viewport service.
23 // In other words we'll use X on different threads, so tell it that.
24 gfx::InitializeThreadedX11();
25 #endif
26
27 base::TestSuite::Initialize();
28
29 // base::TestSuite and ViewsInit both try to load icu. That's ok for tests.
30 base::i18n::AllowMultipleInitializeCallsForTesting();
31 }
32
33 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/public/cpp/tests/window_server_test_suite.h ('k') | services/ui/ws/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698