| Index: ui/views/run_all_unittests.cc
|
| diff --git a/ui/views/run_all_unittests.cc b/ui/views/run_all_unittests.cc
|
| index 22162ab4fec473aac823b58bdd4ad2e82c92f6f2..8cf0a25cf5d989804478559ac15c7ec81594779d 100644
|
| --- a/ui/views/run_all_unittests.cc
|
| +++ b/ui/views/run_all_unittests.cc
|
| @@ -5,6 +5,7 @@
|
| #include "base/basictypes.h"
|
| #include "base/bind.h"
|
| #include "base/compiler_specific.h"
|
| +#include "base/path_service.h"
|
| #include "base/test/launcher/unit_test_launcher.h"
|
| #include "base/test/test_suite.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| @@ -19,7 +20,14 @@ class ViewTestSuite : public base::TestSuite {
|
| virtual void Initialize() OVERRIDE {
|
| base::TestSuite::Initialize();
|
| ui::RegisterPathProvider();
|
| - ui::ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL);
|
| +
|
| + base::FilePath pak_dir;
|
| + PathService::Get(base::DIR_MODULE, &pak_dir);
|
| +
|
| + base::FilePath pak_file;
|
| + pak_file = pak_dir.Append(FILE_PATH_LITERAL("ui_test.pak"));
|
| +
|
| + ui::ResourceBundle::InitSharedInstanceWithPakPath(pak_file);
|
| }
|
|
|
| private:
|
|
|