Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 WebSpeechInputControllerMock; | 70 class WebSpeechInputControllerMock; |
| 71 class WebSpeechInputListener; | 71 class WebSpeechInputListener; |
| 72 class WebGeolocationClientMock; | |
|
bulach
2010/12/07 11:18:42
sort order
| |
| 72 } | 73 } |
| 73 | 74 |
| 74 class TestShell : public base::SupportsWeakPtr<TestShell> { | 75 class TestShell : public base::SupportsWeakPtr<TestShell> { |
| 75 public: | 76 public: |
| 76 struct TestParams { | 77 struct TestParams { |
| 77 // Load the test defaults. | 78 // Load the test defaults. |
| 78 TestParams() : dump_tree(true), dump_pixels(false) { | 79 TestParams() : dump_tree(true), dump_pixels(false) { |
| 79 } | 80 } |
| 80 | 81 |
| 81 // The kind of output we want from this test. | 82 // The kind of output we want from this test. |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 365 TestShellDevToolsAgent* dev_tools_agent() { | 366 TestShellDevToolsAgent* dev_tools_agent() { |
| 366 return dev_tools_agent_.get(); | 367 return dev_tools_agent_.get(); |
| 367 } | 368 } |
| 368 | 369 |
| 369 WebKit::WebDeviceOrientationClientMock* device_orientation_client_mock(); | 370 WebKit::WebDeviceOrientationClientMock* device_orientation_client_mock(); |
| 370 | 371 |
| 371 WebKit::WebSpeechInputControllerMock* CreateSpeechInputControllerMock( | 372 WebKit::WebSpeechInputControllerMock* CreateSpeechInputControllerMock( |
| 372 WebKit::WebSpeechInputListener* listener); | 373 WebKit::WebSpeechInputListener* listener); |
| 373 WebKit::WebSpeechInputControllerMock* speech_input_controller_mock(); | 374 WebKit::WebSpeechInputControllerMock* speech_input_controller_mock(); |
| 374 | 375 |
| 376 #if defined(ENABLE_CLIENT_BASED_GEOLOCATION) | |
| 377 WebKit::WebGeolocationClientMock* geolocation_client_mock(); | |
| 378 #endif | |
| 379 | |
| 375 protected: | 380 protected: |
| 376 void CreateDevToolsClient(TestShellDevToolsAgent* agent); | 381 void CreateDevToolsClient(TestShellDevToolsAgent* agent); |
| 377 bool Initialize(const GURL& starting_url); | 382 bool Initialize(const GURL& starting_url); |
| 378 bool IsSVGTestURL(const GURL& url); | 383 bool IsSVGTestURL(const GURL& url); |
| 379 void SizeToSVG(); | 384 void SizeToSVG(); |
| 380 void SizeToDefault(); | 385 void SizeToDefault(); |
| 381 void SizeTo(int width, int height); | 386 void SizeTo(int width, int height); |
| 382 void ResizeSubViews(); | 387 void ResizeSubViews(); |
| 383 | 388 |
| 384 // Set the focus in interactive mode (pass through to relevant system call). | 389 // Set the focus in interactive mode (pass through to relevant system call). |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 449 scoped_ptr<TestWebViewDelegate> popup_delegate_; | 454 scoped_ptr<TestWebViewDelegate> popup_delegate_; |
| 450 | 455 |
| 451 base::WeakPtr<TestShell> devtools_shell_; | 456 base::WeakPtr<TestShell> devtools_shell_; |
| 452 scoped_ptr<TestShellDevToolsAgent> dev_tools_agent_; | 457 scoped_ptr<TestShellDevToolsAgent> dev_tools_agent_; |
| 453 scoped_ptr<TestShellDevToolsClient> dev_tools_client_; | 458 scoped_ptr<TestShellDevToolsClient> dev_tools_client_; |
| 454 scoped_ptr<WebKit::WebDeviceOrientationClientMock> | 459 scoped_ptr<WebKit::WebDeviceOrientationClientMock> |
| 455 device_orientation_client_mock_; | 460 device_orientation_client_mock_; |
| 456 scoped_ptr<WebKit::WebSpeechInputControllerMock> | 461 scoped_ptr<WebKit::WebSpeechInputControllerMock> |
| 457 speech_input_controller_mock_; | 462 speech_input_controller_mock_; |
| 458 | 463 |
| 464 #if defined(ENABLE_CLIENT_BASED_GEOLOCATION) | |
| 465 scoped_ptr<WebKit::WebGeolocationClientMock> geolocation_client_mock_; | |
| 466 #endif | |
| 459 const TestParams* test_params_; | 467 const TestParams* test_params_; |
| 460 | 468 |
| 461 // True while a test is preparing to run | 469 // True while a test is preparing to run |
| 462 static bool test_is_preparing_; | 470 static bool test_is_preparing_; |
| 463 | 471 |
| 464 // True while a test is running | 472 // True while a test is running |
| 465 static bool test_is_pending_; | 473 static bool test_is_pending_; |
| 466 | 474 |
| 467 // Number of times to load each URL. | 475 // Number of times to load each URL. |
| 468 static int load_count_; | 476 static int load_count_; |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 497 #if defined(OS_WIN) | 505 #if defined(OS_WIN) |
| 498 // Used by the watchdog to know when it's finished. | 506 // Used by the watchdog to know when it's finished. |
| 499 HANDLE finished_event_; | 507 HANDLE finished_event_; |
| 500 #endif | 508 #endif |
| 501 | 509 |
| 502 // Dump the stats table counters on exit. | 510 // Dump the stats table counters on exit. |
| 503 bool dump_stats_table_on_exit_; | 511 bool dump_stats_table_on_exit_; |
| 504 }; | 512 }; |
| 505 | 513 |
| 506 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ | 514 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ |
| OLD | NEW |