1 // Copyright 2015 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package org.chromium.net.test; 6 7 import android.app.Service; 8 import android.content.Intent; 9 import android.os.IBinder; 10 11 /** 12 * A {@link android.app.Service} that creates a new {@link EmbeddedTestServer} when bound. 13 */ 14 public class EmbeddedTestServerService extends Service { 15 @Override onBind(Intent intent)16 public IBinder onBind(Intent intent) { 17 return new EmbeddedTestServerImpl(this); 18 } 19 } 20