cronet: align cronet test naming with API
Since the API was renamed, remove all mentions of cronet from tests.
Test: TH
Change-Id: I4636f971a70f45d8b12c053989bf353bd0471c26
diff --git a/Cronet/tests/cts/src/android/net/http/cts/CronetEngineTest.java b/Cronet/tests/cts/src/android/net/http/cts/HttpEngineTest.java
similarity index 92%
rename from Cronet/tests/cts/src/android/net/http/cts/CronetEngineTest.java
rename to Cronet/tests/cts/src/android/net/http/cts/HttpEngineTest.java
index 7df3890..b07367a 100644
--- a/Cronet/tests/cts/src/android/net/http/cts/CronetEngineTest.java
+++ b/Cronet/tests/cts/src/android/net/http/cts/HttpEngineTest.java
@@ -39,7 +39,7 @@
import org.junit.runner.RunWith;
@RunWith(AndroidJUnit4.class)
-public class CronetEngineTest {
+public class HttpEngineTest {
private static final String HOST = "source.android.com";
private static final String URL = "https://" + HOST;
@@ -63,7 +63,7 @@
}
@Test
- public void testCronetEngine_Default() throws Exception {
+ public void testHttpEngine_Default() throws Exception {
mEngine = mEngineBuilder.build();
UrlRequest.Builder builder =
mEngine.newUrlRequestBuilder(URL, mCallback, mCallback.getExecutor());
@@ -76,7 +76,7 @@
}
@Test
- public void testCronetEngine_DisableHttp2() throws Exception {
+ public void testHttpEngine_DisableHttp2() throws Exception {
mEngine = mEngineBuilder.setEnableHttp2(false).build();
UrlRequest.Builder builder =
mEngine.newUrlRequestBuilder(URL, mCallback, mCallback.getExecutor());
@@ -89,7 +89,7 @@
}
@Test
- public void testCronetEngine_EnableQuic() throws Exception {
+ public void testHttpEngine_EnableQuic() throws Exception {
// The hint doesn't guarantee that QUIC will win the race, just that it will race TCP.
// If this ends up being flaky, consider sending multiple requests.
mEngine = mEngineBuilder.setEnableQuic(true).addQuicHint(HOST, 443, 443).build();
@@ -104,7 +104,7 @@
}
@Test
- public void testCronetEngine_GetDefaultUserAgent() throws Exception {
+ public void testHttpEngine_GetDefaultUserAgent() throws Exception {
assertThat(mEngineBuilder.getDefaultUserAgent(), containsString("AndroidHttpClient"));
}
}
diff --git a/Cronet/tests/cts/src/android/net/http/cts/CronetUrlRequestTest.java b/Cronet/tests/cts/src/android/net/http/cts/UrlRequestTest.java
similarity index 98%
rename from Cronet/tests/cts/src/android/net/http/cts/CronetUrlRequestTest.java
rename to Cronet/tests/cts/src/android/net/http/cts/UrlRequestTest.java
index fd18eea..d7d3679 100644
--- a/Cronet/tests/cts/src/android/net/http/cts/CronetUrlRequestTest.java
+++ b/Cronet/tests/cts/src/android/net/http/cts/UrlRequestTest.java
@@ -41,7 +41,7 @@
import org.junit.runner.RunWith;
@RunWith(AndroidJUnit4.class)
-public class CronetUrlRequestTest {
+public class UrlRequestTest {
private TestUrlRequestCallback mCallback;
private HttpCtsTestServer mTestServer;
private HttpEngine mHttpEngine;