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

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

Issue 873593006: [Cronet] Rename UploadTestServer.java to NativeTestServer.java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 11 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
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
deleted file mode 100644
index f039e82cacb2c62ec389fc6ee8d0ab81aca49cad..0000000000000000000000000000000000000000
--- a/components/cronet/android/test/src/org/chromium/cronet_test_apk/UploadTestServer.java
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.cronet_test_apk;
-
-import android.content.Context;
-
-import org.chromium.base.JNINamespace;
-
-/**
- * Wrapper class to start an in-process native test server, and get URLs
- * needed to talk to it.
- */
-@JNINamespace("cronet")
-public final class UploadTestServer {
- public static boolean startUploadTestServer(Context context) {
- return nativeStartUploadTestServer(
- TestFilesInstaller.getInstalledPath(context));
- }
-
- public static void shutdownUploadTestServer() {
- nativeShutdownUploadTestServer();
- }
-
- public static String getEchoBodyURL() {
- return nativeGetEchoBodyURL();
- }
-
- public static String getEchoHeaderURL(String header) {
- return nativeGetEchoHeaderURL(header);
- }
-
- public static String getEchoAllHeadersURL() {
- return nativeGetEchoAllHeadersURL();
- }
-
- public static String getEchoMethodURL() {
- return nativeGetEchoMethodURL();
- }
-
- public static String getRedirectToEchoBody() {
- return nativeGetRedirectToEchoBody();
- }
-
- public static String getFileURL(String filePath) {
- return nativeGetFileURL(filePath);
- }
-
- private static native boolean nativeStartUploadTestServer(String filePath);
- private static native void nativeShutdownUploadTestServer();
- private static native String nativeGetEchoBodyURL();
- private static native String nativeGetEchoHeaderURL(String header);
- 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