OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/quartc/quartc_session.h" | 5 #include "net/quic/quartc/quartc_session.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "net/base/ip_endpoint.h" | 11 #include "net/base/ip_endpoint.h" |
12 #include "net/quic/core/crypto/crypto_server_config_protobuf.h" | 12 #include "net/quic/core/crypto/crypto_server_config_protobuf.h" |
13 #include "net/quic/core/crypto/proof_source.h" | 13 #include "net/quic/core/crypto/proof_source.h" |
14 #include "net/quic/core/crypto/proof_verifier.h" | 14 #include "net/quic/core/crypto/proof_verifier.h" |
15 #include "net/quic/core/crypto/quic_crypto_client_config.h" | 15 #include "net/quic/core/crypto/quic_crypto_client_config.h" |
16 #include "net/quic/core/crypto/quic_crypto_server_config.h" | 16 #include "net/quic/core/crypto/quic_crypto_server_config.h" |
17 #include "net/quic/core/crypto/quic_random.h" | 17 #include "net/quic/core/crypto/quic_random.h" |
18 #include "net/quic/core/quic_crypto_client_stream.h" | 18 #include "net/quic/core/quic_crypto_client_stream.h" |
19 #include "net/quic/core/quic_crypto_server_stream.h" | 19 #include "net/quic/core/quic_crypto_server_stream.h" |
20 #include "net/quic/core/quic_simple_buffer_allocator.h" | 20 #include "net/quic/core/quic_simple_buffer_allocator.h" |
21 #include "net/quic/platform/api/quic_string_piece.h" | 21 #include "net/quic/platform/api/quic_string_piece.h" |
22 #include "net/quic/platform/impl/quic_chromium_clock.h" | 22 #include "net/quic/platform/impl/quic_chromium_clock.h" |
| 23 #include "net/quic/platform/impl/quic_test_impl.h" |
23 #include "net/quic/quartc/quartc_alarm_factory.h" | 24 #include "net/quic/quartc/quartc_alarm_factory.h" |
24 #include "net/quic/quartc/quartc_packet_writer.h" | 25 #include "net/quic/quartc/quartc_packet_writer.h" |
25 #include "net/quic/test_tools/quic_test_utils.h" | 26 #include "net/quic/test_tools/quic_test_utils.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 27 #include "testing/gtest/include/gtest/gtest.h" |
27 | 28 |
28 namespace net { | 29 namespace net { |
29 namespace test { | 30 namespace test { |
30 namespace { | 31 namespace { |
31 | 32 |
32 static const char kExporterLabel[] = "label"; | 33 static const char kExporterLabel[] = "label"; |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 EXPECT_FALSE(client_peer_->IsClosedStream(id)); | 496 EXPECT_FALSE(client_peer_->IsClosedStream(id)); |
496 stream->SetDelegate(client_peer_->stream_delegate()); | 497 stream->SetDelegate(client_peer_->stream_delegate()); |
497 stream->Close(); | 498 stream->Close(); |
498 RunLoopWithTimeout(); | 499 RunLoopWithTimeout(); |
499 EXPECT_TRUE(client_peer_->IsClosedStream(id)); | 500 EXPECT_TRUE(client_peer_->IsClosedStream(id)); |
500 } | 501 } |
501 | 502 |
502 } // namespace | 503 } // namespace |
503 } // namespace test | 504 } // namespace test |
504 } // namespace net | 505 } // namespace net |
OLD | NEW |