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

Side by Side Diff: chrome_frame/test/test_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_frame/test/test_server.h ('k') | chrome_frame/test/test_with_web_server.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_frame/test/test_server.h" 5 #include "chrome_frame/test/test_server.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <objbase.h> 8 #include <objbase.h>
9 #include <urlmon.h> 9 #include <urlmon.h>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/string_number_conversions.h" 13 #include "base/string_number_conversions.h"
14 #include "base/string_piece.h" 14 #include "base/string_piece.h"
15 #include "base/string_util.h" 15 #include "base/string_util.h"
16 #include "base/stringprintf.h" 16 #include "base/stringprintf.h"
17 #include "base/utf_string_conversions.h" 17 #include "base/utf_string_conversions.h"
18 #include "chrome_frame/test/chrome_frame_test_utils.h" 18 #include "chrome_frame/test/chrome_frame_test_utils.h"
19 #include "net/base/tcp_listen_socket.h"
20 #include "net/base/winsock_init.h" 19 #include "net/base/winsock_init.h"
21 #include "net/http/http_util.h" 20 #include "net/http/http_util.h"
21 #include "net/socket/tcp_listen_socket.h"
22 22
23 namespace test_server { 23 namespace test_server {
24 const char kDefaultHeaderTemplate[] = 24 const char kDefaultHeaderTemplate[] =
25 "HTTP/1.1 %hs\r\n" 25 "HTTP/1.1 %hs\r\n"
26 "Connection: close\r\n" 26 "Connection: close\r\n"
27 "Content-Type: %hs\r\n" 27 "Content-Type: %hs\r\n"
28 "Content-Length: %i\r\n\r\n"; 28 "Content-Length: %i\r\n\r\n";
29 const char kStatusOk[] = "200 OK"; 29 const char kStatusOk[] = "200 OK";
30 const char kStatusNotFound[] = "404 Not Found"; 30 const char kStatusNotFound[] = "404 Not Found";
31 const char kDefaultContentType[] = "text/html; charset=UTF-8"; 31 const char kDefaultContentType[] = "text/html; charset=UTF-8";
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 data_.append(content_length_header); 411 data_.append(content_length_header);
412 data_.append("\r\n"); 412 data_.append("\r\n");
413 } 413 }
414 414
415 MessageLoop::current()->PostDelayedTask( 415 MessageLoop::current()->PostDelayedTask(
416 FROM_HERE, base::Bind(&ConfigurableConnection::SendChunk, this), 416 FROM_HERE, base::Bind(&ConfigurableConnection::SendChunk, this),
417 base::TimeDelta::FromMilliseconds(options.timeout_)); 417 base::TimeDelta::FromMilliseconds(options.timeout_));
418 } 418 }
419 419
420 } // namespace test_server 420 } // namespace test_server
OLDNEW
« no previous file with comments | « chrome_frame/test/test_server.h ('k') | chrome_frame/test/test_with_web_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698