| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ios/web/test/web_test_suite.h" | 5 #include "ios/web/test/web_test_suite.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "base/metrics/statistics_recorder.h" | 9 #include "base/metrics/statistics_recorder.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 ui::ResourceBundle::InitSharedInstanceWithLocale( | 51 ui::ResourceBundle::InitSharedInstanceWithLocale( |
| 52 "en-US", nullptr, ui::ResourceBundle::LOAD_COMMON_RESOURCES); | 52 "en-US", nullptr, ui::ResourceBundle::LOAD_COMMON_RESOURCES); |
| 53 base::FilePath resources_pack_path; | 53 base::FilePath resources_pack_path; |
| 54 base::PathService::Get(base::DIR_MODULE, &resources_pack_path); | 54 base::PathService::Get(base::DIR_MODULE, &resources_pack_path); |
| 55 resources_pack_path = | 55 resources_pack_path = |
| 56 resources_pack_path.Append(FILE_PATH_LITERAL("resources.pak")); | 56 resources_pack_path.Append(FILE_PATH_LITERAL("resources.pak")); |
| 57 ResourceBundle::GetSharedInstance().AddDataPackFromPath( | 57 ResourceBundle::GetSharedInstance().AddDataPackFromPath( |
| 58 resources_pack_path, ui::SCALE_FACTOR_NONE); | 58 resources_pack_path, ui::SCALE_FACTOR_NONE); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void WebTestSuite::Shutdown() { |
| 62 ResourceBundle::CleanupSharedInstance(); |
| 63 base::TestSuite::Shutdown(); |
| 64 } |
| 65 |
| 61 } // namespace web | 66 } // namespace web |
| OLD | NEW |