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

Side by Side Diff: webrtc/tools/network_tester/androidapp/src/com/google/media/networktester/NetworkTester.java

Issue 2787863002: Add network tester client [android] (Closed)
Patch Set: Rebased Created 3 years, 8 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
(Empty)
1 /*
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 package com.google.media.networktester;
12
13 public class NetworkTester extends Thread {
14 private native static long CreateTestController();
15 private native static void TestControllerConnect(long testController);
16 private native static void TestControllerRun(long testController);
17 private native static boolean TestControllerIsDone(long testController);
18 private native static void DestroyTestController(long testController);
19 static {
20 System.loadLibrary("network_tester_so");
21 }
22
23 @Override
24 public void run() {
25 final long testController = CreateTestController();
26 TestControllerConnect(testController);
27 while (!Thread.interrupted() && !TestControllerIsDone(testController)) {
28 TestControllerRun(testController);
29 }
30 DestroyTestController(testController);
31 }
32 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698