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

Side by Side Diff: chrome/test/chromedriver/chrome/network_conditions.h

Issue 1004843002: [chromedriver] Add Network Presets to Network Throttling feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 years, 9 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/chromedriver/chrome/network_conditions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/chromedriver/chrome/network_conditions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698