• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #include "ui/aura/test/test_suite.h"
6 
7 #include "base/files/file_path.h"
8 #include "base/path_service.h"
9 #include "build/build_config.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_implementation.h"
14 
15 namespace aura {
16 namespace test {
17 
AuraTestSuite(int argc,char ** argv)18 AuraTestSuite::AuraTestSuite(int argc, char** argv)
19     : TestSuite(argc, argv) {}
20 
Initialize()21 void AuraTestSuite::Initialize() {
22   base::TestSuite::Initialize();
23 
24   gfx::RegisterPathProvider();
25   ui::RegisterPathProvider();
26 
27   // Force unittests to run using en-US so if we test against string
28   // output, it'll pass regardless of the system language.
29   ui::ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL);
30 }
31 
Shutdown()32 void AuraTestSuite::Shutdown() {
33   ui::ResourceBundle::CleanupSharedInstance();
34 
35   base::TestSuite::Shutdown();
36 }
37 
38 }  // namespace test
39 }  // namespace aura
40