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

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

Issue 883083002: [chromedriver] Add Network Conditions Override Manager and tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix warning Created 5 years, 9 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 114 }
115 115
116 JavaScriptDialogManager* StubWebView::GetJavaScriptDialogManager() { 116 JavaScriptDialogManager* StubWebView::GetJavaScriptDialogManager() {
117 return NULL; 117 return NULL;
118 } 118 }
119 119
120 Status StubWebView::OverrideGeolocation(const Geoposition& geoposition) { 120 Status StubWebView::OverrideGeolocation(const Geoposition& geoposition) {
121 return Status(kOk); 121 return Status(kOk);
122 } 122 }
123 123
124 Status StubWebView::OverrideNetworkConditions(
125 const NetworkConditions& network_conditions) {
126 return Status(kOk);
127 }
128
124 Status StubWebView::CaptureScreenshot(std::string* screenshot) { 129 Status StubWebView::CaptureScreenshot(std::string* screenshot) {
125 return Status(kOk); 130 return Status(kOk);
126 } 131 }
127 132
128 Status StubWebView::SetFileInputFiles( 133 Status StubWebView::SetFileInputFiles(
129 const std::string& frame, 134 const std::string& frame,
130 const base::DictionaryValue& element, 135 const base::DictionaryValue& element,
131 const std::vector<base::FilePath>& files) { 136 const std::vector<base::FilePath>& files) {
132 return Status(kOk); 137 return Status(kOk);
133 } 138 }
134 139
135 Status StubWebView::TakeHeapSnapshot(scoped_ptr<base::Value>* snapshot) { 140 Status StubWebView::TakeHeapSnapshot(scoped_ptr<base::Value>* snapshot) {
136 return Status(kOk); 141 return Status(kOk);
137 } 142 }
138 143
139 Status StubWebView::StartProfile() { 144 Status StubWebView::StartProfile() {
140 return Status(kOk); 145 return Status(kOk);
141 } 146 }
142 147
143 Status StubWebView::EndProfile(scoped_ptr<base::Value>* profile_data) { 148 Status StubWebView::EndProfile(scoped_ptr<base::Value>* profile_data) {
144 return Status(kOk); 149 return Status(kOk);
145 } 150 }
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