| 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/tools/quic/quic_client_session.h" | 5 #include "net/tools/quic/quic_client_session.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
| 10 #include "net/base/ip_endpoint.h" | 10 #include "net/base/ip_endpoint.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 using testing::AnyNumber; | 41 using testing::AnyNumber; |
| 42 using testing::Invoke; | 42 using testing::Invoke; |
| 43 using testing::Truly; | 43 using testing::Truly; |
| 44 using testing::_; | 44 using testing::_; |
| 45 | 45 |
| 46 namespace net { | 46 namespace net { |
| 47 namespace test { | 47 namespace test { |
| 48 namespace { | 48 namespace { |
| 49 | 49 |
| 50 const char kServerHostname[] = "test.example.com"; | 50 const char kServerHostname[] = "test.example.com"; |
| 51 const uint16_t kPort = 80; | 51 const uint16_t kPort = 443; |
| 52 | 52 |
| 53 class TestQuicClientSession : public QuicClientSession { | 53 class TestQuicClientSession : public QuicClientSession { |
| 54 public: | 54 public: |
| 55 explicit TestQuicClientSession(const QuicConfig& config, | 55 explicit TestQuicClientSession(const QuicConfig& config, |
| 56 QuicConnection* connection, | 56 QuicConnection* connection, |
| 57 const QuicServerId& server_id, | 57 const QuicServerId& server_id, |
| 58 QuicCryptoClientConfig* crypto_config, | 58 QuicCryptoClientConfig* crypto_config, |
| 59 QuicClientPushPromiseIndex* push_promise_index) | 59 QuicClientPushPromiseIndex* push_promise_index) |
| 60 : QuicClientSession(config, | 60 : QuicClientSession(config, |
| 61 connection, | 61 connection, |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 QuicClientPromisedInfo* promised = | 491 QuicClientPromisedInfo* promised = |
| 492 session_->GetPromisedById(promised_stream_id_); | 492 session_->GetPromisedById(promised_stream_id_); |
| 493 EXPECT_NE(promised, nullptr); | 493 EXPECT_NE(promised, nullptr); |
| 494 EXPECT_NE(session_->GetPromisedByUrl(promise_url_), nullptr); | 494 EXPECT_NE(session_->GetPromisedByUrl(promise_url_), nullptr); |
| 495 EXPECT_EQ(session_->GetPromisedStream(promised_stream_id_), nullptr); | 495 EXPECT_EQ(session_->GetPromisedStream(promised_stream_id_), nullptr); |
| 496 } | 496 } |
| 497 | 497 |
| 498 } // namespace | 498 } // namespace |
| 499 } // namespace test | 499 } // namespace test |
| 500 } // namespace net | 500 } // namespace net |
| OLD | NEW |