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

Side by Side Diff: components/test_runner/renderer/web_test_proxy.h

Issue 1167703002: Move test runner to a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 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 COMPONENTS_TEST_RUNNER_RENDERER_WEB_TEST_PROXY_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 6 #define COMPONENTS_TEST_RUNNER_RENDERER_WEB_TEST_PROXY_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "content/shell/renderer/test_runner/web_task.h" 15 #include "components/test_runner/renderer/web_task.h"
16 #include "third_party/WebKit/public/platform/WebImage.h" 16 #include "third_party/WebKit/public/platform/WebImage.h"
17 #include "third_party/WebKit/public/platform/WebRect.h" 17 #include "third_party/WebKit/public/platform/WebRect.h"
18 #include "third_party/WebKit/public/platform/WebScreenInfo.h" 18 #include "third_party/WebKit/public/platform/WebScreenInfo.h"
19 #include "third_party/WebKit/public/platform/WebURLError.h" 19 #include "third_party/WebKit/public/platform/WebURLError.h"
20 #include "third_party/WebKit/public/platform/WebURLRequest.h" 20 #include "third_party/WebKit/public/platform/WebURLRequest.h"
21 #include "third_party/WebKit/public/web/WebAXEnums.h" 21 #include "third_party/WebKit/public/web/WebAXEnums.h"
22 #include "third_party/WebKit/public/web/WebDOMMessageEvent.h" 22 #include "third_party/WebKit/public/web/WebDOMMessageEvent.h"
23 #include "third_party/WebKit/public/web/WebDataSource.h" 23 #include "third_party/WebKit/public/web/WebDataSource.h"
24 #include "third_party/WebKit/public/web/WebDragOperation.h" 24 #include "third_party/WebKit/public/web/WebDragOperation.h"
25 #include "third_party/WebKit/public/web/WebFrame.h" 25 #include "third_party/WebKit/public/web/WebFrame.h"
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 return WebTestProxyBase::RunFileChooser(params, completion); 370 return WebTestProxyBase::RunFileChooser(params, completion);
371 } 371 }
372 virtual void showValidationMessage(const blink::WebRect& anchor_in_root_view, 372 virtual void showValidationMessage(const blink::WebRect& anchor_in_root_view,
373 const blink::WebString& main_message, 373 const blink::WebString& main_message,
374 blink::WebTextDirection main_message_hint, 374 blink::WebTextDirection main_message_hint,
375 const blink::WebString& sub_message, 375 const blink::WebString& sub_message,
376 blink::WebTextDirection sub_message_hint) { 376 blink::WebTextDirection sub_message_hint) {
377 base::string16 wrapped_main_text = main_message; 377 base::string16 wrapped_main_text = main_message;
378 base::string16 wrapped_sub_text = sub_message; 378 base::string16 wrapped_sub_text = sub_message;
379 379
380 Base::SetValidationMessageDirection( 380 Base::SetValidationMessageDirection(&wrapped_main_text, main_message_hint,
381 &wrapped_main_text, main_message_hint, &wrapped_sub_text, sub_message_hi nt); 381 &wrapped_sub_text, sub_message_hint);
382 382
383 WebTestProxyBase::ShowValidationMessage( 383 WebTestProxyBase::ShowValidationMessage(
384 wrapped_main_text, wrapped_sub_text); 384 wrapped_main_text, wrapped_sub_text);
385 } 385 }
386 virtual void postSpellCheckEvent(const blink::WebString& event_name) { 386 virtual void postSpellCheckEvent(const blink::WebString& event_name) {
387 WebTestProxyBase::PostSpellCheckEvent(event_name); 387 WebTestProxyBase::PostSpellCheckEvent(event_name);
388 } 388 }
389 virtual blink::WebString acceptLanguages() { 389 virtual blink::WebString acceptLanguages() {
390 return WebTestProxyBase::acceptLanguages(); 390 return WebTestProxyBase::acceptLanguages();
391 } 391 }
392 392
393 private: 393 private:
394 virtual ~WebTestProxy() {} 394 virtual ~WebTestProxy() {}
395 395
396 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); 396 DISALLOW_COPY_AND_ASSIGN(WebTestProxy);
397 }; 397 };
398 398
399 } // namespace content 399 } // namespace content
400 400
401 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEB_TEST_PROXY_H_ 401 #endif // COMPONENTS_TEST_RUNNER_RENDERER_WEB_TEST_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698