OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include <jni.h> | 11 #include <jni.h> |
12 #undef JNIEXPORT | 12 #undef JNIEXPORT |
13 #define JNIEXPORT __attribute__((visibility("default"))) | 13 #define JNIEXPORT __attribute__((visibility("default"))) |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "webrtc/tools/network_tester/test_controller.h" | 16 #include "webrtc/rtc_tools/network_tester/test_controller.h" |
17 | 17 |
18 extern "C" JNIEXPORT jlong JNICALL | 18 extern "C" JNIEXPORT jlong JNICALL |
19 Java_com_google_media_networktester_NetworkTester_CreateTestController( | 19 Java_com_google_media_networktester_NetworkTester_CreateTestController( |
20 JNIEnv* jni, | 20 JNIEnv* jni, |
21 jclass) { | 21 jclass) { |
22 return reinterpret_cast<intptr_t>(new webrtc::TestController( | 22 return reinterpret_cast<intptr_t>(new webrtc::TestController( |
23 0, 0, "/mnt/sdcard/network_tester_client_config.dat", | 23 0, 0, "/mnt/sdcard/network_tester_client_config.dat", |
24 "/mnt/sdcard/network_tester_client_packet_log.dat")); | 24 "/mnt/sdcard/network_tester_client_packet_log.dat")); |
25 } | 25 } |
26 | 26 |
(...skipping 27 matching lines...) Expand all Loading... |
54 Java_com_google_media_networktester_NetworkTester_DestroyTestController( | 54 Java_com_google_media_networktester_NetworkTester_DestroyTestController( |
55 JNIEnv* jni, | 55 JNIEnv* jni, |
56 jclass, | 56 jclass, |
57 jlong native_pointer) { | 57 jlong native_pointer) { |
58 webrtc::TestController* test_controller = | 58 webrtc::TestController* test_controller = |
59 reinterpret_cast<webrtc::TestController*>(native_pointer); | 59 reinterpret_cast<webrtc::TestController*>(native_pointer); |
60 if (test_controller) { | 60 if (test_controller) { |
61 delete test_controller; | 61 delete test_controller; |
62 } | 62 } |
63 } | 63 } |
OLD | NEW |