1 // Copyright (c) 2011 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.
6 #include "base/test/launcher/unit_test_launcher.h"
7 #include "base/test/test_suite.h"
8 #include "ui/aura/env.h"
9 #include "ui/gl/gl_surface.h"
10 #include "ui/gl/test/gl_surface_test_support.h"
12 class AuraTestSuite
: public base::TestSuite
{
14 AuraTestSuite(int argc
, char** argv
) : base::TestSuite(argc
, argv
) {}
17 void Initialize() override
{
18 base::TestSuite::Initialize();
19 gfx::GLSurfaceTestSupport::InitializeOneOff();
20 aura::Env::CreateInstance(true);
23 void Shutdown() override
{
24 aura::Env::DeleteInstance();
25 base::TestSuite::Shutdown();
29 DISALLOW_COPY_AND_ASSIGN(AuraTestSuite
);
32 int main(int argc
, char** argv
) {
33 AuraTestSuite
test_suite(argc
, argv
);
35 return base::LaunchUnitTests(
38 base::Bind(&base::TestSuite::Run
, base::Unretained(&test_suite
)));