Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: net/tools/quic/test_tools/server_thread.h

Issue 2513113002: Remove strike-register code from QuicCryptoServerConfig (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/tools/quic/quic_simple_server_bin.cc ('k') | net/tools/quic/test_tools/server_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/synchronization/lock.h" 11 #include "base/synchronization/lock.h"
12 #include "base/threading/simple_thread.h" 12 #include "base/threading/simple_thread.h"
13 #include "net/base/ip_endpoint.h" 13 #include "net/base/ip_endpoint.h"
14 #include "net/quic/core/quic_config.h" 14 #include "net/quic/core/quic_config.h"
15 #include "net/tools/quic/quic_server.h" 15 #include "net/tools/quic/quic_server.h"
16 16
17 namespace net { 17 namespace net {
18 namespace test { 18 namespace test {
19 19
20 // Simple wrapper class to run QuicServer in a dedicated thread. 20 // Simple wrapper class to run QuicServer in a dedicated thread.
21 class ServerThread : public base::SimpleThread { 21 class ServerThread : public base::SimpleThread {
22 public: 22 public:
23 ServerThread(QuicServer* server, 23 ServerThread(QuicServer* server, const IPEndPoint& address);
24 const IPEndPoint& address,
25 bool strike_register_no_startup_period);
26 24
27 ~ServerThread() override; 25 ~ServerThread() override;
28 26
29 // Prepares the server, but does not start accepting connections. Useful for 27 // Prepares the server, but does not start accepting connections. Useful for
30 // injecting mocks. 28 // injecting mocks.
31 void Initialize(); 29 void Initialize();
32 30
33 // Runs the event loop. Will initialize if necessary. 31 // Runs the event loop. Will initialize if necessary.
34 void Run() override; 32 void Run() override;
35 33
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 base::Lock scheduled_actions_lock_; 78 base::Lock scheduled_actions_lock_;
81 std::deque<std::function<void()>> scheduled_actions_; 79 std::deque<std::function<void()>> scheduled_actions_;
82 80
83 DISALLOW_COPY_AND_ASSIGN(ServerThread); 81 DISALLOW_COPY_AND_ASSIGN(ServerThread);
84 }; 82 };
85 83
86 } // namespace test 84 } // namespace test
87 } // namespace net 85 } // namespace net
88 86
89 #endif // NET_TOOLS_QUIC_TEST_TOOLS_SERVER_THREAD_H_ 87 #endif // NET_TOOLS_QUIC_TEST_TOOLS_SERVER_THREAD_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_simple_server_bin.cc ('k') | net/tools/quic/test_tools/server_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698