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

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

Issue 274040: More style nits. (Closed)
Patch Set: Created 11 years, 2 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/browser.h" 6 #include "chrome/browser/browser.h"
7 #include "chrome/browser/debugger/devtools_client_host.h" 7 #include "chrome/browser/debugger/devtools_client_host.h"
8 #include "chrome/browser/debugger/devtools_manager.h" 8 #include "chrome/browser/debugger/devtools_manager.h"
9 #include "chrome/browser/debugger/devtools_window.h" 9 #include "chrome/browser/debugger/devtools_window.h"
10 #include "chrome/browser/renderer_host/render_view_host.h" 10 #include "chrome/browser/renderer_host/render_view_host.h"
11 #include "chrome/browser/tab_contents/tab_contents.h" 11 #include "chrome/browser/tab_contents/tab_contents.h"
12 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 #include "chrome/common/notification_registrar.h" 13 #include "chrome/common/notification_registrar.h"
14 #include "chrome/common/notification_service.h" 14 #include "chrome/common/notification_service.h"
15 #include "chrome/test/in_process_browser_test.h" 15 #include "chrome/test/in_process_browser_test.h"
16 #include "chrome/test/ui_test_utils.h" 16 #include "chrome/test/ui_test_utils.h"
17 17
18 18
19 namespace { 19 namespace {
20 20
21 // Used to block until a dev tools client window's browser is closed. 21 // Used to block until a dev tools client window's browser is closed.
22 class BrowserClosedObserver : public NotificationObserver { 22 class BrowserClosedObserver : public NotificationObserver {
23 public: 23 public:
24 BrowserClosedObserver(Browser* browser) { 24 explicit BrowserClosedObserver(Browser* browser) {
25 registrar_.Add(this, NotificationType::BROWSER_CLOSED, 25 registrar_.Add(this, NotificationType::BROWSER_CLOSED,
26 Source<Browser>(browser)); 26 Source<Browser>(browser));
27 ui_test_utils::RunMessageLoop(); 27 ui_test_utils::RunMessageLoop();
28 } 28 }
29 29
30 virtual void Observe(NotificationType type, 30 virtual void Observe(NotificationType type,
31 const NotificationSource& source, 31 const NotificationSource& source,
32 const NotificationDetails& details) { 32 const NotificationDetails& details) {
33 MessageLoopForUI::current()->Quit(); 33 MessageLoopForUI::current()->Quit();
34 } 34 }
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestConsoleLog) { 225 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestConsoleLog) {
226 RunTest("testConsoleLog", kConsoleTestPage); 226 RunTest("testConsoleLog", kConsoleTestPage);
227 } 227 }
228 228
229 // Tests eval global values. 229 // Tests eval global values.
230 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestEvalGlobal) { 230 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestEvalGlobal) {
231 RunTest("testEvalGlobal", kEvalTestPage); 231 RunTest("testEvalGlobal", kEvalTestPage);
232 } 232 }
233 233
234 } // namespace 234 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698