Chromium Code Reviews| Index: net/quic/congestion_control/send_algorithm_simulator.h |
| diff --git a/net/quic/congestion_control/send_algorithm_simulator.h b/net/quic/congestion_control/send_algorithm_simulator.h |
| index 4941f35665dd03a4e688a1f309b7f6d5dc4cf45d..f94aee735bdef7930605cc0abad6249bceb2e599 100644 |
| --- a/net/quic/congestion_control/send_algorithm_simulator.h |
| +++ b/net/quic/congestion_control/send_algorithm_simulator.h |
| @@ -8,15 +8,20 @@ |
| #define NET_QUIC_CONGESTION_CONTROL_SEND_ALGORITHM_SIMULATOR_H_ |
| #include <algorithm> |
| +#include <string> |
| #include <vector> |
| #include "base/basictypes.h" |
| +#include "base/format_macros.h" |
| +#include "base/strings/stringprintf.h" |
| #include "net/quic/congestion_control/send_algorithm_interface.h" |
| #include "net/quic/quic_protocol.h" |
| #include "net/quic/quic_time.h" |
| #include "net/quic/test_tools/mock_clock.h" |
| #include "net/quic/test_tools/quic_test_utils.h" |
| +using base::StringPrintf; |
| + |
| namespace net { |
| class SendAlgorithmSimulator { |
| @@ -34,6 +39,15 @@ class SendAlgorithmSimulator { |
| last_cwnd = cwnd; |
| } |
| + std::string DebugString() { |
| + return StringPrintf("observed goodput(bytes/s):%" PRId64 " cwnd:%" PRIu64 |
| + " max_cwnd:%" PRIu64 " min_cwnd:%" PRIu64 |
| + " max_cwnd_drop:%" PRIu64, |
| + last_transfer_bandwidth.ToBytesPerSecond(), |
| + send_algorithm->GetCongestionWindow(), |
| + max_cwnd, min_cwnd, max_cwnd_drop); |
| + } |
|
Ryan Hamilton
2014/07/17 00:02:46
I suspect you'll need to move this to the .cc file
ramant (doing other things)
2014/07/18 18:02:25
I am surprised, not sure why compiler's didn't com
|
| + |
| SendAlgorithmInterface* send_algorithm; |
| RttStats* rtt_stats; |