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

Unified Diff: chrome/browser/google_apis/test_server/http_connection.cc

Issue 14971002: GTTF: move chrome/browser/google_apis/test_server to net/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased, OWNERS 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: chrome/browser/google_apis/test_server/http_connection.cc
diff --git a/chrome/browser/google_apis/test_server/http_connection.cc b/chrome/browser/google_apis/test_server/http_connection.cc
deleted file mode 100644
index d870c7e31db766d051625ccfd9f3018bf150dff9..0000000000000000000000000000000000000000
--- a/chrome/browser/google_apis/test_server/http_connection.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2012 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.
-
-#include "chrome/browser/google_apis/test_server/http_connection.h"
-
-#include "chrome/browser/google_apis/test_server/http_response.h"
-#include "net/socket/stream_listen_socket.h"
-
-namespace google_apis {
-namespace test_server {
-
-HttpConnection::HttpConnection(net::StreamListenSocket* socket,
- const HandleRequestCallback& callback)
- : socket_(socket),
- callback_(callback) {
-}
-
-HttpConnection::~HttpConnection() {
-}
-
-void HttpConnection::SendResponse(scoped_ptr<HttpResponse> response) const {
- const std::string response_string = response->ToResponseString();
- socket_->Send(response_string.c_str(), response_string.length());
-}
-
-void HttpConnection::ReceiveData(const base::StringPiece& data) {
- request_parser_.ProcessChunk(data);
- if (request_parser_.ParseRequest() == HttpRequestParser::ACCEPTED) {
- callback_.Run(this, request_parser_.GetRequest());
- }
-}
-
-} // namespace test_server
-} // namespace google_apis
« no previous file with comments | « chrome/browser/google_apis/test_server/http_connection.h ('k') | chrome/browser/google_apis/test_server/http_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698