| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 CHROME_TEST_CHROMEDRIVER_CHROME_NETWORK_CONDITIONS_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_NETWORK_CONDITIONS_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_NETWORK_CONDITIONS_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_NETWORK_CONDITIONS_H_ |
| 7 | 7 |
| 8 #include <string> |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 |
| 11 class Status; |
| 12 |
| 8 struct NetworkConditions { | 13 struct NetworkConditions { |
| 14 NetworkConditions(); |
| 15 NetworkConditions(bool offline, double latency, |
| 16 double download_throughput, double upload_throughput); |
| 17 ~NetworkConditions(); |
| 9 bool offline; | 18 bool offline; |
| 10 double latency; | 19 double latency; |
| 11 double download_throughput; | 20 double download_throughput; |
| 12 double upload_throughput; | 21 double upload_throughput; |
| 13 }; | 22 }; |
| 14 | 23 |
| 24 Status FindPresetNetwork( |
| 25 std::string network_name, |
| 26 NetworkConditions* network_conditions); |
| 27 |
| 15 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_NETWORK_CONDITIONS_H_ | 28 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_NETWORK_CONDITIONS_H_ |
| OLD | NEW |