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

Side by Side Diff: chrome/test/chromedriver/net/test_http_server.cc

Issue 13812005: net: move socket files from net/base to net/socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort gyp Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/chromedriver/net/net_util_unittest.cc ('k') | chrome_frame/test/test_server.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/test/chromedriver/net/test_http_server.h" 5 #include "chrome/test/chromedriver/net/test_http_server.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
11 #include "base/stringprintf.h" 11 #include "base/stringprintf.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "net/base/ip_endpoint.h" 13 #include "net/base/ip_endpoint.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 #include "net/base/tcp_listen_socket.h"
16 #include "net/server/http_server_request_info.h" 15 #include "net/server/http_server_request_info.h"
16 #include "net/socket/tcp_listen_socket.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 TestHttpServer::TestHttpServer() 19 TestHttpServer::TestHttpServer()
20 : thread_("ServerThread"), 20 : thread_("ServerThread"),
21 all_closed_event_(false, true), 21 all_closed_event_(false, true),
22 request_action_(kAccept), 22 request_action_(kAccept),
23 message_action_(kEchoMessage) { 23 message_action_(kEchoMessage) {
24 } 24 }
25 25
26 TestHttpServer::~TestHttpServer() { 26 TestHttpServer::~TestHttpServer() {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 } 143 }
144 *success = server_; 144 *success = server_;
145 event->Signal(); 145 event->Signal();
146 } 146 }
147 147
148 void TestHttpServer::StopOnServerThread(base::WaitableEvent* event) { 148 void TestHttpServer::StopOnServerThread(base::WaitableEvent* event) {
149 if (server_) 149 if (server_)
150 server_ = NULL; 150 server_ = NULL;
151 event->Signal(); 151 event->Signal();
152 } 152 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/net/net_util_unittest.cc ('k') | chrome_frame/test/test_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698