Chromium Code Reviews| Index: ios/web/test/web_test_suite.mm |
| diff --git a/ios/web/test/web_test_suite.mm b/ios/web/test/web_test_suite.mm |
| index e167e98f9ef66916f9ec61b90b4f983bfc4c514c..0e21b3bf943648fe45ca356e3c6fbd2ac34a9471 100644 |
| --- a/ios/web/test/web_test_suite.mm |
| +++ b/ios/web/test/web_test_suite.mm |
| @@ -7,10 +7,12 @@ |
| #include "base/macros.h" |
| #include "base/memory/ptr_util.h" |
| #include "base/metrics/statistics_recorder.h" |
| +#include "base/path_service.h" |
| #import "ios/web/public/test/test_web_client.h" |
| #include "ios/web/public/url_schemes.h" |
| #include "ios/web/web_thread_impl.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| +#include "ui/base/resource/resource_bundle.h" |
| namespace web { |
| @@ -43,6 +45,13 @@ void WebTestSuite::Initialize() { |
| new WebTestSuiteListener); |
| RegisterWebSchemes(false); |
| + |
| + // Load test resources if they are present in the bundle. |
|
stkhapugin
2016/06/01 09:47:40
This code should be:
// Force unittests to run
|
| + base::FilePath resources_pack_path; |
| + base::PathService::Get(base::DIR_MODULE, &resources_pack_path); |
| + resources_pack_path = |
| + resources_pack_path.Append(FILE_PATH_LITERAL("resources.pak")); |
| + ui::ResourceBundle::InitSharedInstanceWithPakPath(resources_pack_path); |
| } |
| } // namespace web |