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

Side by Side Diff: content/browser/debugger/devtools_sanity_unittest.cc

Issue 7274031: Wholesale move of debugger sources to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add OWNERS and DEPS. Created 9 years, 5 months 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 // 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/path_service.h" 6 #include "base/path_service.h"
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/debugger/devtools_client_host.h"
10 #include "chrome/browser/debugger/devtools_manager.h"
11 #include "chrome/browser/debugger/devtools_window.h"
12 #include "chrome/browser/extensions/extension_host.h" 9 #include "chrome/browser/extensions/extension_host.h"
13 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
14 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
16 #include "chrome/common/chrome_paths.h" 13 #include "chrome/common/chrome_paths.h"
17 #include "chrome/test/in_process_browser_test.h" 14 #include "chrome/test/in_process_browser_test.h"
18 #include "chrome/test/ui_test_utils.h" 15 #include "chrome/test/ui_test_utils.h"
16 #include "content/browser/debugger/devtools_client_host.h"
17 #include "content/browser/debugger/devtools_manager.h"
18 #include "content/browser/debugger/devtools_window.h"
19 #include "content/browser/renderer_host/render_view_host.h" 19 #include "content/browser/renderer_host/render_view_host.h"
20 #include "content/browser/tab_contents/tab_contents.h" 20 #include "content/browser/tab_contents/tab_contents.h"
21 #include "content/common/notification_registrar.h" 21 #include "content/common/notification_registrar.h"
22 #include "content/common/notification_service.h" 22 #include "content/common/notification_service.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 {
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 client_contents_->render_view_host(), 320 client_contents_->render_view_host(),
321 L"", 321 L"",
322 L"window.domAutomationController.send(" 322 L"window.domAutomationController.send("
323 L"'' + (window.uiTests && (typeof uiTests.runTest)));", 323 L"'' + (window.uiTests && (typeof uiTests.runTest)));",
324 &result)); 324 &result));
325 ASSERT_EQ("function", result) << "DevTools front-end is broken."; 325 ASSERT_EQ("function", result) << "DevTools front-end is broken.";
326 CloseDevToolsWindow(); 326 CloseDevToolsWindow();
327 } 327 }
328 328
329 } // namespace 329 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698