OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/test/test_suite.h" | 5 #include "ash/test/test_suite.h" |
6 | 6 |
7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 if (version >= base::win::VERSION_WIN8) | 44 if (version >= base::win::VERSION_WIN8) |
45 ASSERT_TRUE(win8::MakeTestDefaultBrowserSynchronously()); | 45 ASSERT_TRUE(win8::MakeTestDefaultBrowserSynchronously()); |
46 } | 46 } |
47 #endif | 47 #endif |
48 | 48 |
49 gfx::RegisterPathProvider(); | 49 gfx::RegisterPathProvider(); |
50 ui::RegisterPathProvider(); | 50 ui::RegisterPathProvider(); |
51 | 51 |
52 // Force unittests to run using en-US so if we test against string | 52 // Force unittests to run using en-US so if we test against string |
53 // output, it'll pass regardless of the system language. | 53 // output, it'll pass regardless of the system language. |
54 ui::ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL); | 54 ui::ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL, true); |
55 } | 55 } |
56 | 56 |
57 void AuraShellTestSuite::Shutdown() { | 57 void AuraShellTestSuite::Shutdown() { |
58 ui::ResourceBundle::CleanupSharedInstance(); | 58 ui::ResourceBundle::CleanupSharedInstance(); |
59 #if defined(OS_WIN) | 59 #if defined(OS_WIN) |
60 com_initializer_.reset(); | 60 com_initializer_.reset(); |
61 #endif | 61 #endif |
62 base::TestSuite::Shutdown(); | 62 base::TestSuite::Shutdown(); |
63 } | 63 } |
64 | 64 |
65 } // namespace test | 65 } // namespace test |
66 } // namespace ash | 66 } // namespace ash |
OLD | NEW |