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

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

Issue 2164863002: Fix CronetHttpURLConnectionTest#testServerHangsUp flake (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comment Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/cronet/android/test/native_test_server.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/test/src/org/chromium/net/NativeTestServer.java
diff --git a/components/cronet/android/test/src/org/chromium/net/NativeTestServer.java b/components/cronet/android/test/src/org/chromium/net/NativeTestServer.java
index e6f5ef04884cf5e7c919b32f7e23f7c62c477096..db94b70f99baed3475183f1d4a17cb3312b5c557 100644
--- a/components/cronet/android/test/src/org/chromium/net/NativeTestServer.java
+++ b/components/cronet/android/test/src/org/chromium/net/NativeTestServer.java
@@ -56,6 +56,11 @@ public final class NativeTestServer {
return nativeGetSdchURL();
}
+ // Returns a URL that the server will return an Exabyte of data
+ public static String getExabyteResponseURL() {
+ return nativeGetExabyteResponseURL();
+ }
+
// The following URLs will make NativeTestServer serve a response based on
// the contents of the corresponding file and its mock-http-headers file.
@@ -92,6 +97,7 @@ public final class NativeTestServer {
private static native String nativeGetRedirectToEchoBody();
private static native String nativeGetFileURL(String filePath);
private static native String nativeGetSdchURL();
+ private static native String nativeGetExabyteResponseURL();
private static native String nativeGetHostPort();
private static native boolean nativeIsDataReductionProxySupported();
}
« no previous file with comments | « components/cronet/android/test/native_test_server.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698