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

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

Issue 2365263004: Make (almost) all SpdySessions secure in unittests. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « net/spdy/spdy_stream_unittest.cc ('k') | net/spdy/spdy_test_util_common.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_COMMON_H_ 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 6 #define NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // already exist. 230 // already exist.
231 base::WeakPtr<SpdySession> CreateInsecureSpdySession( 231 base::WeakPtr<SpdySession> CreateInsecureSpdySession(
232 HttpNetworkSession* http_session, 232 HttpNetworkSession* http_session,
233 const SpdySessionKey& key, 233 const SpdySessionKey& key,
234 const NetLogWithSource& net_log); 234 const NetLogWithSource& net_log);
235 235
236 // Tries to create a SPDY session for the given key but expects the 236 // Tries to create a SPDY session for the given key but expects the
237 // attempt to fail with the given error. A SPDY session for |key| must 237 // attempt to fail with the given error. A SPDY session for |key| must
238 // not already exist. The session will be created but close in the 238 // not already exist. The session will be created but close in the
239 // next event loop iteration. 239 // next event loop iteration.
240 base::WeakPtr<SpdySession> TryCreateInsecureSpdySessionExpectingFailure( 240 base::WeakPtr<SpdySession> TryCreateSpdySessionExpectingFailure(
241 HttpNetworkSession* http_session, 241 HttpNetworkSession* http_session,
242 const SpdySessionKey& key, 242 const SpdySessionKey& key,
243 Error expected_error, 243 Error expected_error,
244 const NetLogWithSource& net_log); 244 const NetLogWithSource& net_log);
245 245
246 // Like CreateInsecureSpdySession(), but uses TLS. 246 // Like CreateInsecureSpdySession(), but uses TLS.
247 base::WeakPtr<SpdySession> CreateSecureSpdySession( 247 base::WeakPtr<SpdySession> CreateSecureSpdySession(
248 HttpNetworkSession* http_session, 248 HttpNetworkSession* http_session,
249 const SpdySessionKey& key, 249 const SpdySessionKey& key,
250 const NetLogWithSource& net_log); 250 const NetLogWithSource& net_log);
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 516
517 GURL default_url_; 517 GURL default_url_;
518 518
519 // Track a FIFO list of the stream_id of all created requests by priority. 519 // Track a FIFO list of the stream_id of all created requests by priority.
520 std::map<int, std::vector<int>> priority_to_stream_id_list_; 520 std::map<int, std::vector<int>> priority_to_stream_id_list_;
521 }; 521 };
522 522
523 } // namespace net 523 } // namespace net
524 524
525 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_ 525 #endif // NET_SPDY_SPDY_TEST_UTIL_COMMON_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_stream_unittest.cc ('k') | net/spdy/spdy_test_util_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698