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

Side by Side Diff: net/spdy/spdy_test_util_spdy3.h

Issue 9582034: Fork SPDY/2 and SPDY/3 versions of our SPDY tests, in preparation for landing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix merge bug Created 8 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/spdy/spdy_test_util_spdy2.cc ('k') | net/spdy/spdy_test_util_spdy3.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 #ifndef NET_SPDY_SPDY_TEST_UTIL_H_ 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_H_
6 #define NET_SPDY_SPDY_TEST_UTIL_H_ 6 #define NET_SPDY_SPDY_TEST_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "net/base/cert_verifier.h" 10 #include "net/base/cert_verifier.h"
11 #include "net/base/host_port_pair.h" 11 #include "net/base/host_port_pair.h"
12 #include "net/base/mock_host_resolver.h" 12 #include "net/base/mock_host_resolver.h"
13 #include "net/base/request_priority.h" 13 #include "net/base/request_priority.h"
14 #include "net/base/ssl_config_service_defaults.h" 14 #include "net/base/ssl_config_service_defaults.h"
15 #include "net/base/sys_addrinfo.h" 15 #include "net/base/sys_addrinfo.h"
16 #include "net/http/http_auth_handler_factory.h" 16 #include "net/http/http_auth_handler_factory.h"
17 #include "net/http/http_cache.h" 17 #include "net/http/http_cache.h"
18 #include "net/http/http_network_session.h" 18 #include "net/http/http_network_session.h"
19 #include "net/http/http_network_layer.h" 19 #include "net/http/http_network_layer.h"
20 #include "net/http/http_server_properties_impl.h" 20 #include "net/http/http_server_properties_impl.h"
21 #include "net/http/http_transaction_factory.h" 21 #include "net/http/http_transaction_factory.h"
22 #include "net/proxy/proxy_service.h" 22 #include "net/proxy/proxy_service.h"
23 #include "net/socket/socket_test_util.h" 23 #include "net/socket/socket_test_util.h"
24 #include "net/spdy/spdy_framer.h" 24 #include "net/spdy/spdy_framer.h"
25 #include "net/url_request/url_request_context.h" 25 #include "net/url_request/url_request_context.h"
26 #include "net/url_request/url_request_context_storage.h" 26 #include "net/url_request/url_request_context_storage.h"
27 27
28 namespace net { 28 namespace net {
29 29
30 namespace test_spdy3 {
31
30 // Default upload data used by both, mock objects and framer when creating 32 // Default upload data used by both, mock objects and framer when creating
31 // data frames. 33 // data frames.
32 const char kDefaultURL[] = "http://www.google.com"; 34 const char kDefaultURL[] = "http://www.google.com";
33 const char kUploadData[] = "hello!"; 35 const char kUploadData[] = "hello!";
34 const int kUploadDataSize = arraysize(kUploadData)-1; 36 const int kUploadDataSize = arraysize(kUploadData)-1;
35 37
36 // NOTE: In GCC, on a Mac, this can't be in an anonymous namespace! 38 // NOTE: In GCC, on a Mac, this can't be in an anonymous namespace!
37 // This struct holds information used to construct spdy control and data frames. 39 // This struct holds information used to construct spdy control and data frames.
38 struct SpdyHeaderInfo { 40 struct SpdyHeaderInfo {
39 spdy::SpdyControlType kind; 41 spdy::SpdyControlType kind;
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 void DisableDomainAuthenticationVerification() { 404 void DisableDomainAuthenticationVerification() {
403 pool_->verify_domain_authentication_ = false; 405 pool_->verify_domain_authentication_ = false;
404 } 406 }
405 407
406 private: 408 private:
407 SpdySessionPool* const pool_; 409 SpdySessionPool* const pool_;
408 410
409 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer); 411 DISALLOW_COPY_AND_ASSIGN(SpdySessionPoolPeer);
410 }; 412 };
411 413
414 } // namespace test_spdy3
415
412 } // namespace net 416 } // namespace net
413 417
414 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ 418 #endif // NET_SPDY_SPDY_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_test_util_spdy2.cc ('k') | net/spdy/spdy_test_util_spdy3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698