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

Side by Side Diff: content/shell/renderer/test_runner/web_test_proxy.h

Issue 550343002: Give the layout test harness better information to determine when to finish. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « build/common.gypi ('k') | content/shell/renderer/test_runner/web_test_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 blink::WebSecurityOrigin target, 237 blink::WebSecurityOrigin target,
238 blink::WebDOMMessageEvent event); 238 blink::WebDOMMessageEvent event);
239 void ResetInputMethod(); 239 void ResetInputMethod();
240 240
241 blink::WebString acceptLanguages(); 241 blink::WebString acceptLanguages();
242 blink::WebPushClient* GetWebPushClient(); 242 blink::WebPushClient* GetWebPushClient();
243 243
244 private: 244 private:
245 template <class, typename, typename> 245 template <class, typename, typename>
246 friend class WebFrameTestProxy; 246 friend class WebFrameTestProxy;
247 void LocationChangeDone(blink::WebFrame* frame); 247
248 enum CheckDoneReason {
249 LoadFinished,
250 MainResourceLoadFailed,
251 ResourceLoadCompleted
252 };
253 void CheckDone(blink::WebLocalFrame* frame, CheckDoneReason reason);
248 void AnimateNow(); 254 void AnimateNow();
249 void DrawSelectionRect(SkCanvas* canvas); 255 void DrawSelectionRect(SkCanvas* canvas);
250 void DidDisplayAsync(const base::Closure& callback, const SkBitmap& bitmap); 256 void DidDisplayAsync(const base::Closure& callback, const SkBitmap& bitmap);
251 257
252 blink::WebWidget* web_widget() const { return web_widget_; } 258 blink::WebWidget* web_widget() const { return web_widget_; }
253 259
254 TestInterfaces* test_interfaces_; 260 TestInterfaces* test_interfaces_;
255 WebTestDelegate* delegate_; 261 WebTestDelegate* delegate_;
256 blink::WebWidget* web_widget_; 262 blink::WebWidget* web_widget_;
257 263
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 return WebTestProxyBase::GetWebPushClient(); 399 return WebTestProxyBase::GetWebPushClient();
394 } 400 }
395 401
396 private: 402 private:
397 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); 403 DISALLOW_COPY_AND_ASSIGN(WebTestProxy);
398 }; 404 };
399 405
400 } // namespace content 406 } // namespace content
401 407
402 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 408 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | content/shell/renderer/test_runner/web_test_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698