Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 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 interface IEmbeddedTestServerImpl { | |
| 8 | |
| 9 /** Initialize the native object. */ | |
| 10 void initializeNative(); | |
| 11 | |
| 12 /** Starts the server. | |
|
mef
2015/12/02 16:00:08
nit: Starts -> Start
jbudorick
2015/12/03 00:03:44
Done.
| |
| 13 * | |
| 14 * @return Whether the server was successfully started. | |
| 15 */ | |
| 16 boolean start(); | |
| 17 | |
| 18 /** Serve files from the provided directory. | |
| 19 * | |
| 20 * @param directoryPath The path of the directory from which files should b e served. | |
| 21 */ | |
| 22 void serveFilesFromDirectory(String directoryPath); | |
| 23 | |
| 24 /** Get the full URL for the given relative URL. | |
| 25 * | |
| 26 * @param relativeUrl The relative URL for which a full URL should be retur ned. | |
| 27 * @return The URL as a String. | |
| 28 */ | |
| 29 String getURL(String relativeUrl); | |
| 30 | |
| 31 /** Shut down the server. | |
| 32 * | |
| 33 * @return Whether the server was successfully shut down. | |
| 34 */ | |
| 35 boolean shutdownAndWaitUntilComplete(); | |
| 36 | |
| 37 /** Destroy the native object. */ | |
| 38 void destroy(); | |
| 39 | |
| 40 } | |
| 41 | |
| OLD | NEW |