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

Unified Diff: chrome/test/chromedriver/chrome/network_list.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/chromedriver/chrome/network_list.h ('k') | chrome/test/chromedriver/client/chromedriver.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/chrome/network_list.cc
diff --git a/chrome/test/chromedriver/chrome/network_list.cc b/chrome/test/chromedriver/chrome/network_list.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4908730c06ad1908c38264972e3d82f2a7ad5523
--- /dev/null
+++ b/chrome/test/chromedriver/chrome/network_list.cc
@@ -0,0 +1,25 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file was generated at (2015-03-12 15:00:42.307998) by running:
+// chrome/test/chromedriver/embed_networks_in_cpp.py --directory
+// chrome/test/chromedriver/chrome/
+// third_party/WebKit/Source/devtools/front_end/toolbox/OverridesUI.js
+
+#include "chrome/test/chromedriver/chrome/network_list.h"
+
+const char kNetworks[] =
+ "[{\"id\": \"offline\", \"title\": \"Offline\", \"throughput\": 0, "
+ "\"latency\": 0},{\"id\": \"gprs\", \"title\": \"GPRS\", \"throughput\": "
+ "50, \"latency\": 500},{\"id\": \"edge\", \"title\": \"Regular 2G\", "
+ "\"throughput\": 250, \"latency\": 300},{\"id\": \"2g+\", \"title\": "
+ "\"Good 2G\", \"throughput\": 450, \"latency\": 150},{\"id\": \"3g\", "
+ "\"title\": \"Regular 3G\", \"throughput\": 750, \"latency\": "
+ "100},{\"id\": \"3g+\", \"title\": \"Good 3G\", \"throughput\": 1536.0, "
+ "\"latency\": 40},{\"id\": \"4g\", \"title\": \"Regular 4G\", "
+ "\"throughput\": 4096.0, \"latency\": 20},{\"id\": \"dsl\", \"title\": "
+ "\"DSL\", \"throughput\": 2048.0, \"latency\": 5},{\"id\": \"wifi\", "
+ "\"title\": \"WiFi\", \"throughput\": 30720.0, \"latency\": 2},{\"id\": "
+ "\"online\", \"title\": \"No throttling\", \"throughput\": -1, "
+ "\"latency\": 0}]";
« no previous file with comments | « chrome/test/chromedriver/chrome/network_list.h ('k') | chrome/test/chromedriver/client/chromedriver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698