OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/test/launcher/unit_test_launcher.h" | 6 #include "base/test/launcher/unit_test_launcher.h" |
7 #include "base/test/test_suite.h" | 7 #include "base/test/test_suite.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" | 9 #include "mojo/edk/embedder/embedder.h" |
10 | 10 |
11 #if defined(OS_ANDROID) | 11 #if defined(OS_ANDROID) |
12 #include "base/android/jni_android.h" | 12 #include "base/android/jni_android.h" |
13 #include "device/bluetooth/android/bluetooth_jni_registrar.h" | 13 #include "device/bluetooth/android/bluetooth_jni_registrar.h" |
14 #include "device/usb/android/usb_jni_registrar.h" | 14 #include "device/usb/android/usb_jni_registrar.h" |
15 #endif | 15 #endif |
16 | 16 |
17 int main(int argc, char** argv) { | 17 int main(int argc, char** argv) { |
18 #if defined(OS_ANDROID) | 18 #if defined(OS_ANDROID) |
19 device::android::RegisterBluetoothJni(base::android::AttachCurrentThread()); | 19 device::android::RegisterBluetoothJni(base::android::AttachCurrentThread()); |
20 device::android::RegisterUsbJni(base::android::AttachCurrentThread()); | 20 device::android::RegisterUsbJni(base::android::AttachCurrentThread()); |
21 #endif | 21 #endif |
22 | 22 |
23 base::TestSuite test_suite(argc, argv); | 23 base::TestSuite test_suite(argc, argv); |
24 | 24 |
25 mojo::embedder::Init(); | 25 mojo::edk::Init(); |
26 return base::LaunchUnitTests( | 26 return base::LaunchUnitTests( |
27 argc, | 27 argc, |
28 argv, | 28 argv, |
29 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); | 29 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite))); |
30 } | 30 } |
OLD | NEW |