OLD | NEW |
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" | |
15 #include "base/string_util.h" | 14 #include "base/string_util.h" |
16 #include "base/stringprintf.h" | 15 #include "base/stringprintf.h" |
| 16 #include "base/strings/string_piece.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/winsock_init.h" | 19 #include "net/base/winsock_init.h" |
20 #include "net/http/http_util.h" | 20 #include "net/http/http_util.h" |
21 #include "net/socket/tcp_listen_socket.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" |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |