summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/test_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame/test/test_server.h')
-rw-r--r--chrome_frame/test/test_server.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome_frame/test/test_server.h b/chrome_frame/test/test_server.h
index b827ceb..c3fab96 100644
--- a/chrome_frame/test/test_server.h
+++ b/chrome_frame/test/test_server.h
@@ -288,7 +288,7 @@ class SimpleWebServer : public ListenSocket::ListenSocketDelegate {
// ListenSocketDelegate overrides.
virtual void DidAccept(ListenSocket* server, ListenSocket* connection);
- virtual void DidRead(ListenSocket* connection, const std::string& data);
+ virtual void DidRead(ListenSocket* connection, const char* data, int len);
virtual void DidClose(ListenSocket* sock);
const ConnectionList& connections() const {
@@ -381,7 +381,7 @@ class HTTPTestServer : public ListenSocket::ListenSocketDelegate {
virtual void Post(ConfigurableConnection* connection,
const std::string& path, const Request& r) = 0;
-private:
+ private:
typedef std::list<scoped_refptr<ConfigurableConnection> > ConnectionList;
ConnectionList::iterator FindConnection(const ListenSocket* socket);
scoped_refptr<ConfigurableConnection> ConnectionFromSocket(
@@ -389,7 +389,7 @@ private:
// ListenSocketDelegate overrides.
virtual void DidAccept(ListenSocket* server, ListenSocket* socket);
- virtual void DidRead(ListenSocket* socket, const std::string& data);
+ virtual void DidRead(ListenSocket* socket, const char* data, int len);
virtual void DidClose(ListenSocket* socket);
scoped_refptr<ListenSocket> server_;