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

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

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.h
diff --git a/chrome/test/chromedriver/chrome/chrome_desktop_impl.h b/chrome/test/chromedriver/chrome/chrome_desktop_impl.h
index 9b121186480604de597edd4079b96d62e6ffb8b3..ffcda6ce9cd581fd4acfb4b9527f45bc483c1a40 100644
--- a/chrome/test/chromedriver/chrome/chrome_desktop_impl.h
+++ b/chrome/test/chromedriver/chrome/chrome_desktop_impl.h
@@ -57,11 +57,15 @@ class ChromeDesktopImpl : public ChromeImpl {
const base::CommandLine& command() const;
+ int GetNetworkConnection();
samuong 2016/06/27 21:31:53 you can make this a const function
roisinmcl 2016/06/28 18:36:48 Done.
+ void SetNetworkConnection(const int& network_connection);
+
private:
base::Process process_;
base::CommandLine command_;
base::ScopedTempDir user_data_dir_;
base::ScopedTempDir extension_dir_;
+ int network_connection_;
// Lazily initialized, may be null.
std::unique_ptr<AutomationExtension> automation_extension_;

Powered by Google App Engine
This is Rietveld 408576698