OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_QUIC_TEST_TOOLS_SIMULATOR_SIMULATOR_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_SIMULATOR_SIMULATOR_H_ |
6 #define NET_QUIC_TEST_TOOLS_SIMULATOR_SIMULATOR_H_ | 6 #define NET_QUIC_TEST_TOOLS_SIMULATOR_SIMULATOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <unordered_map> | 9 #include <unordered_map> |
10 #include <unordered_set> | 10 #include <unordered_set> |
11 | 11 |
12 #include "net/quic/core/quic_bug_tracker.h" | |
13 #include "net/quic/core/quic_connection.h" | 12 #include "net/quic/core/quic_connection.h" |
14 #include "net/quic/core/quic_simple_buffer_allocator.h" | 13 #include "net/quic/core/quic_simple_buffer_allocator.h" |
| 14 #include "net/quic/platform/api/quic_bug_tracker.h" |
15 #include "net/quic/test_tools/simulator/actor.h" | 15 #include "net/quic/test_tools/simulator/actor.h" |
16 #include "net/quic/test_tools/simulator/alarm_factory.h" | 16 #include "net/quic/test_tools/simulator/alarm_factory.h" |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 namespace simulator { | 19 namespace simulator { |
20 | 20 |
21 // Simulator is responsible for scheduling actors in the simulation and | 21 // Simulator is responsible for scheduling actors in the simulation and |
22 // providing basic utility interfaces (clock, alarms, RNG and others). | 22 // providing basic utility interfaces (clock, alarms, RNG and others). |
23 class Simulator : public QuicConnectionHelperInterface { | 23 class Simulator : public QuicConnectionHelperInterface { |
24 public: | 24 public: |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 if (clock_.Now() >= end_time) { | 157 if (clock_.Now() >= end_time) { |
158 return false; | 158 return false; |
159 } | 159 } |
160 return return_value; | 160 return return_value; |
161 } | 161 } |
162 | 162 |
163 } // namespace simulator | 163 } // namespace simulator |
164 } // namespace net | 164 } // namespace net |
165 | 165 |
166 #endif // NET_QUIC_TEST_TOOLS_SIMULATOR_SIMULATOR_H_ | 166 #endif // NET_QUIC_TEST_TOOLS_SIMULATOR_SIMULATOR_H_ |
OLD | NEW |