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 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_SERVER_THREAD_H_ | 5 #ifndef NET_TOOLS_QUIC_TEST_TOOLS_SERVER_THREAD_H_ |
6 #define NET_TOOLS_QUIC_TEST_TOOLS_SERVER_THREAD_H_ | 6 #define NET_TOOLS_QUIC_TEST_TOOLS_SERVER_THREAD_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/threading/simple_thread.h" | 11 #include "base/threading/simple_thread.h" |
12 #include "net/base/ip_endpoint.h" | 12 #include "net/base/ip_endpoint.h" |
13 #include "net/quic/quic_config.h" | 13 #include "net/quic/core/quic_config.h" |
14 #include "net/tools/quic/quic_server.h" | 14 #include "net/tools/quic/quic_server.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 namespace test { | 17 namespace test { |
18 | 18 |
19 // Simple wrapper class to run QuicServer in a dedicated thread. | 19 // Simple wrapper class to run QuicServer in a dedicated thread. |
20 class ServerThread : public base::SimpleThread { | 20 class ServerThread : public base::SimpleThread { |
21 public: | 21 public: |
22 ServerThread(QuicServer* server, | 22 ServerThread(QuicServer* server, |
23 const IPEndPoint& address, | 23 const IPEndPoint& address, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 bool initialized_; | 73 bool initialized_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(ServerThread); | 75 DISALLOW_COPY_AND_ASSIGN(ServerThread); |
76 }; | 76 }; |
77 | 77 |
78 } // namespace test | 78 } // namespace test |
79 } // namespace net | 79 } // namespace net |
80 | 80 |
81 #endif // NET_TOOLS_QUIC_TEST_TOOLS_SERVER_THREAD_H_ | 81 #endif // NET_TOOLS_QUIC_TEST_TOOLS_SERVER_THREAD_H_ |
OLD | NEW |