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 18 matching lines...) Expand all Loading... |
29 using net::test::DefaultQuicConfig; | 29 using net::test::DefaultQuicConfig; |
30 using net::test::MockQuicConnection; | 30 using net::test::MockQuicConnection; |
31 using net::test::MockQuicConnectionHelper; | 31 using net::test::MockQuicConnectionHelper; |
32 using net::test::MockQuicSpdyClientStream; | 32 using net::test::MockQuicSpdyClientStream; |
33 using net::test::PacketSavingConnection; | 33 using net::test::PacketSavingConnection; |
34 using net::test::QuicConnectionPeer; | 34 using net::test::QuicConnectionPeer; |
35 using net::test::QuicPacketCreatorPeer; | 35 using net::test::QuicPacketCreatorPeer; |
36 using net::test::QuicSpdySessionPeer; | 36 using net::test::QuicSpdySessionPeer; |
37 using net::test::SupportedVersions; | 37 using net::test::SupportedVersions; |
38 using net::test::TestPeerIPAddress; | 38 using net::test::TestPeerIPAddress; |
39 using net::test::ValueRestore; | |
40 using net::test::kClientDataStreamId1; | 39 using net::test::kClientDataStreamId1; |
41 using net::test::kServerDataStreamId1; | 40 using net::test::kServerDataStreamId1; |
42 using net::test::kTestPort; | 41 using net::test::kTestPort; |
43 using std::string; | 42 using std::string; |
44 using testing::AnyNumber; | 43 using testing::AnyNumber; |
45 using testing::Invoke; | 44 using testing::Invoke; |
46 using testing::Truly; | 45 using testing::Truly; |
47 using testing::_; | 46 using testing::_; |
48 | 47 |
49 namespace net { | 48 namespace net { |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 QuicClientPromisedInfo* promised = | 526 QuicClientPromisedInfo* promised = |
528 session_->GetPromisedById(promised_stream_id_); | 527 session_->GetPromisedById(promised_stream_id_); |
529 EXPECT_NE(promised, nullptr); | 528 EXPECT_NE(promised, nullptr); |
530 EXPECT_NE(session_->GetPromisedByUrl(promise_url_), nullptr); | 529 EXPECT_NE(session_->GetPromisedByUrl(promise_url_), nullptr); |
531 EXPECT_EQ(session_->GetPromisedStream(promised_stream_id_), nullptr); | 530 EXPECT_EQ(session_->GetPromisedStream(promised_stream_id_), nullptr); |
532 } | 531 } |
533 | 532 |
534 } // namespace | 533 } // namespace |
535 } // namespace test | 534 } // namespace test |
536 } // namespace net | 535 } // namespace net |
OLD | NEW |