OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "net/nqe/network_quality_estimator.h" | 5 #include "net/nqe/network_quality_estimator.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 const std::vector<base::TimeDelta>& GetAccuracyRecordingIntervals() | 144 const std::vector<base::TimeDelta>& GetAccuracyRecordingIntervals() |
145 const override; | 145 const override; |
146 | 146 |
147 void set_rand_double(double rand_double) { rand_double_ = rand_double; } | 147 void set_rand_double(double rand_double) { rand_double_ = rand_double; } |
148 | 148 |
149 double RandDouble() const override; | 149 double RandDouble() const override; |
150 | 150 |
151 using NetworkQualityEstimator::SetTickClockForTesting; | 151 using NetworkQualityEstimator::SetTickClockForTesting; |
152 using NetworkQualityEstimator::OnConnectionTypeChanged; | 152 using NetworkQualityEstimator::OnConnectionTypeChanged; |
153 using NetworkQualityEstimator::NetworkQualityStoreForTesting; | |
154 | 153 |
155 private: | 154 private: |
156 // NetworkQualityEstimator implementation that returns the overridden | 155 // NetworkQualityEstimator implementation that returns the overridden |
157 // network | 156 // network |
158 // id (instead of invoking platform APIs). | 157 // id (instead of invoking platform APIs). |
159 nqe::internal::NetworkID GetCurrentNetworkID() const override; | 158 nqe::internal::NetworkID GetCurrentNetworkID() const override; |
160 | 159 |
161 bool effective_connection_type_set_; | 160 bool effective_connection_type_set_; |
162 EffectiveConnectionType effective_connection_type_; | 161 EffectiveConnectionType effective_connection_type_; |
163 | 162 |
(...skipping 25 matching lines...) Expand all Loading... |
189 int32_t recent_downlink_throughput_kbps_; | 188 int32_t recent_downlink_throughput_kbps_; |
190 | 189 |
191 double rand_double_; | 190 double rand_double_; |
192 | 191 |
193 EmbeddedTestServer embedded_test_server_; | 192 EmbeddedTestServer embedded_test_server_; |
194 | 193 |
195 DISALLOW_COPY_AND_ASSIGN(TestNetworkQualityEstimator); | 194 DISALLOW_COPY_AND_ASSIGN(TestNetworkQualityEstimator); |
196 }; | 195 }; |
197 | 196 |
198 } // namespace net | 197 } // namespace net |
OLD | NEW |