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

Side by Side Diff: components/cronet/android/test/src/org/chromium/net/NativeTestServer.java

Issue 937513003: Add Data Saver support to Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test Created 5 years, 9 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 // 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.JNINamespace; 9 import org.chromium.base.JNINamespace;
10 10
(...skipping 29 matching lines...) Expand all
40 } 40 }
41 41
42 public static String getRedirectToEchoBody() { 42 public static String getRedirectToEchoBody() {
43 return nativeGetRedirectToEchoBody(); 43 return nativeGetRedirectToEchoBody();
44 } 44 }
45 45
46 public static String getFileURL(String filePath) { 46 public static String getFileURL(String filePath) {
47 return nativeGetFileURL(filePath); 47 return nativeGetFileURL(filePath);
48 } 48 }
49 49
50 public static int getPort() {
51 return nativeGetPort();
52 }
53
50 private static native boolean nativeStartNativeTestServer(String filePath); 54 private static native boolean nativeStartNativeTestServer(String filePath);
51 private static native void nativeShutdownNativeTestServer(); 55 private static native void nativeShutdownNativeTestServer();
52 private static native String nativeGetEchoBodyURL(); 56 private static native String nativeGetEchoBodyURL();
53 private static native String nativeGetEchoHeaderURL(String header); 57 private static native String nativeGetEchoHeaderURL(String header);
54 private static native String nativeGetEchoAllHeadersURL(); 58 private static native String nativeGetEchoAllHeadersURL();
55 private static native String nativeGetEchoMethodURL(); 59 private static native String nativeGetEchoMethodURL();
56 private static native String nativeGetRedirectToEchoBody(); 60 private static native String nativeGetRedirectToEchoBody();
57 private static native String nativeGetFileURL(String filePath); 61 private static native String nativeGetFileURL(String filePath);
62 private static native int nativeGetPort();
58 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698