| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/time.h" | 7 #include "base/time.h" |
| 8 #include "content/browser/devtools/devtools_manager_impl.h" | 8 #include "content/browser/devtools/devtools_manager_impl.h" |
| 9 #include "content/browser/devtools/render_view_devtools_agent_host.h" | 9 #include "content/browser/devtools/render_view_devtools_agent_host.h" |
| 10 #include "content/browser/renderer_host/test_render_view_host.h" | 10 #include "content/browser/renderer_host/test_render_view_host.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 return true; | 99 return true; |
| 100 } | 100 } |
| 101 | 101 |
| 102 private: | 102 private: |
| 103 DISALLOW_COPY_AND_ASSIGN(DevToolsManagerTestBrowserClient); | 103 DISALLOW_COPY_AND_ASSIGN(DevToolsManagerTestBrowserClient); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace | 106 } // namespace |
| 107 | 107 |
| 108 class DevToolsManagerTest : public RenderViewHostImplTestHarness { | 108 class DevToolsManagerTest : public RenderViewHostImplTestHarness { |
| 109 public: | |
| 110 DevToolsManagerTest() { | |
| 111 } | |
| 112 | |
| 113 protected: | 109 protected: |
| 114 virtual void SetUp() OVERRIDE { | 110 virtual void SetUp() OVERRIDE { |
| 115 original_browser_client_ = SetBrowserClientForTesting(&browser_client_); | 111 original_browser_client_ = SetBrowserClientForTesting(&browser_client_); |
| 116 | 112 |
| 117 RenderViewHostImplTestHarness::SetUp(); | 113 RenderViewHostImplTestHarness::SetUp(); |
| 118 TestDevToolsClientHost::ResetCounters(); | 114 TestDevToolsClientHost::ResetCounters(); |
| 119 } | 115 } |
| 120 | 116 |
| 121 virtual void TearDown() OVERRIDE { | 117 virtual void TearDown() OVERRIDE { |
| 122 RenderViewHostImplTestHarness::TearDown(); | 118 RenderViewHostImplTestHarness::TearDown(); |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 manager->RegisterDevToolsClientHostFor(agent_host.get(), &client_host); | 282 manager->RegisterDevToolsClientHostFor(agent_host.get(), &client_host); |
| 287 | 283 |
| 288 manager->DispatchOnInspectorBackend(&client_host, "message1"); | 284 manager->DispatchOnInspectorBackend(&client_host, "message1"); |
| 289 manager->DispatchOnInspectorBackend(&client_host, "message2"); | 285 manager->DispatchOnInspectorBackend(&client_host, "message2"); |
| 290 manager->DispatchOnInspectorBackend(&client_host, "message2"); | 286 manager->DispatchOnInspectorBackend(&client_host, "message2"); |
| 291 | 287 |
| 292 client_host.Close(manager); | 288 client_host.Close(manager); |
| 293 } | 289 } |
| 294 | 290 |
| 295 } // namespace content | 291 } // namespace content |
| OLD | NEW |