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

Side by Side Diff: webrtc/rtc_tools/network_tester/jni.cpp

Issue 2965593002: Move webrtc/{tools => rtc_tools} (Closed)
Patch Set: Adding back root changes Created 3 years, 5 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698