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

Side by Side Diff: chrome/test/chromedriver/chrome/stub_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: Working implementation of emulating network conditions with chromedriver Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_STUB_WEB_VIEW_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_STUB_WEB_VIEW_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_STUB_WEB_VIEW_H_ 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_STUB_WEB_VIEW_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 Status DispatchKeyEvents(const std::list<KeyEvent>& events) override; 53 Status DispatchKeyEvents(const std::list<KeyEvent>& events) override;
54 Status GetCookies(scoped_ptr<base::ListValue>* cookies) override; 54 Status GetCookies(scoped_ptr<base::ListValue>* cookies) override;
55 Status DeleteCookie(const std::string& name, const std::string& url) override; 55 Status DeleteCookie(const std::string& name, const std::string& url) override;
56 Status WaitForPendingNavigations(const std::string& frame_id, 56 Status WaitForPendingNavigations(const std::string& frame_id,
57 const base::TimeDelta& timeout, 57 const base::TimeDelta& timeout,
58 bool stop_load_on_timeout) override; 58 bool stop_load_on_timeout) override;
59 Status IsPendingNavigation(const std::string& frame_id, 59 Status IsPendingNavigation(const std::string& frame_id,
60 bool* is_pending) override; 60 bool* is_pending) override;
61 JavaScriptDialogManager* GetJavaScriptDialogManager() override; 61 JavaScriptDialogManager* GetJavaScriptDialogManager() override;
62 Status OverrideGeolocation(const Geoposition& geoposition) override; 62 Status OverrideGeolocation(const Geoposition& geoposition) override;
63 Status OverrideNetworkConditions(
64 const NetworkConditions& network_conditions) override;
63 Status CaptureScreenshot(std::string* screenshot) override; 65 Status CaptureScreenshot(std::string* screenshot) override;
64 Status SetFileInputFiles(const std::string& frame, 66 Status SetFileInputFiles(const std::string& frame,
65 const base::DictionaryValue& element, 67 const base::DictionaryValue& element,
66 const std::vector<base::FilePath>& files) override; 68 const std::vector<base::FilePath>& files) override;
67 Status TakeHeapSnapshot(scoped_ptr<base::Value>* snapshot) override; 69 Status TakeHeapSnapshot(scoped_ptr<base::Value>* snapshot) override;
68 Status StartProfile() override; 70 Status StartProfile() override;
69 Status EndProfile(scoped_ptr<base::Value>* profile_data) override; 71 Status EndProfile(scoped_ptr<base::Value>* profile_data) override;
70 72
71 private: 73 private:
72 std::string id_; 74 std::string id_;
73 }; 75 };
74 76
75 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_STUB_WEB_VIEW_H_ 77 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_STUB_WEB_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698