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

Side by Side Diff: chrome/test/chromedriver/chrome/stub_web_view.cc

Issue 1669453002: [chromedriver] Apply page load timeout to slow cross-process navigations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pure virtual Created 4 years, 8 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 #include "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/values.h" 6 #include "base/values.h"
7 #include "chrome/test/chromedriver/chrome/status.h" 7 #include "chrome/test/chromedriver/chrome/status.h"
8 #include "chrome/test/chromedriver/chrome/stub_web_view.h" 8 #include "chrome/test/chromedriver/chrome/stub_web_view.h"
9 #include "chrome/test/chromedriver/chrome/ui_events.h" 9 #include "chrome/test/chromedriver/chrome/ui_events.h"
10 10
(...skipping 14 matching lines...) Expand all
25 } 25 }
26 26
27 Status StubWebView::HandleReceivedEvents() { 27 Status StubWebView::HandleReceivedEvents() {
28 return Status(kOk); 28 return Status(kOk);
29 } 29 }
30 30
31 Status StubWebView::GetUrl(std::string* url) { 31 Status StubWebView::GetUrl(std::string* url) {
32 return Status(kOk); 32 return Status(kOk);
33 } 33 }
34 34
35 Status StubWebView::Load(const std::string& url) { 35 Status StubWebView::Load(const std::string& url, const Timeout* timeout) {
36 return Status(kOk); 36 return Status(kOk);
37 } 37 }
38 38
39 Status StubWebView::Reload() { 39 Status StubWebView::Reload() {
40 return Status(kOk); 40 return Status(kOk);
41 } 41 }
42 42
43 Status StubWebView::TraverseHistory(int delta) { 43 Status StubWebView::TraverseHistory(int delta) {
44 return Status(kOk); 44 return Status(kOk);
45 } 45 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 Status StubWebView::GetCookies(std::unique_ptr<base::ListValue>* cookies) { 101 Status StubWebView::GetCookies(std::unique_ptr<base::ListValue>* cookies) {
102 return Status(kOk); 102 return Status(kOk);
103 } 103 }
104 104
105 Status StubWebView::DeleteCookie(const std::string& name, 105 Status StubWebView::DeleteCookie(const std::string& name,
106 const std::string& url) { 106 const std::string& url) {
107 return Status(kOk); 107 return Status(kOk);
108 } 108 }
109 109
110 Status StubWebView::WaitForPendingNavigations(const std::string& frame_id, 110 Status StubWebView::WaitForPendingNavigations(const std::string& frame_id,
111 const base::TimeDelta& timeout, 111 const Timeout& timeout,
112 bool stop_load_on_timeout) { 112 bool stop_load_on_timeout) {
113 return Status(kOk); 113 return Status(kOk);
114 } 114 }
115 115
116 Status StubWebView::IsPendingNavigation(const std::string& frame_id, 116 Status StubWebView::IsPendingNavigation(const std::string& frame_id,
117 const Timeout* timeout,
117 bool* is_pending) { 118 bool* is_pending) {
118 return Status(kOk); 119 return Status(kOk);
119 } 120 }
120 121
121 JavaScriptDialogManager* StubWebView::GetJavaScriptDialogManager() { 122 JavaScriptDialogManager* StubWebView::GetJavaScriptDialogManager() {
122 return NULL; 123 return NULL;
123 } 124 }
124 125
125 Status StubWebView::OverrideGeolocation(const Geoposition& geoposition) { 126 Status StubWebView::OverrideGeolocation(const Geoposition& geoposition) {
126 return Status(kOk); 127 return Status(kOk);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 Status StubWebView::SynthesizeScrollGesture(int x, 165 Status StubWebView::SynthesizeScrollGesture(int x,
165 int y, 166 int y,
166 int xoffset, 167 int xoffset,
167 int yoffset) { 168 int yoffset) {
168 return Status(kOk); 169 return Status(kOk);
169 } 170 }
170 171
171 Status StubWebView::SynthesizePinchGesture(int x, int y, double scale_factor) { 172 Status StubWebView::SynthesizePinchGesture(int x, int y, double scale_factor) {
172 return Status(kOk); 173 return Status(kOk);
173 } 174 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/chrome/stub_web_view.h ('k') | chrome/test/chromedriver/chrome/web_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698