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

Unified Diff: components/cronet/android/test/src/org/chromium/cronet_test_apk/UploadTestServer.java

Issue 773183003: Make Cronet's upload test server to serve files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: components/cronet/android/test/src/org/chromium/cronet_test_apk/UploadTestServer.java
diff --git a/components/cronet/android/test/src/org/chromium/cronet_test_apk/UploadTestServer.java b/components/cronet/android/test/src/org/chromium/cronet_test_apk/UploadTestServer.java
index 85301b015d9861cd4ec0febe853aebd1b3c63734..f03beafa5eab2d4f26cf5f32ec0ee69e0f314049 100644
--- a/components/cronet/android/test/src/org/chromium/cronet_test_apk/UploadTestServer.java
+++ b/components/cronet/android/test/src/org/chromium/cronet_test_apk/UploadTestServer.java
@@ -40,6 +40,10 @@ public final class UploadTestServer {
return nativeGetRedirectToEchoBody();
}
+ public static String getFileURL(String filePath) {
+ return nativeGetFileURL(filePath);
+ }
+
private static native boolean nativeStartUploadTestServer();
private static native void nativeShutdownUploadTestServer();
private static native String nativeGetEchoBodyURL();
@@ -47,4 +51,5 @@ public final class UploadTestServer {
private static native String nativeGetEchoAllHeadersURL();
private static native String nativeGetEchoMethodURL();
private static native String nativeGetRedirectToEchoBody();
+ private static native String nativeGetFileURL(String filePath);
}

Powered by Google App Engine
This is Rietveld 408576698