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

Side by Side Diff: webkit/mocks/mock_webframe.cc

Issue 6462015: Cleanup more test code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wtf windows is this me Created 9 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 | Annotate | Revision Log
« no previous file with comments | « webkit/mocks/mock_webframe.h ('k') | webkit/mocks/mock_weburlloader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "webkit/mocks/mock_webframe.h"
6
7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h"
8
9 namespace webkit_glue {
10
11 MockWebFrame::MockWebFrame() {}
12
13 MockWebFrame::~MockWebFrame() {}
14
15 WebString MockWebFrame::name() const {
16 return WebString();
17 }
18
19 void MockWebFrame::setName(const WebString&) {}
20
21 long long MockWebFrame::identifier() const {
22 return 0;
23 }
24
25 WebURL MockWebFrame::url() const {
26 return WebURL();
27 }
28
29 WebURL MockWebFrame::favIconURL() const {
30 return WebURL();
31 }
32
33 WebURL MockWebFrame::openSearchDescriptionURL() const {
34 return WebURL();
35 }
36
37 WebString MockWebFrame::encoding() const {
38 return WebString();
39 }
40
41 void MockWebFrame::setCanHaveScrollbars(bool) {}
42
43 WebSize MockWebFrame::scrollOffset() const {
44 return WebSize(0,0);
45 }
46
47 WebSize MockWebFrame::contentsSize() const {
48 return WebSize();
49 }
50
51 int MockWebFrame::contentsPreferredWidth() const {
52 return 0;
53 }
54
55 int MockWebFrame::documentElementScrollHeight() const {
56 return 0;
57 }
58
59 bool MockWebFrame::hasVisibleContent() const {
60 return false;
61 }
62
63 WebView* MockWebFrame::view() const {
64 return NULL;
65 }
66
67 WebFrame* MockWebFrame::opener() const {
68 return NULL;
69 }
70
71 WebFrame* MockWebFrame::parent() const {
72 return NULL;
73 }
74
75 WebFrame* MockWebFrame::top() const {
76 return NULL;
77 }
78
79 WebFrame* MockWebFrame::firstChild() const {
80 return NULL;
81 }
82
83 WebFrame* MockWebFrame::lastChild() const {
84 return NULL;
85 }
86
87 WebFrame* MockWebFrame::nextSibling() const {
88 return NULL;
89 }
90
91 WebFrame* MockWebFrame::previousSibling() const {
92 return NULL;
93 }
94
95 WebFrame* MockWebFrame::traverseNext(bool wrap) const {
96 return NULL;
97 }
98
99 WebFrame* MockWebFrame::traversePrevious(bool wrap) const {
100 return NULL;
101 }
102
103 WebFrame* MockWebFrame::findChildByName(const WebString& name) const {
104 return NULL;
105 }
106
107 WebFrame* MockWebFrame::findChildByExpression(const WebString& xpath) const {
108 return NULL;
109 }
110
111 WebDocument MockWebFrame::document() const {
112 return WebDocument();
113 }
114
115 void MockWebFrame::forms(WebVector<WebFormElement>&) const {}
116
117 WebAnimationController* MockWebFrame::animationController() {
118 return NULL;
119 }
120
121 WebPerformance MockWebFrame::performance() const {
122 return WebPerformance();
123 }
124
125 WebSecurityOrigin MockWebFrame::securityOrigin() const {
126 return WebSecurityOrigin();
127 }
128
129 void MockWebFrame::grantUniversalAccess() {}
130
131 NPObject* MockWebFrame::windowObject() const {
132 return NULL;
133 }
134
135 void MockWebFrame::bindToWindowObject(const WebString& name, NPObject*) {}
136
137 void MockWebFrame::executeScript(const WebScriptSource&) {}
138
139 void MockWebFrame::executeScriptInIsolatedWorld(
140 int worldId, const WebScriptSource* sources, unsigned numSources,
141 int extensionGroup) {}
142
143 void MockWebFrame::addMessageToConsole(const WebConsoleMessage&) {}
144
145 void MockWebFrame::collectGarbage() {}
146
147 #if WEBKIT_USING_V8
148 v8::Handle<v8::Value> MockWebFrame::executeScriptAndReturnValue(
149 const WebScriptSource&) {
150 return v8::Handle<v8::Value>();
151 }
152
153 v8::Local<v8::Context> MockWebFrame::mainWorldScriptContext() const {
154 return v8::Local<v8::Context>();
155 }
156 #endif
157
158
159 bool MockWebFrame::insertStyleText(const WebString& styleText,
160 const WebString& elementId) {
161 return false;
162 }
163
164 void MockWebFrame::reload(bool ignoreCache) {}
165
166 void MockWebFrame::loadRequest(const WebURLRequest&) {}
167
168 void MockWebFrame::loadHistoryItem(const WebHistoryItem&) {}
169
170 void MockWebFrame::loadData(const WebData& data,
171 const WebString& mimeType,
172 const WebString& textEncoding,
173 const WebURL& baseURL,
174 const WebURL& unreachableURL,
175 bool replace) {}
176
177 void MockWebFrame::loadHTMLString(const WebData& html,
178 const WebURL& baseURL,
179 const WebURL& unreachableURL,
180 bool replace) {}
181
182 bool MockWebFrame::isLoading() const {
183 return false;
184 }
185
186 void MockWebFrame::stopLoading() {}
187
188 WebKit::WebDataSource* MockWebFrame::provisionalDataSource() const {
189 return NULL;
190 }
191
192 WebKit::WebDataSource* MockWebFrame::dataSource() const {
193 return NULL;
194 }
195
196 WebHistoryItem MockWebFrame::previousHistoryItem() const {
197 return WebHistoryItem();
198 }
199
200 WebHistoryItem MockWebFrame::currentHistoryItem() const {
201 return WebHistoryItem();
202 }
203
204 void MockWebFrame::enableViewSourceMode(bool) {}
205
206 bool MockWebFrame::isViewSourceModeEnabled() const {
207 return false;
208 }
209
210 WebURLLoader* MockWebFrame::createAssociatedURLLoader() {
211 return NULL;
212 }
213
214 void MockWebFrame::commitDocumentData(const char* data, size_t length) {}
215
216 unsigned MockWebFrame::unloadListenerCount() const {
217 return 0;
218 }
219
220 bool MockWebFrame::isProcessingUserGesture() const {
221 return false;
222 }
223
224 bool MockWebFrame::willSuppressOpenerInNewFrame() const {
225 return false;
226 }
227
228 void MockWebFrame::replaceSelection(const WebString& text) {}
229
230 void MockWebFrame::insertText(const WebString& text) {}
231
232 void MockWebFrame::setMarkedText(const WebString& text,
233 unsigned location,
234 unsigned length) {}
235
236 void MockWebFrame::unmarkText() {}
237
238 bool MockWebFrame::hasMarkedText() const {
239 return false;
240 }
241
242 WebRange MockWebFrame::markedRange() const {
243 return WebRange();
244 }
245
246 bool MockWebFrame::firstRectForCharacterRange(unsigned location,
247 unsigned length,
248 WebRect&) const {
249 return false;
250 }
251
252 bool MockWebFrame::executeCommand(const WebString&) {
253 return false;
254 }
255
256 bool MockWebFrame::executeCommand(const WebString&, const WebString& value) {
257 return false;
258 }
259
260 bool MockWebFrame::isCommandEnabled(const WebString&) const {
261 return false;
262 }
263
264 void MockWebFrame::enableContinuousSpellChecking(bool) {}
265
266 bool MockWebFrame::isContinuousSpellCheckingEnabled() const {
267 return false;
268 }
269
270 bool MockWebFrame::hasSelection() const {
271 return false;
272 }
273
274 WebRange MockWebFrame::selectionRange() const {
275 return WebRange();
276 }
277
278 WebString MockWebFrame::selectionAsText() const {
279 return WebString();
280 }
281
282 WebString MockWebFrame::selectionAsMarkup() const {
283 return WebString();
284 }
285
286 bool MockWebFrame::selectWordAroundCaret() {
287 return false;
288 }
289
290 int MockWebFrame::printBegin(const WebSize& pageSize,
291 const WebNode& constrainToNode,
292 int printerDPI,
293 bool* useBrowserOverlays) {
294 return 0;
295 }
296
297 float MockWebFrame::getPrintPageShrink(int page) {
298 return 0;
299 }
300
301 float MockWebFrame::printPage(int pageToPrint, WebCanvas*) {
302 return 0;
303 }
304
305 void MockWebFrame::printEnd() {}
306
307 bool MockWebFrame::isPageBoxVisible(int pageIndex) {
308 return false;
309 }
310
311 void MockWebFrame::pageSizeAndMarginsInPixels(int pageIndex,
312 WebSize& pageSize,
313 int& marginTop,
314 int& marginRight,
315 int& marginBottom,
316 int& marginLeft) {}
317
318 bool MockWebFrame::find(int identifier,
319 const WebString& searchText,
320 const WebFindOptions& options,
321 bool wrapWithinFrame,
322 WebRect* selectionRect) {
323 return false;
324 }
325
326 void MockWebFrame::stopFinding(bool clearSelection) {}
327
328 void MockWebFrame::scopeStringMatches(int identifier,
329 const WebString& searchText,
330 const WebFindOptions& options,
331 bool reset) {}
332
333 void MockWebFrame::cancelPendingScopingEffort() {}
334
335 void MockWebFrame::increaseMatchCount(int count, int identifier) {}
336
337 void MockWebFrame::resetMatchCount() {}
338
339 bool MockWebFrame::registerPasswordListener(
340 WebInputElement,
341 WebPasswordAutocompleteListener*) {
342 return false;
343 }
344
345 void MockWebFrame::notifiyPasswordListenerOfAutocomplete(
346 const WebInputElement&) {}
347
348 WebString MockWebFrame::contentAsText(size_t maxChars) const {
349 return WebString();
350 }
351
352 WebString MockWebFrame::contentAsMarkup() const {
353 return WebString();
354 }
355
356 WebString MockWebFrame::renderTreeAsText() const {
357 return WebString();
358 }
359
360 WebString MockWebFrame::counterValueForElementById(const WebString& id) const {
361 return WebString();
362 }
363
364 WebString MockWebFrame::markerTextForListItem(const WebElement&) const {
365 return WebString();
366 }
367
368 int MockWebFrame::pageNumberForElementById(const WebString& id,
369 float pageWidthInPixels,
370 float pageHeightInPixels) const {
371 return 0;
372 }
373
374 WebRect MockWebFrame::selectionBoundsRect() const {
375 return WebRect();
376 }
377
378 bool MockWebFrame::selectionStartHasSpellingMarkerFor(int from,
379 int length) const {
380 return false;
381 }
382
383 bool MockWebFrame::pauseSVGAnimation(const WebString& animationId,
384 double time,
385 const WebString& elementId) {
386 return false;
387 }
388
389 WebString MockWebFrame::layerTreeAsText() const {
390 return WebString();
391 }
392
393 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/mocks/mock_webframe.h ('k') | webkit/mocks/mock_weburlloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698