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

Unified Diff: chrome/test/chromedriver/chrome/web_view.h

Issue 883083002: [chromedriver] Add Network Conditions Override Manager and tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix warning 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/stub_web_view.cc ('k') | chrome/test/chromedriver/chrome/web_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/chrome/web_view.h
diff --git a/chrome/test/chromedriver/chrome/web_view.h b/chrome/test/chromedriver/chrome/web_view.h
index 718900ee5a8f1ad4ef685766485cf4ae2547658d..47c0cca78a14f54889e22451b371eeedfd55ec44 100644
--- a/chrome/test/chromedriver/chrome/web_view.h
+++ b/chrome/test/chromedriver/chrome/web_view.h
@@ -24,6 +24,7 @@ struct Geoposition;
class JavaScriptDialogManager;
struct KeyEvent;
struct MouseEvent;
+struct NetworkConditions;
struct TouchEvent;
class Status;
@@ -144,6 +145,10 @@ class WebView {
// Overrides normal geolocation with a given geoposition.
virtual Status OverrideGeolocation(const Geoposition& geoposition) = 0;
+ // Overrides normal network conditions with given conditions.
+ virtual Status OverrideNetworkConditions(
+ const NetworkConditions& network_conditions) = 0;
+
// Captures the visible portions of the web view as a base64-encoded PNG.
virtual Status CaptureScreenshot(std::string* screenshot) = 0;
« no previous file with comments | « chrome/test/chromedriver/chrome/stub_web_view.cc ('k') | chrome/test/chromedriver/chrome/web_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698