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 "mojo/services/public/cpp/view_manager/lib/view_manager_test_suite.h"
7 #include "ui/gl/gl_surface.h"
10 #include "ui/gfx/x/x11_connection.h"
15 ViewManagerTestSuite::ViewManagerTestSuite(int argc
, char** argv
)
16 : TestSuite(argc
, argv
) {}
18 ViewManagerTestSuite::~ViewManagerTestSuite() {
21 void ViewManagerTestSuite::Initialize() {
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();
28 base::TestSuite::Initialize();
29 gfx::GLSurface::InitializeOneOffForTests();