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

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

Issue 6322003: net: Remove prefix net:: from some places that already are in namespace net. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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_stream/socket_stream_job.h ('k') | net/websockets/websocket_job_unittest.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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"
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 session_deps-> 390 session_deps->
391 deterministic_socket_factory.get(), 391 deterministic_socket_factory.get(),
392 session_deps->ssl_config_service, 392 session_deps->ssl_config_service,
393 new SpdySessionPool(NULL), 393 new SpdySessionPool(NULL),
394 session_deps->http_auth_handler_factory.get(), 394 session_deps->http_auth_handler_factory.get(),
395 NULL, 395 NULL,
396 NULL); 396 NULL);
397 } 397 }
398 }; 398 };
399 399
400 class SpdyURLRequestContext : public net::URLRequestContext { 400 class SpdyURLRequestContext : public URLRequestContext {
401 public: 401 public:
402 SpdyURLRequestContext() { 402 SpdyURLRequestContext() {
403 host_resolver_ = new MockHostResolver(); 403 host_resolver_ = new MockHostResolver();
404 cert_verifier_ = new CertVerifier; 404 cert_verifier_ = new CertVerifier;
405 proxy_service_ = ProxyService::CreateDirect(); 405 proxy_service_ = ProxyService::CreateDirect();
406 ssl_config_service_ = new SSLConfigServiceDefaults; 406 ssl_config_service_ = new SSLConfigServiceDefaults;
407 http_auth_handler_factory_ = HttpAuthHandlerFactory::CreateDefault( 407 http_auth_handler_factory_ = HttpAuthHandlerFactory::CreateDefault(
408 host_resolver_); 408 host_resolver_);
409 http_transaction_factory_ = new net::HttpCache( 409 http_transaction_factory_ = new HttpCache(
410 new HttpNetworkLayer(&socket_factory_, 410 new HttpNetworkLayer(&socket_factory_,
411 host_resolver_, 411 host_resolver_,
412 cert_verifier_, 412 cert_verifier_,
413 NULL /* dnsrr_resolver */, 413 NULL /* dnsrr_resolver */,
414 NULL /* dns_cert_checker */, 414 NULL /* dns_cert_checker */,
415 NULL /* ssl_host_info_factory */, 415 NULL /* ssl_host_info_factory */,
416 proxy_service_, 416 proxy_service_,
417 ssl_config_service_, 417 ssl_config_service_,
418 new SpdySessionPool(NULL), 418 new SpdySessionPool(NULL),
419 http_auth_handler_factory_, 419 http_auth_handler_factory_,
420 network_delegate_, 420 network_delegate_,
421 NULL), 421 NULL),
422 NULL /* net_log */, 422 NULL /* net_log */,
423 net::HttpCache::DefaultBackend::InMemory(0)); 423 HttpCache::DefaultBackend::InMemory(0));
424 } 424 }
425 425
426 MockClientSocketFactory& socket_factory() { return socket_factory_; } 426 MockClientSocketFactory& socket_factory() { return socket_factory_; }
427 427
428 protected: 428 protected:
429 virtual ~SpdyURLRequestContext() { 429 virtual ~SpdyURLRequestContext() {
430 delete http_transaction_factory_; 430 delete http_transaction_factory_;
431 delete http_auth_handler_factory_; 431 delete http_auth_handler_factory_;
432 delete cert_verifier_; 432 delete cert_verifier_;
433 delete host_resolver_; 433 delete host_resolver_;
434 } 434 }
435 435
436 private: 436 private:
437 MockClientSocketFactory socket_factory_; 437 MockClientSocketFactory socket_factory_;
438 }; 438 };
439 439
440 const SpdyHeaderInfo make_spdy_header(spdy::SpdyControlType type); 440 const SpdyHeaderInfo make_spdy_header(spdy::SpdyControlType type);
441 } // namespace net 441 } // namespace net
442 442
443 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ 443 #endif // NET_SPDY_SPDY_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/socket_stream/socket_stream_job.h ('k') | net/websockets/websocket_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698