| Index: ui/arc/test/run_all_unittests.cc
|
| diff --git a/ui/arc/test/run_all_unittests.cc b/ui/arc/test/run_all_unittests.cc
|
| index d9558ea09eb5d0b002173c6acdfb0e4db5dc362f..db674b81daa3f9856a943f385a9bd2bd1d29ca4f 100644
|
| --- a/ui/arc/test/run_all_unittests.cc
|
| +++ b/ui/arc/test/run_all_unittests.cc
|
| @@ -3,9 +3,13 @@
|
| // found in the LICENSE file.
|
|
|
| #include "base/bind.h"
|
| +#include "base/path_service.h"
|
| #include "base/test/launcher/unit_test_launcher.h"
|
| +#include "base/test/test_discardable_memory_allocator.h"
|
| #include "base/test/test_suite.h"
|
| #include "mojo/edk/embedder/embedder.h"
|
| +#include "ui/base/resource/resource_bundle.h"
|
| +#include "ui/base/ui_base_paths.h"
|
| #include "ui/gl/test/gl_surface_test_support.h"
|
|
|
| namespace {
|
| @@ -18,6 +22,17 @@ class UiArcTestSuite : public base::TestSuite {
|
| void Initialize() override {
|
| base::TestSuite::Initialize();
|
| gl::GLSurfaceTestSupport::InitializeOneOff();
|
| +
|
| + // To use resource bundles
|
| + ui::RegisterPathProvider();
|
| + base::FilePath ui_test_pak_path;
|
| + ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path));
|
| + ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path);
|
| + }
|
| +
|
| + void Shutdown() override {
|
| + ui::ResourceBundle::CleanupSharedInstance();
|
| + base::TestSuite::Shutdown();
|
| }
|
|
|
| private:
|
|
|