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

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

Issue 1143503005: Fix Data Saver test in Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/test/javatests/src/org/chromium/net/CronetUrlRequestContextTest.java
diff --git a/components/cronet/android/test/javatests/src/org/chromium/net/CronetUrlRequestContextTest.java b/components/cronet/android/test/javatests/src/org/chromium/net/CronetUrlRequestContextTest.java
index d4c4a6b1380b1a3400275e8fd0e06ae7ab534a50..2576dbb08cee8c9ef08f167e7999c21f6d25cca6 100644
--- a/components/cronet/android/test/javatests/src/org/chromium/net/CronetUrlRequestContextTest.java
+++ b/components/cronet/android/test/javatests/src/org/chromium/net/CronetUrlRequestContextTest.java
@@ -139,7 +139,7 @@ public class CronetUrlRequestContextTest extends CronetTestBase {
// server. This request will fail if the configuration logic for the
// Data Reduction Proxy is not used.
UrlRequest urlRequest = mActivity.mUrlRequestContext.createRequest(
- "http://google.com/datareductionproxysuccess.txt",
+ "http://DomainThatDoesnt.Resolve/datareductionproxysuccess.txt",
listener, listener.getExecutor());
urlRequest.start();
listener.blockForDone();
@@ -148,7 +148,8 @@ public class CronetUrlRequestContextTest extends CronetTestBase {
// Proxy logic configured to use the test server as its proxy.
assertEquals(200, listener.mResponseInfo.getHttpStatusCode());
assertEquals(serverHostPort, listener.mResponseInfo.getProxyServer());
- assertEquals("http://www.google.com/datareductionproxysuccess.txt",
+ assertEquals(
+ "http://DomainThatDoesnt.Resolve/datareductionproxysuccess.txt",
listener.mResponseInfo.getUrl());
}
« no previous file with comments | « no previous file | components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698