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

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

Issue 333803007: Rather than passing initial_flow_control_window all the way down the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months 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 | Annotate | Revision Log
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_SERVER_THREAD_H_ 5 #ifndef NET_TOOLS_QUIC_SERVER_THREAD_H_
6 #define NET_TOOLS_QUIC_SERVER_THREAD_H_ 6 #define NET_TOOLS_QUIC_SERVER_THREAD_H_
7 7
8 #include "base/threading/simple_thread.h" 8 #include "base/threading/simple_thread.h"
9 #include "net/base/ip_endpoint.h" 9 #include "net/base/ip_endpoint.h"
10 #include "net/quic/quic_config.h" 10 #include "net/quic/quic_config.h"
11 #include "net/tools/quic/quic_server.h" 11 #include "net/tools/quic/quic_server.h"
12 12
13 namespace net { 13 namespace net {
14 namespace tools { 14 namespace tools {
15 namespace test { 15 namespace test {
16 16
17 // Simple wrapper class to run server in a thread. 17 // Simple wrapper class to run server in a thread.
18 class ServerThread : public base::SimpleThread { 18 class ServerThread : public base::SimpleThread {
19 public: 19 public:
20 ServerThread(IPEndPoint address, 20 ServerThread(IPEndPoint address,
21 const QuicConfig& config, 21 const QuicConfig& config,
22 const QuicVersionVector& supported_versions, 22 const QuicVersionVector& supported_versions,
23 bool strike_register_no_startup_period, 23 bool strike_register_no_startup_period);
24 uint32 server_initial_flow_control_receive_window);
25 24
26 virtual ~ServerThread(); 25 virtual ~ServerThread();
27 26
28 // Prepares the server, but does not start accepting connections. Useful for 27 // Prepares the server, but does not start accepting connections. Useful for
29 // injecting mocks. 28 // injecting mocks.
30 void Initialize(); 29 void Initialize();
31 30
32 // Runs the event loop. Will initialize if necessary. 31 // Runs the event loop. Will initialize if necessary.
33 virtual void Run() OVERRIDE; 32 virtual void Run() OVERRIDE;
34 33
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 bool initialized_; 72 bool initialized_;
74 73
75 DISALLOW_COPY_AND_ASSIGN(ServerThread); 74 DISALLOW_COPY_AND_ASSIGN(ServerThread);
76 }; 75 };
77 76
78 } // namespace test 77 } // namespace test
79 } // namespace tools 78 } // namespace tools
80 } // namespace net 79 } // namespace net
81 80
82 #endif // NET_TOOLS_QUIC_SERVER_THREAD_H_ 81 #endif // NET_TOOLS_QUIC_SERVER_THREAD_H_
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/quic_test_utils.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