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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/chrome/network_conditions.h
diff --git a/chrome/test/chromedriver/chrome/network_conditions.h b/chrome/test/chromedriver/chrome/network_conditions.h
index 223365508b1c8a8b0b8b4a39b993503e6a7d5bc8..d4f8f2e823afd4fec120bc71be404a9c348bebfd 100644
--- a/chrome/test/chromedriver/chrome/network_conditions.h
+++ b/chrome/test/chromedriver/chrome/network_conditions.h
@@ -5,11 +5,24 @@
#ifndef CHROME_TEST_CHROMEDRIVER_CHROME_NETWORK_CONDITIONS_H_
#define CHROME_TEST_CHROMEDRIVER_CHROME_NETWORK_CONDITIONS_H_
+#include <string>
+#include "base/memory/scoped_ptr.h"
+
+class Status;
+
struct NetworkConditions {
+ NetworkConditions();
+ NetworkConditions(bool offline, double latency,
+ double download_throughput, double upload_throughput);
+ ~NetworkConditions();
bool offline;
double latency;
double download_throughput;
double upload_throughput;
};
+Status FindPresetNetwork(
+ std::string network_name,
+ NetworkConditions* network_conditions);
+
#endif // CHROME_TEST_CHROMEDRIVER_CHROME_NETWORK_CONDITIONS_H_
« 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