blob: 0f4d9360c55a14035fd3a4b76a36f82fd92fbea4 [file] [log] [blame]
// 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 "mojo/services/public/cpp/view_manager/lib/view_manager_test_suite.h"
#include "ui/gl/gl_surface.h"
#if defined(USE_X11)
#include "ui/gfx/x/x11_connection.h"
#endif
namespace mojo {
namespace view_manager {
ViewManagerTestSuite::ViewManagerTestSuite(int argc, char** argv)
: TestSuite(argc, argv) {}
ViewManagerTestSuite::~ViewManagerTestSuite() {
}
void ViewManagerTestSuite::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();
gfx::GLSurface::InitializeOneOffForTests();
}
} // namespace view_manager
} // namespace mojo