Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: ui/gfx/test/run_all_unittests.cc

Issue 307943009: Android: adds missing dependencies for gfx_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« ui/gfx/gfx_tests.gyp ('K') | « ui/gfx/gfx_tests.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/test/run_all_unittests.cc
diff --git a/ui/gfx/test/run_all_unittests.cc b/ui/gfx/test/run_all_unittests.cc
index 3ac61bcd7ccefbd005cec9f5acc2f5ececefb28d..452a8f16b277ea09dacba27391abbe57cd421f1b 100644
--- a/ui/gfx/test/run_all_unittests.cc
+++ b/ui/gfx/test/run_all_unittests.cc
@@ -12,6 +12,11 @@
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/ui_base_paths.h"
+#if defined(OS_ANDROID)
+#include "base/android/jni_android.h"
+#include "ui/gfx/android/gfx_jni_registrar.h"
+#endif
+
namespace {
class GfxTestSuite : public base::TestSuite {
@@ -40,6 +45,9 @@ class GfxTestSuite : public base::TestSuite {
} // namespace
int main(int argc, char** argv) {
+#if defined(OS_ANDROID)
+ gfx::android::RegisterJni(base::android::AttachCurrentThread());
tfarina 2014/05/30 14:56:22 please, have this in GfxTestSuite::Initialize() an
bulach 2014/05/30 15:07:24 Done.
+#endif
GfxTestSuite test_suite(argc, argv);
return base::LaunchUnitTests(
« ui/gfx/gfx_tests.gyp ('K') | « ui/gfx/gfx_tests.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698