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

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

Issue 10024066: TabContents -> WebContentsImpl, part 4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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) 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/debugger/devtools_manager_impl.h"
8 #include "content/browser/debugger/render_view_devtools_agent_host.h" 8 #include "content/browser/debugger/render_view_devtools_agent_host.h"
9 #include "content/browser/mock_content_browser_client.h" 9 #include "content/browser/mock_content_browser_client.h"
10 #include "content/browser/renderer_host/test_render_view_host.h" 10 #include "content/browser/renderer_host/test_render_view_host.h"
11 #include "content/browser/tab_contents/test_web_contents.h" 11 #include "content/browser/web_contents/test_web_contents.h"
12 #include "content/common/view_messages.h" 12 #include "content/common/view_messages.h"
13 #include "content/public/browser/content_browser_client.h" 13 #include "content/public/browser/content_browser_client.h"
14 #include "content/public/browser/devtools_agent_host_registry.h" 14 #include "content/public/browser/devtools_agent_host_registry.h"
15 #include "content/public/browser/devtools_client_host.h" 15 #include "content/public/browser/devtools_client_host.h"
16 #include "content/public/browser/web_contents_delegate.h" 16 #include "content/public/browser/web_contents_delegate.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 using base::TimeDelta; 19 using base::TimeDelta;
20 using content::DevToolsAgentHost; 20 using content::DevToolsAgentHost;
21 using content::DevToolsAgentHostRegistry; 21 using content::DevToolsAgentHostRegistry;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 // Interrupt pending navigation and navigate back to the original site. 240 // Interrupt pending navigation and navigate back to the original site.
241 controller().LoadURL( 241 controller().LoadURL(
242 url, content::Referrer(), content::PAGE_TRANSITION_TYPED, std::string()); 242 url, content::Referrer(), content::PAGE_TRANSITION_TYPED, std::string());
243 contents()->TestDidNavigate(rvh(), 1, url, content::PAGE_TRANSITION_TYPED); 243 contents()->TestDidNavigate(rvh(), 1, url, content::PAGE_TRANSITION_TYPED);
244 EXPECT_FALSE(contents()->cross_navigation_pending()); 244 EXPECT_FALSE(contents()->cross_navigation_pending());
245 EXPECT_EQ(&client_host, devtools_manager->GetDevToolsClientHostFor( 245 EXPECT_EQ(&client_host, devtools_manager->GetDevToolsClientHostFor(
246 DevToolsAgentHostRegistry::GetDevToolsAgentHost(rvh()))); 246 DevToolsAgentHostRegistry::GetDevToolsAgentHost(rvh())));
247 client_host.Close(DevToolsManager::GetInstance()); 247 client_host.Close(DevToolsManager::GetInstance());
248 } 248 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698