| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/debugger/devtools_client_host.h" | 9 #include "chrome/browser/debugger/devtools_client_host.h" |
| 10 #include "chrome/browser/debugger/devtools_manager.h" | 10 #include "chrome/browser/debugger/devtools_manager.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/renderer_host/render_view_host.h" | |
| 16 #include "chrome/browser/tab_contents/tab_contents.h" | |
| 17 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 18 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
| 19 #include "chrome/common/notification_registrar.h" | 17 #include "chrome/common/notification_registrar.h" |
| 20 #include "chrome/common/notification_service.h" | 18 #include "chrome/common/notification_service.h" |
| 21 #include "chrome/test/in_process_browser_test.h" | 19 #include "chrome/test/in_process_browser_test.h" |
| 22 #include "chrome/test/ui_test_utils.h" | 20 #include "chrome/test/ui_test_utils.h" |
| 21 #include "content/browser/renderer_host/render_view_host.h" |
| 22 #include "content/browser/tab_contents/tab_contents.h" |
| 23 #include "net/test/test_server.h" | 23 #include "net/test/test_server.h" |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 // Used to block until a dev tools client window's browser is closed. | 27 // Used to block until a dev tools client window's browser is closed. |
| 28 class BrowserClosedObserver : public NotificationObserver { | 28 class BrowserClosedObserver : public NotificationObserver { |
| 29 public: | 29 public: |
| 30 explicit BrowserClosedObserver(Browser* browser) { | 30 explicit BrowserClosedObserver(Browser* browser) { |
| 31 registrar_.Add(this, NotificationType::BROWSER_CLOSED, | 31 registrar_.Add(this, NotificationType::BROWSER_CLOSED, |
| 32 Source<Browser>(browser)); | 32 Source<Browser>(browser)); |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); | 288 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); |
| 289 } | 289 } |
| 290 | 290 |
| 291 // Tests that pressing 'Pause' will pause script execution if the script | 291 // Tests that pressing 'Pause' will pause script execution if the script |
| 292 // is already running. | 292 // is already running. |
| 293 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenScriptIsRunning) { | 293 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenScriptIsRunning) { |
| 294 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning); | 294 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning); |
| 295 } | 295 } |
| 296 | 296 |
| 297 } // namespace | 297 } // namespace |
| OLD | NEW |