OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |