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

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

Issue 4067002: First pass at adding http/backend cache to NetLog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Minor cleanup Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/mock_host_resolver.h" 10 #include "net/base/mock_host_resolver.h"
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 host_resolver_, 404 host_resolver_,
405 NULL /* dnsrr_resolver */, 405 NULL /* dnsrr_resolver */,
406 NULL /* dns_cert_checker */, 406 NULL /* dns_cert_checker */,
407 NULL /* ssl_host_info_factory */, 407 NULL /* ssl_host_info_factory */,
408 proxy_service_, 408 proxy_service_,
409 ssl_config_service_, 409 ssl_config_service_,
410 new SpdySessionPool(NULL), 410 new SpdySessionPool(NULL),
411 http_auth_handler_factory_, 411 http_auth_handler_factory_,
412 network_delegate_, 412 network_delegate_,
413 NULL), 413 NULL),
414 NULL /* net_log */,
414 net::HttpCache::DefaultBackend::InMemory(0)); 415 net::HttpCache::DefaultBackend::InMemory(0));
415 } 416 }
416 417
417 MockClientSocketFactory& socket_factory() { return socket_factory_; } 418 MockClientSocketFactory& socket_factory() { return socket_factory_; }
418 419
419 protected: 420 protected:
420 virtual ~SpdyURLRequestContext() { 421 virtual ~SpdyURLRequestContext() {
421 delete http_transaction_factory_; 422 delete http_transaction_factory_;
422 delete http_auth_handler_factory_; 423 delete http_auth_handler_factory_;
423 delete host_resolver_; 424 delete host_resolver_;
424 } 425 }
425 426
426 private: 427 private:
427 MockClientSocketFactory socket_factory_; 428 MockClientSocketFactory socket_factory_;
428 }; 429 };
429 430
430 const SpdyHeaderInfo make_spdy_header(spdy::SpdyControlType type); 431 const SpdyHeaderInfo make_spdy_header(spdy::SpdyControlType type);
431 } // namespace net 432 } // namespace net
432 433
433 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ 434 #endif // NET_SPDY_SPDY_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698