1 // Copyright (c) 2012 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 "ui/app_list/test/app_list_test_suite.h"
7 #include "ui/base/ui_base_paths.h"
8 #include "ui/base/resource/resource_bundle.h"
9 #include "ui/compositor/compositor_setup.h"
10 #include "ui/compositor/test/compositor_test_support.h"
15 AppListTestSuite::AppListTestSuite(int argc
, char** argv
)
16 : base::TestSuite(argc
, argv
) {
19 void AppListTestSuite::Initialize() {
20 base::TestSuite::Initialize();
22 ui::RegisterPathProvider();
24 // Force unittests to run using en-US so if we test against string
25 // output, it'll pass regardless of the system language.
26 ui::ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL
);
28 ui::CompositorTestSupport::Initialize();
29 ui::SetupTestCompositor();
32 void AppListTestSuite::Shutdown() {
33 ui::CompositorTestSupport::Terminate();
34 ui::ResourceBundle::CleanupSharedInstance();
36 base::TestSuite::Shutdown();
40 } // namespace app_list