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

Unified Diff: net/test/embedded_test_server/embedded_test_server.h

Issue 14914010: GTTF: Convert WebContentsImplBrowserTest to use EmbeddedTestServer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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: net/test/embedded_test_server/embedded_test_server.h
diff --git a/net/test/embedded_test_server/embedded_test_server.h b/net/test/embedded_test_server/embedded_test_server.h
index 7f85374d8b7e1ebcb8b0ddaafd1d88a2882208b7..ba56bcbf874ebf4e283e2e06d2b549742102100f 100644
--- a/net/test/embedded_test_server/embedded_test_server.h
+++ b/net/test/embedded_test_server/embedded_test_server.h
@@ -17,6 +17,10 @@
#include "googleurl/src/gurl.h"
#include "net/socket/tcp_listen_socket.h"
+namespace base {
+class FilePath;
+}
+
namespace net {
namespace test_server {
@@ -107,6 +111,11 @@ class EmbeddedTestServer : public StreamListenSocket::Delegate {
// Returns the port number used by the server.
int port() const { return port_; }
+ // Registers request handler which serves files from |directory|
+ // under PathService path key |root_key|. Returns true on success.
+ bool ServeFilesFromDirectory(
satorux1 2013/05/16 04:57:59 I think we need a unit test for this function. Emb
+ int root_key, const base::FilePath& directory) WARN_UNUSED_RESULT;
satorux1 2013/05/16 04:57:59 I think this function should just take a directory
+
// The most general purpose method. Any request processing can be added using
// this method. Takes ownership of the object. The |callback| is called
// on UI thread.

Powered by Google App Engine
This is Rietveld 408576698