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

Unified Diff: device/test/run_all_unittests.cc

Issue 1119113002: bluetooth: Initial JNI setup for device/bluetooth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Additional comment on RegisterBluetoothJni Created 5 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
« no previous file with comments | « device/device_tests.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/test/run_all_unittests.cc
diff --git a/device/test/run_all_unittests.cc b/device/test/run_all_unittests.cc
index cfc0db3690081a02751f5c84125981d72a0c34b5..36c936bac9d235824362f0892d243ea50df80a65 100644
--- a/device/test/run_all_unittests.cc
+++ b/device/test/run_all_unittests.cc
@@ -7,7 +7,16 @@
#include "base/test/test_suite.h"
#include "third_party/mojo/src/mojo/edk/embedder/test_embedder.h"
+#if defined(OS_ANDROID)
+#include "base/android/jni_android.h"
+#include "device/bluetooth/android/bluetooth_jni_registrar.h"
+#endif
+
int main(int argc, char** argv) {
+#if defined(OS_ANDROID)
+ device::android::RegisterBluetoothJni(base::android::AttachCurrentThread());
+#endif
+
base::TestSuite test_suite(argc, argv);
mojo::embedder::test::InitWithSimplePlatformSupport();
« no previous file with comments | « device/device_tests.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698