OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/test_tools/server_thread.h" | 5 #include "net/tools/quic/test_tools/server_thread.h" |
6 | 6 |
| 7 #include "net/tools/quic/quic_dispatcher.h" |
7 #include "net/tools/quic/test_tools/quic_server_peer.h" | 8 #include "net/tools/quic/test_tools/quic_server_peer.h" |
8 | 9 |
9 namespace net { | 10 namespace net { |
10 namespace tools { | 11 namespace tools { |
11 namespace test { | 12 namespace test { |
12 | 13 |
13 ServerThread::ServerThread(QuicServer* server, | 14 ServerThread::ServerThread(QuicServer* server, |
14 IPEndPoint address, | 15 IPEndPoint address, |
15 bool strike_register_no_startup_period) | 16 bool strike_register_no_startup_period) |
16 : SimpleThread("server_thread"), | 17 : SimpleThread("server_thread"), |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 } | 104 } |
104 QuicSession* session = dispatcher->session_map().begin()->second; | 105 QuicSession* session = dispatcher->session_map().begin()->second; |
105 if (session->IsCryptoHandshakeConfirmed()) { | 106 if (session->IsCryptoHandshakeConfirmed()) { |
106 confirmed_.Signal(); | 107 confirmed_.Signal(); |
107 } | 108 } |
108 } | 109 } |
109 | 110 |
110 } // namespace test | 111 } // namespace test |
111 } // namespace tools | 112 } // namespace tools |
112 } // namespace net | 113 } // namespace net |
OLD | NEW |