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/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "net/quic/core/crypto/aes_128_gcm_12_encrypter.h" | 11 #include "net/quic/core/crypto/aes_128_gcm_12_encrypter.h" |
12 #include "net/quic/core/quic_flags.h" | 12 #include "net/quic/core/quic_flags.h" |
13 #include "net/quic/core/spdy_utils.h" | 13 #include "net/quic/core/spdy_utils.h" |
14 #include "net/quic/platform/api/quic_socket_address.h" | 14 #include "net/quic/platform/api/quic_socket_address.h" |
15 #include "net/quic/test_tools/crypto_test_utils.h" | 15 #include "net/quic/test_tools/crypto_test_utils.h" |
16 #include "net/quic/test_tools/mock_quic_spdy_client_stream.h" | 16 #include "net/quic/test_tools/mock_quic_spdy_client_stream.h" |
17 #include "net/quic/test_tools/quic_config_peer.h" | 17 #include "net/quic/test_tools/quic_config_peer.h" |
18 #include "net/quic/test_tools/quic_connection_peer.h" | 18 #include "net/quic/test_tools/quic_connection_peer.h" |
19 #include "net/quic/test_tools/quic_packet_creator_peer.h" | 19 #include "net/quic/test_tools/quic_packet_creator_peer.h" |
20 #include "net/quic/test_tools/quic_spdy_session_peer.h" | 20 #include "net/quic/test_tools/quic_spdy_session_peer.h" |
21 #include "net/quic/test_tools/quic_test_utils.h" | 21 #include "net/quic/test_tools/quic_test_utils.h" |
22 #include "net/tools/quic/quic_spdy_client_stream.h" | 22 #include "net/tools/quic/quic_spdy_client_stream.h" |
23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
24 | 24 |
| 25 using google::protobuf::implicit_cast; |
25 using base::StringPrintf; | 26 using base::StringPrintf; |
26 using google::protobuf::implicit_cast; | |
27 using std::string; | 27 using std::string; |
28 using testing::AnyNumber; | 28 using testing::AnyNumber; |
29 using testing::Invoke; | 29 using testing::Invoke; |
30 using testing::Truly; | 30 using testing::Truly; |
31 using testing::_; | 31 using testing::_; |
32 | 32 |
33 namespace net { | 33 namespace net { |
34 namespace test { | 34 namespace test { |
35 namespace { | 35 namespace { |
36 | 36 |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 QuicClientPromisedInfo* promised = | 499 QuicClientPromisedInfo* promised = |
500 session_->GetPromisedById(promised_stream_id_); | 500 session_->GetPromisedById(promised_stream_id_); |
501 EXPECT_NE(promised, nullptr); | 501 EXPECT_NE(promised, nullptr); |
502 EXPECT_NE(session_->GetPromisedByUrl(promise_url_), nullptr); | 502 EXPECT_NE(session_->GetPromisedByUrl(promise_url_), nullptr); |
503 EXPECT_EQ(session_->GetPromisedStream(promised_stream_id_), nullptr); | 503 EXPECT_EQ(session_->GetPromisedStream(promised_stream_id_), nullptr); |
504 } | 504 } |
505 | 505 |
506 } // namespace | 506 } // namespace |
507 } // namespace test | 507 } // namespace test |
508 } // namespace net | 508 } // namespace net |
OLD | NEW |