cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / components / view_manager / public / cpp / tests / view_manager_test_suite.cc
blobea3d9651c1d7b1c71e24ff3be4e0b93cd5ea73ab
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.
5 #include "components/view_manager/public/cpp/tests/view_manager_test_suite.h"
7 #include "base/i18n/icu_util.h"
9 #if defined(USE_X11)
10 #include "ui/gfx/x/x11_connection.h"
11 #endif
13 namespace mojo {
15 ViewManagerTestSuite::ViewManagerTestSuite(int argc, char** argv)
16 : TestSuite(argc, argv) {}
18 ViewManagerTestSuite::~ViewManagerTestSuite() {
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
28 base::TestSuite::Initialize();
30 // base::TestSuite and ViewsInit both try to load icu. That's ok for tests.
31 base::i18n::AllowMultipleInitializeCallsForTesting();
34 } // namespace mojo