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

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

Issue 3192011: Make sure the key into the spdy session pool identifies the actual proxy used... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rework some comments Created 10 years, 4 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
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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 virtual ~SpdyURLRequestContext() { 372 virtual ~SpdyURLRequestContext() {
373 delete http_transaction_factory_; 373 delete http_transaction_factory_;
374 delete http_auth_handler_factory_; 374 delete http_auth_handler_factory_;
375 } 375 }
376 376
377 private: 377 private:
378 MockClientSocketFactory socket_factory_; 378 MockClientSocketFactory socket_factory_;
379 scoped_refptr<SpdySessionPool> spdy_session_pool_; 379 scoped_refptr<SpdySessionPool> spdy_session_pool_;
380 }; 380 };
381 381
382 // This creates a proxy for testing purposes.
383 // |proxy| should be in the form "myproxy:70".
384 ProxyService* SpdyCreateFixedProxyService(const std::string& proxy);
385
386 const SpdyHeaderInfo make_spdy_header(spdy::SpdyControlType type); 382 const SpdyHeaderInfo make_spdy_header(spdy::SpdyControlType type);
387 } // namespace net 383 } // namespace net
388 384
389 #endif // NET_SPDY_SPDY_TEST_UTIL_H_ 385 #endif // NET_SPDY_SPDY_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698