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

Side by Side Diff: webkit/tools/test_shell/test_shell.h

Issue 5744005: Revert rev 69137 due to incorrect change log. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 class TestShellDevToolsAgent; 60 class TestShellDevToolsAgent;
61 class TestShellDevToolsClient; 61 class TestShellDevToolsClient;
62 class TestWebViewDelegate; 62 class TestWebViewDelegate;
63 63
64 namespace base { 64 namespace base {
65 class StringPiece; 65 class StringPiece;
66 } 66 }
67 67
68 namespace WebKit { 68 namespace WebKit {
69 class WebDeviceOrientationClientMock; 69 class WebDeviceOrientationClientMock;
70 class WebGeolocationClientMock;
71 class WebSpeechInputControllerMock; 70 class WebSpeechInputControllerMock;
72 class WebSpeechInputListener; 71 class WebSpeechInputListener;
73 } 72 }
74 73
75 class TestShell : public base::SupportsWeakPtr<TestShell> { 74 class TestShell : public base::SupportsWeakPtr<TestShell> {
76 public: 75 public:
77 struct TestParams { 76 struct TestParams {
78 // Load the test defaults. 77 // Load the test defaults.
79 TestParams() : dump_tree(true), dump_pixels(false) { 78 TestParams() : dump_tree(true), dump_pixels(false) {
80 } 79 }
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 TestShellDevToolsAgent* dev_tools_agent() { 365 TestShellDevToolsAgent* dev_tools_agent() {
367 return dev_tools_agent_.get(); 366 return dev_tools_agent_.get();
368 } 367 }
369 368
370 WebKit::WebDeviceOrientationClientMock* device_orientation_client_mock(); 369 WebKit::WebDeviceOrientationClientMock* device_orientation_client_mock();
371 370
372 WebKit::WebSpeechInputControllerMock* CreateSpeechInputControllerMock( 371 WebKit::WebSpeechInputControllerMock* CreateSpeechInputControllerMock(
373 WebKit::WebSpeechInputListener* listener); 372 WebKit::WebSpeechInputListener* listener);
374 WebKit::WebSpeechInputControllerMock* speech_input_controller_mock(); 373 WebKit::WebSpeechInputControllerMock* speech_input_controller_mock();
375 374
376 #if defined(ENABLE_CLIENT_BASED_GEOLOCATION)
377 WebKit::WebGeolocationClientMock* geolocation_client_mock();
378 #endif
379
380 protected: 375 protected:
381 void CreateDevToolsClient(TestShellDevToolsAgent* agent); 376 void CreateDevToolsClient(TestShellDevToolsAgent* agent);
382 bool Initialize(const GURL& starting_url); 377 bool Initialize(const GURL& starting_url);
383 bool IsSVGTestURL(const GURL& url); 378 bool IsSVGTestURL(const GURL& url);
384 void SizeToSVG(); 379 void SizeToSVG();
385 void SizeToDefault(); 380 void SizeToDefault();
386 void SizeTo(int width, int height); 381 void SizeTo(int width, int height);
387 void ResizeSubViews(); 382 void ResizeSubViews();
388 383
389 // Set the focus in interactive mode (pass through to relevant system call). 384 // Set the focus in interactive mode (pass through to relevant system call).
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 scoped_ptr<TestWebViewDelegate> popup_delegate_; 449 scoped_ptr<TestWebViewDelegate> popup_delegate_;
455 450
456 base::WeakPtr<TestShell> devtools_shell_; 451 base::WeakPtr<TestShell> devtools_shell_;
457 scoped_ptr<TestShellDevToolsAgent> dev_tools_agent_; 452 scoped_ptr<TestShellDevToolsAgent> dev_tools_agent_;
458 scoped_ptr<TestShellDevToolsClient> dev_tools_client_; 453 scoped_ptr<TestShellDevToolsClient> dev_tools_client_;
459 scoped_ptr<WebKit::WebDeviceOrientationClientMock> 454 scoped_ptr<WebKit::WebDeviceOrientationClientMock>
460 device_orientation_client_mock_; 455 device_orientation_client_mock_;
461 scoped_ptr<WebKit::WebSpeechInputControllerMock> 456 scoped_ptr<WebKit::WebSpeechInputControllerMock>
462 speech_input_controller_mock_; 457 speech_input_controller_mock_;
463 458
464 #if defined(ENABLE_CLIENT_BASED_GEOLOCATION)
465 scoped_ptr<WebKit::WebGeolocationClientMock> geolocation_client_mock_;
466 #endif
467 const TestParams* test_params_; 459 const TestParams* test_params_;
468 460
469 // True while a test is preparing to run 461 // True while a test is preparing to run
470 static bool test_is_preparing_; 462 static bool test_is_preparing_;
471 463
472 // True while a test is running 464 // True while a test is running
473 static bool test_is_pending_; 465 static bool test_is_pending_;
474 466
475 // Number of times to load each URL. 467 // Number of times to load each URL.
476 static int load_count_; 468 static int load_count_;
(...skipping 28 matching lines...) Expand all
505 #if defined(OS_WIN) 497 #if defined(OS_WIN)
506 // Used by the watchdog to know when it's finished. 498 // Used by the watchdog to know when it's finished.
507 HANDLE finished_event_; 499 HANDLE finished_event_;
508 #endif 500 #endif
509 501
510 // Dump the stats table counters on exit. 502 // Dump the stats table counters on exit.
511 bool dump_stats_table_on_exit_; 503 bool dump_stats_table_on_exit_;
512 }; 504 };
513 505
514 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 506 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/layout_test_controller.cc ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698