blob: ea1a04c0c557c1b5f0286b15b409e9629d45034c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/mus/public/cpp/tests/window_server_test_suite.h"
#include "base/i18n/icu_util.h"
#if defined(USE_X11)
#include "ui/gfx/x/x11_connection.h"
#endif
namespace mus {
WindowServerTestSuite::WindowServerTestSuite(int argc, char** argv)
: TestSuite(argc, argv) {}
WindowServerTestSuite::~WindowServerTestSuite() {}
void WindowServerTestSuite::Initialize() {
#if defined(USE_X11)
// Each test ends up creating a new thread for the native viewport service.
// In other words we'll use X on different threads, so tell it that.
gfx::InitializeThreadedX11();
#endif
base::TestSuite::Initialize();
// base::TestSuite and ViewsInit both try to load icu. That's ok for tests.
base::i18n::AllowMultipleInitializeCallsForTesting();
}
} // namespace mus
|