| Index: ui/test/test_suite.cc
|
| diff --git a/ui/test/test_suite.cc b/ui/test/test_suite.cc
|
| index 832a1eae94f4c9731a90ca4b72891dd81844a4ba..4d372141ff8814fa5e320a922a93be1d9da517c4 100644
|
| --- a/ui/test/test_suite.cc
|
| +++ b/ui/test/test_suite.cc
|
| @@ -12,6 +12,11 @@
|
| #include "ui/base/ui_base_paths.h"
|
| #include "ui/gfx/gfx_paths.h"
|
|
|
| +#if defined(OS_ANDROID)
|
| +#include "base/android/jni_android.h"
|
| +#include "ui/android/ui_jni_registrar.h"
|
| +#endif
|
| +
|
| #if defined(OS_MACOSX) && !defined(OS_IOS)
|
| #include "base/mac/bundle_locations.h"
|
| #endif
|
| @@ -24,6 +29,11 @@ UITestSuite::UITestSuite(int argc, char** argv) : base::TestSuite(argc, argv) {}
|
| void UITestSuite::Initialize() {
|
| base::TestSuite::Initialize();
|
|
|
| +#if defined(OS_ANDROID)
|
| + // Register JNI bindings for android.
|
| + ui::android::RegisterJni(base::android::AttachCurrentThread());
|
| +#endif
|
| +
|
| ui::RegisterPathProvider();
|
| gfx::RegisterPathProvider();
|
|
|
|
|