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

Unified Diff: net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerService.java

Issue 1465383003: [Android] Add ChromiumNetTestSupport.apk for the java EmbeddedTestServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: +landmine for GN Created 5 years 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: net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerService.java
diff --git a/net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerService.java b/net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerService.java
new file mode 100644
index 0000000000000000000000000000000000000000..ddd953e551220985a662fe3c8e8f0f30fb93696d
--- /dev/null
+++ b/net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerService.java
@@ -0,0 +1,19 @@
+// Copyright 2015 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.net.test;
+
+import android.app.Service;
+import android.content.Intent;
+import android.os.IBinder;
+
+/**
+ * A {@link android.app.Service} that creates a new {@link EmbeddedTestServer} when bound.
+ */
+public class EmbeddedTestServerService extends Service {
+ @Override
+ public IBinder onBind(Intent intent) {
+ return new EmbeddedTestServerImpl();
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698