OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 package org.chromium.net; | |
6 | |
7 import android.content.Context; | |
8 | |
9 import org.chromium.base.JNINamespace; | |
10 | |
11 /** | |
12 * Wrapper class to start a Quic test server. | |
13 */ | |
14 @JNINamespace("cronet") | |
15 public final class QuicTestServer { | |
16 public static String SERVER_URL = "http://127.0.0.1:6121"; | |
mef
2015/03/31 17:33:18
maybe make a getServerURL() method, similar to Nat
xunjieli
2015/03/31 17:50:15
Done.
| |
17 | |
18 public static void startQuicTestServer(Context context) { | |
19 nativeStartQuicTestServer(TestFilesInstaller.getInstalledPath(context)); | |
20 } | |
21 | |
22 public static void shutdownQuicTestServer() { | |
23 nativeShutdownQuicTestServer(); | |
24 } | |
25 | |
26 private static native void nativeStartQuicTestServer(String filePath); | |
27 private static native void nativeShutdownQuicTestServer(); | |
28 } | |
OLD | NEW |