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 package org.chromium.net; | 5 package org.chromium.net; |
6 | 6 |
7 import android.content.Context; | 7 import android.content.Context; |
8 | 8 |
9 import org.chromium.base.annotations.JNINamespace; | 9 import org.chromium.base.annotations.JNINamespace; |
10 import org.chromium.base.test.util.UrlUtils; | 10 import org.chromium.base.test.util.UrlUtils; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } | 84 } |
85 | 85 |
86 public static int getPort() { | 86 public static int getPort() { |
87 return nativeGetPort(); | 87 return nativeGetPort(); |
88 } | 88 } |
89 | 89 |
90 public static String getHostPort() { | 90 public static String getHostPort() { |
91 return nativeGetHostPort(); | 91 return nativeGetHostPort(); |
92 } | 92 } |
93 | 93 |
94 public static boolean isDataReductionProxySupported() { | |
95 return nativeIsDataReductionProxySupported(); | |
96 } | |
97 | |
98 private static native boolean nativeStartNativeTestServer(String filePath, S
tring testDataDir); | 94 private static native boolean nativeStartNativeTestServer(String filePath, S
tring testDataDir); |
99 private static native void nativeShutdownNativeTestServer(); | 95 private static native void nativeShutdownNativeTestServer(); |
100 private static native String nativeGetEchoBodyURL(); | 96 private static native String nativeGetEchoBodyURL(); |
101 private static native String nativeGetEchoHeaderURL(String header); | 97 private static native String nativeGetEchoHeaderURL(String header); |
102 private static native String nativeGetEchoAllHeadersURL(); | 98 private static native String nativeGetEchoAllHeadersURL(); |
103 private static native String nativeGetEchoMethodURL(); | 99 private static native String nativeGetEchoMethodURL(); |
104 private static native String nativeGetRedirectToEchoBody(); | 100 private static native String nativeGetRedirectToEchoBody(); |
105 private static native String nativeGetFileURL(String filePath); | 101 private static native String nativeGetFileURL(String filePath); |
106 private static native String nativeGetExabyteResponseURL(); | 102 private static native String nativeGetExabyteResponseURL(); |
107 private static native String nativeGetHostPort(); | 103 private static native String nativeGetHostPort(); |
108 private static native int nativeGetPort(); | 104 private static native int nativeGetPort(); |
109 private static native boolean nativeIsDataReductionProxySupported(); | |
110 } | 105 } |
OLD | NEW |