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

Unified 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: Addressed nit Created 5 years, 7 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') | components/cronet/cronet_static.gypi » ('j') | 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 d0437b32cbd05ac0c867eef5194e269c70ecfdef..9c80c260231fb94397b1cf98d02feff48a3ae6a9 100644
--- a/components/cronet/android/test/src/org/chromium/net/NativeTestServer.java
+++ b/components/cronet/android/test/src/org/chromium/net/NativeTestServer.java
@@ -91,6 +91,10 @@ public final class NativeTestServer {
return nativeGetFileURL("/notfound.html");
}
+ public static String getHostPort() {
+ return nativeGetHostPort();
+ }
+
@CalledByNative
private static void onHostResolverProcRegistered() {
sHostResolverBlock.open();
@@ -107,4 +111,5 @@ 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 nativeGetHostPort();
}
« no previous file with comments | « components/cronet/android/test/native_test_server.cc ('k') | components/cronet/cronet_static.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698