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/time.h" | 6 #include "base/time.h" |
7 #include "content/browser/debugger/devtools_manager_impl.h" | 7 #include "content/browser/devtools/devtools_manager_impl.h" |
8 #include "content/browser/debugger/render_view_devtools_agent_host.h" | 8 #include "content/browser/devtools/render_view_devtools_agent_host.h" |
9 #include "content/browser/renderer_host/test_render_view_host.h" | 9 #include "content/browser/renderer_host/test_render_view_host.h" |
10 #include "content/browser/web_contents/test_web_contents.h" | 10 #include "content/browser/web_contents/test_web_contents.h" |
11 #include "content/common/view_messages.h" | 11 #include "content/common/view_messages.h" |
12 #include "content/public/browser/content_browser_client.h" | 12 #include "content/public/browser/content_browser_client.h" |
13 #include "content/public/browser/devtools_agent_host_registry.h" | 13 #include "content/public/browser/devtools_agent_host_registry.h" |
14 #include "content/public/browser/devtools_client_host.h" | 14 #include "content/public/browser/devtools_client_host.h" |
15 #include "content/public/browser/web_contents_delegate.h" | 15 #include "content/public/browser/web_contents_delegate.h" |
16 #include "content/test/test_content_browser_client.h" | 16 #include "content/test/test_content_browser_client.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 controller().LoadURL( | 234 controller().LoadURL( |
235 url, Referrer(), PAGE_TRANSITION_TYPED, std::string()); | 235 url, Referrer(), PAGE_TRANSITION_TYPED, std::string()); |
236 contents()->TestDidNavigate(rvh(), 1, url, PAGE_TRANSITION_TYPED); | 236 contents()->TestDidNavigate(rvh(), 1, url, PAGE_TRANSITION_TYPED); |
237 EXPECT_FALSE(contents()->cross_navigation_pending()); | 237 EXPECT_FALSE(contents()->cross_navigation_pending()); |
238 EXPECT_EQ(&client_host, devtools_manager->GetDevToolsClientHostFor( | 238 EXPECT_EQ(&client_host, devtools_manager->GetDevToolsClientHostFor( |
239 DevToolsAgentHostRegistry::GetDevToolsAgentHost(rvh()))); | 239 DevToolsAgentHostRegistry::GetDevToolsAgentHost(rvh()))); |
240 client_host.Close(DevToolsManager::GetInstance()); | 240 client_host.Close(DevToolsManager::GetInstance()); |
241 } | 241 } |
242 | 242 |
243 } // namespace content | 243 } // namespace content |
OLD | NEW |