| OLD | NEW |
| 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 #include "net/quic/test_tools/quic_test_utils.h" | 5 #include "net/quic/test_tools/quic_test_utils.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "net/quic/core/crypto/crypto_framer.h" | 9 #include "net/quic/core/crypto/crypto_framer.h" |
| 10 #include "net/quic/core/crypto/crypto_handshake.h" | 10 #include "net/quic/core/crypto/crypto_handshake.h" |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 rendezvous_stream_ = stream; | 454 rendezvous_stream_ = stream; |
| 455 } | 455 } |
| 456 | 456 |
| 457 TestQuicSpdyClientSession::TestQuicSpdyClientSession( | 457 TestQuicSpdyClientSession::TestQuicSpdyClientSession( |
| 458 QuicConnection* connection, | 458 QuicConnection* connection, |
| 459 const QuicConfig& config, | 459 const QuicConfig& config, |
| 460 const QuicServerId& server_id, | 460 const QuicServerId& server_id, |
| 461 QuicCryptoClientConfig* crypto_config) | 461 QuicCryptoClientConfig* crypto_config) |
| 462 : QuicClientSessionBase(connection, &push_promise_index_, config) { | 462 : QuicClientSessionBase(connection, &push_promise_index_, config) { |
| 463 crypto_stream_.reset(new QuicCryptoClientStream( | 463 crypto_stream_.reset(new QuicCryptoClientStream( |
| 464 server_id, this, CryptoTestUtils::ProofVerifyContextForTesting(), | 464 server_id, this, crypto_test_utils::ProofVerifyContextForTesting(), |
| 465 crypto_config, this)); | 465 crypto_config, this)); |
| 466 Initialize(); | 466 Initialize(); |
| 467 } | 467 } |
| 468 | 468 |
| 469 TestQuicSpdyClientSession::~TestQuicSpdyClientSession() {} | 469 TestQuicSpdyClientSession::~TestQuicSpdyClientSession() {} |
| 470 | 470 |
| 471 bool TestQuicSpdyClientSession::IsAuthorized(const string& authority) { | 471 bool TestQuicSpdyClientSession::IsAuthorized(const string& authority) { |
| 472 return true; | 472 return true; |
| 473 } | 473 } |
| 474 | 474 |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 // strike register worries that we've just overflowed a uint32_t time. | 887 // strike register worries that we've just overflowed a uint32_t time. |
| 888 (*server_connection)->AdvanceTime(connection_start_time); | 888 (*server_connection)->AdvanceTime(connection_start_time); |
| 889 } | 889 } |
| 890 | 890 |
| 891 QuicStreamId QuicClientDataStreamId(int i) { | 891 QuicStreamId QuicClientDataStreamId(int i) { |
| 892 return kClientDataStreamId1 + 2 * i; | 892 return kClientDataStreamId1 + 2 * i; |
| 893 } | 893 } |
| 894 | 894 |
| 895 } // namespace test | 895 } // namespace test |
| 896 } // namespace net | 896 } // namespace net |
| OLD | NEW |