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

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: Added field in ChromeDesktopImpl to store value of the user's connection type. 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..1c34fb35293d7a9af2c4412436807241d2dbaaeb 100644
--- a/chrome/test/chromedriver/chrome/chrome_desktop_impl.cc
+++ b/chrome/test/chromedriver/chrome/chrome_desktop_impl.cc
@@ -201,3 +201,11 @@ Status ChromeDesktopImpl::QuitImpl() {
const base::CommandLine& ChromeDesktopImpl::command() const {
return command_;
}
+
+int GetNetworkConnection() {
+ return network_connection_;
+}
+
+void SetNetworkConnection(const int& network_connection) {
+ network_connection_ = network_connection;
+ }
samuong 2016/06/27 21:31:53 nit: remove the space before the }
roisinmcl 2016/06/28 18:36:48 Done.

Powered by Google App Engine
This is Rietveld 408576698