OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "base/test/test_timeouts.h" | 9 #include "base/test/test_timeouts.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/debugger/devtools_window.h" | 11 #include "chrome/browser/debugger/devtools_window.h" |
12 #include "chrome/browser/extensions/extension_host.h" | 12 #include "chrome/browser/extensions/extension_host.h" |
13 #include "chrome/browser/extensions/extension_service.h" | 13 #include "chrome/browser/extensions/extension_service.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.h" |
17 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
18 #include "chrome/test/base/in_process_browser_test.h" | 18 #include "chrome/test/base/in_process_browser_test.h" |
19 #include "chrome/test/base/ui_test_utils.h" | 19 #include "chrome/test/base/ui_test_utils.h" |
20 #include "content/browser/content_browser_client.h" | |
21 #include "content/browser/debugger/devtools_client_host.h" | 20 #include "content/browser/debugger/devtools_client_host.h" |
22 #include "content/browser/debugger/devtools_manager.h" | 21 #include "content/browser/debugger/devtools_manager.h" |
23 #include "content/browser/debugger/worker_devtools_manager.h" | 22 #include "content/browser/debugger/worker_devtools_manager.h" |
24 #include "content/browser/renderer_host/render_view_host.h" | 23 #include "content/browser/renderer_host/render_view_host.h" |
25 #include "content/browser/tab_contents/tab_contents.h" | 24 #include "content/browser/tab_contents/tab_contents.h" |
26 #include "content/browser/worker_host/worker_process_host.h" | 25 #include "content/browser/worker_host/worker_process_host.h" |
27 #include "content/browser/worker_host/worker_service.h" | 26 #include "content/browser/worker_host/worker_service.h" |
28 #include "content/browser/worker_host/worker_service_observer.h" | 27 #include "content/browser/worker_host/worker_service_observer.h" |
29 #include "content/common/notification_registrar.h" | 28 #include "content/common/notification_registrar.h" |
30 #include "content/common/notification_service.h" | 29 #include "content/common/notification_service.h" |
31 #include "content/common/worker_messages.h" | 30 #include "content/common/worker_messages.h" |
| 31 #include "content/public/browser/content_browser_client.h" |
32 #include "net/test/test_server.h" | 32 #include "net/test/test_server.h" |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
36 // Used to block until a dev tools client window's browser is closed. | 36 // Used to block until a dev tools client window's browser is closed. |
37 class BrowserClosedObserver : public NotificationObserver { | 37 class BrowserClosedObserver : public NotificationObserver { |
38 public: | 38 public: |
39 explicit BrowserClosedObserver(Browser* browser) { | 39 explicit BrowserClosedObserver(Browser* browser) { |
40 registrar_.Add(this, chrome::NOTIFICATION_BROWSER_CLOSED, | 40 registrar_.Add(this, chrome::NOTIFICATION_BROWSER_CLOSED, |
41 Source<Browser>(browser)); | 41 Source<Browser>(browser)); |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 | 540 |
541 // Reload page to restart the worker. | 541 // Reload page to restart the worker. |
542 ui_test_utils::NavigateToURL(browser(), url); | 542 ui_test_utils::NavigateToURL(browser(), url); |
543 | 543 |
544 // Wait until worker script is paused on the debugger statement. | 544 // Wait until worker script is paused on the debugger statement. |
545 RunTestFuntion(window_, "testPauseInSharedWorkerInitialization"); | 545 RunTestFuntion(window_, "testPauseInSharedWorkerInitialization"); |
546 CloseDevToolsWindow(); | 546 CloseDevToolsWindow(); |
547 } | 547 } |
548 | 548 |
549 } // namespace | 549 } // namespace |
OLD | NEW |