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

Side by Side Diff: net/socket/socket_test_util.cc

Issue 12680003: net: split net/ssl out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 | « net/socket/socket_test_util.h ('k') | net/socket/ssl_client_socket_nss.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) 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 "net/socket/socket_test_util.h" 5 #include "net/socket/socket_test_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "net/base/address_family.h" 16 #include "net/base/address_family.h"
17 #include "net/base/address_list.h" 17 #include "net/base/address_list.h"
18 #include "net/base/auth.h" 18 #include "net/base/auth.h"
19 #include "net/base/load_timing_info.h" 19 #include "net/base/load_timing_info.h"
20 #include "net/base/ssl_cert_request_info.h"
21 #include "net/base/ssl_info.h"
22 #include "net/http/http_network_session.h" 20 #include "net/http/http_network_session.h"
23 #include "net/http/http_request_headers.h" 21 #include "net/http/http_request_headers.h"
24 #include "net/http/http_response_headers.h" 22 #include "net/http/http_response_headers.h"
25 #include "net/socket/client_socket_pool_histograms.h" 23 #include "net/socket/client_socket_pool_histograms.h"
26 #include "net/socket/socket.h" 24 #include "net/socket/socket.h"
25 #include "net/ssl/ssl_cert_request_info.h"
26 #include "net/ssl/ssl_info.h"
27 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
28 28
29 // Socket events are easier to debug if you log individual reads and writes. 29 // Socket events are easier to debug if you log individual reads and writes.
30 // Enable these if locally debugging, but they are too noisy for the waterfall. 30 // Enable these if locally debugging, but they are too noisy for the waterfall.
31 #if 0 31 #if 0
32 #define NET_TRACE(level, s) DLOG(level) << s << __FUNCTION__ << "() " 32 #define NET_TRACE(level, s) DLOG(level) << s << __FUNCTION__ << "() "
33 #else 33 #else
34 #define NET_TRACE(level, s) EAT_STREAM_PARAMETERS 34 #define NET_TRACE(level, s) EAT_STREAM_PARAMETERS
35 #endif 35 #endif
36 36
(...skipping 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 1714
1715 const char kSOCKS5OkRequest[] = 1715 const char kSOCKS5OkRequest[] =
1716 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 }; 1716 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 };
1717 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest); 1717 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest);
1718 1718
1719 const char kSOCKS5OkResponse[] = 1719 const char kSOCKS5OkResponse[] =
1720 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 }; 1720 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 };
1721 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse); 1721 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse);
1722 1722
1723 } // namespace net 1723 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/socket_test_util.h ('k') | net/socket/ssl_client_socket_nss.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698