| 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 void CallJSGC(); | 344 void CallJSGC(); |
| 345 | 345 |
| 346 void set_is_modal(bool value) { is_modal_ = value; } | 346 void set_is_modal(bool value) { is_modal_ = value; } |
| 347 bool is_modal() const { return is_modal_; } | 347 bool is_modal() const { return is_modal_; } |
| 348 | 348 |
| 349 const TestParams* test_params() { return test_params_; } | 349 const TestParams* test_params() { return test_params_; } |
| 350 void set_test_params(const TestParams* test_params) { | 350 void set_test_params(const TestParams* test_params) { |
| 351 test_params_ = test_params; | 351 test_params_ = test_params; |
| 352 } | 352 } |
| 353 | 353 |
| 354 const FilePath& file_system_root() const { | |
| 355 return file_system_root_.path(); | |
| 356 } | |
| 357 | |
| 358 #if defined(OS_MACOSX) | 354 #if defined(OS_MACOSX) |
| 359 // handle cleaning up a shell given the associated window | 355 // handle cleaning up a shell given the associated window |
| 360 static void DestroyAssociatedShell(gfx::NativeWindow handle); | 356 static void DestroyAssociatedShell(gfx::NativeWindow handle); |
| 361 #endif | 357 #endif |
| 362 | 358 |
| 363 // Show the "attach to me" dialog, for debugging test shell startup. | 359 // Show the "attach to me" dialog, for debugging test shell startup. |
| 364 static void ShowStartupDebuggingDialog(); | 360 static void ShowStartupDebuggingDialog(); |
| 365 | 361 |
| 366 // This is called indirectly by the network layer to access resources. | 362 // This is called indirectly by the network layer to access resources. |
| 367 static base::StringPiece NetResourceProvider(int key); | 363 static base::StringPiece NetResourceProvider(int key); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 scoped_ptr<TestWebViewDelegate> popup_delegate_; | 449 scoped_ptr<TestWebViewDelegate> popup_delegate_; |
| 454 | 450 |
| 455 base::WeakPtr<TestShell> devtools_shell_; | 451 base::WeakPtr<TestShell> devtools_shell_; |
| 456 scoped_ptr<TestShellDevToolsAgent> dev_tools_agent_; | 452 scoped_ptr<TestShellDevToolsAgent> dev_tools_agent_; |
| 457 scoped_ptr<TestShellDevToolsClient> dev_tools_client_; | 453 scoped_ptr<TestShellDevToolsClient> dev_tools_client_; |
| 458 scoped_ptr<WebKit::WebDeviceOrientationClientMock> | 454 scoped_ptr<WebKit::WebDeviceOrientationClientMock> |
| 459 device_orientation_client_mock_; | 455 device_orientation_client_mock_; |
| 460 scoped_ptr<WebKit::WebSpeechInputControllerMock> | 456 scoped_ptr<WebKit::WebSpeechInputControllerMock> |
| 461 speech_input_controller_mock_; | 457 speech_input_controller_mock_; |
| 462 | 458 |
| 463 // A temporary directory for FileSystem API. | |
| 464 ScopedTempDir file_system_root_; | |
| 465 | |
| 466 const TestParams* test_params_; | 459 const TestParams* test_params_; |
| 467 | 460 |
| 468 // True while a test is preparing to run | 461 // True while a test is preparing to run |
| 469 static bool test_is_preparing_; | 462 static bool test_is_preparing_; |
| 470 | 463 |
| 471 // True while a test is running | 464 // True while a test is running |
| 472 static bool test_is_pending_; | 465 static bool test_is_pending_; |
| 473 | 466 |
| 474 // Number of times to load each URL. | 467 // Number of times to load each URL. |
| 475 static int load_count_; | 468 static int load_count_; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 504 #if defined(OS_WIN) | 497 #if defined(OS_WIN) |
| 505 // Used by the watchdog to know when it's finished. | 498 // Used by the watchdog to know when it's finished. |
| 506 HANDLE finished_event_; | 499 HANDLE finished_event_; |
| 507 #endif | 500 #endif |
| 508 | 501 |
| 509 // Dump the stats table counters on exit. | 502 // Dump the stats table counters on exit. |
| 510 bool dump_stats_table_on_exit_; | 503 bool dump_stats_table_on_exit_; |
| 511 }; | 504 }; |
| 512 | 505 |
| 513 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ | 506 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ |
| OLD | NEW |