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

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

Issue 2065733002: Add a method to override the network conditions of the ChromeDriver session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed web_view loop in SetNetworkConnection. Fixed function names in ChromeDesktopImpl. Created 4 years, 6 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
Index: chrome/test/chromedriver/chrome/chrome_desktop_impl.cc
diff --git a/chrome/test/chromedriver/chrome/chrome_desktop_impl.cc b/chrome/test/chromedriver/chrome/chrome_desktop_impl.cc
index 30ab4213fba69ec2234e1035e1c0dfc75b7be6f8..296524adf47703efa3ff18923445df321cfb1b2f 100644
--- a/chrome/test/chromedriver/chrome/chrome_desktop_impl.cc
+++ b/chrome/test/chromedriver/chrome/chrome_desktop_impl.cc
@@ -201,3 +201,12 @@ Status ChromeDesktopImpl::QuitImpl() {
const base::CommandLine& ChromeDesktopImpl::command() const {
return command_;
}
+
+int ChromeDesktopImpl::GetNetworkConnectionValue() const {
samuong 2016/06/28 23:23:40 nit: remove "Value" suffix If you feel "GetNetwor
roisinmcl 2016/06/29 17:55:13 Done.
+ return network_connection_;
+}
+
+void ChromeDesktopImpl::SetNetworkConnectionValue(
samuong 2016/06/28 23:23:40 nit: remove "Value" suffix
roisinmcl 2016/06/29 17:55:13 Done.
+ const int& network_connection) {
+ network_connection_ = network_connection;
+}

Powered by Google App Engine
This is Rietveld 408576698