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.
6 #include "base/macros.h"
7 #include "base/test/launcher/unit_test_launcher.h"
8 #include "base/test/test_suite.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "ui/base/resource/resource_bundle.h"
11 #include "ui/base/ui_base_paths.h"
12 #include "ui/gfx/gfx_paths.h"
13 #include "ui/gl/gl_surface.h"
17 class AthenaTestSuite
: public base::TestSuite
{
19 AthenaTestSuite(int argc
, char** argv
) : TestSuite(argc
, argv
) {}
20 virtual ~AthenaTestSuite() {}
24 virtual void Initialize() OVERRIDE
{
25 base::TestSuite::Initialize();
26 gfx::GLSurface::InitializeOneOffForTests();
27 gfx::RegisterPathProvider();
28 ui::RegisterPathProvider();
30 // Force unittests to run using en-US so if we test against string
31 // output, it'll pass regardless of the system language.
32 ui::ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL
);
34 virtual void Shutdown() OVERRIDE
{
35 ui::ResourceBundle::CleanupSharedInstance();
36 base::TestSuite::Shutdown();
40 DISALLOW_COPY_AND_ASSIGN(AthenaTestSuite
);
45 int main(int argc
, char** argv
) {
46 AthenaTestSuite
test_suite(argc
, argv
);
48 return base::LaunchUnitTestsSerially(
51 base::Bind(&AthenaTestSuite::Run
, base::Unretained(&test_suite
)));