diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-07 06:27:41 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-07 06:27:41 +0000 |
commit | 684b4ba293df8f279147ea9d4b4bc665ec44a153 (patch) | |
tree | a712bd8032c65a38a0e8a0dffa2ed70286008f20 /chrome/browser/debugger/devtools_manager_unittest.cc | |
parent | 122336cf5ea64521747cc22ec6bd0d918ba2e489 (diff) | |
download | chromium_src-684b4ba293df8f279147ea9d4b4bc665ec44a153.zip chromium_src-684b4ba293df8f279147ea9d4b4bc665ec44a153.tar.gz chromium_src-684b4ba293df8f279147ea9d4b4bc665ec44a153.tar.bz2 |
DevTools: Enable debugging of non-TabContents including extensions.
Review URL: http://codereview.chromium.org/115028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15526 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/devtools_manager_unittest.cc')
-rw-r--r-- | chrome/browser/debugger/devtools_manager_unittest.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/debugger/devtools_manager_unittest.cc b/chrome/browser/debugger/devtools_manager_unittest.cc index 5744471..5946c07 100644 --- a/chrome/browser/debugger/devtools_manager_unittest.cc +++ b/chrome/browser/debugger/devtools_manager_unittest.cc @@ -73,24 +73,24 @@ class DevToolsManagerTest : public RenderViewHostTestHarness { TEST_F(DevToolsManagerTest, OpenAndManuallyCloseDevToolsClientHost) { DevToolsManager manager; - DevToolsClientHost* host = manager.GetDevToolsClientHostFor(*contents()); + DevToolsClientHost* host = manager.GetDevToolsClientHostFor(rvh()); EXPECT_TRUE(NULL == host); TestDevToolsClientHost client_host; - manager.RegisterDevToolsClientHostFor(*contents(), &client_host); + manager.RegisterDevToolsClientHostFor(rvh(), &client_host); // Test that just registered devtools host is returned. - host = manager.GetDevToolsClientHostFor(*contents()); + host = manager.GetDevToolsClientHostFor(rvh()); EXPECT_TRUE(&client_host == host); EXPECT_EQ(0, TestDevToolsClientHost::close_counter); // Test that the same devtools host is returned. - host = manager.GetDevToolsClientHostFor(*contents()); + host = manager.GetDevToolsClientHostFor(rvh()); EXPECT_TRUE(&client_host == host); EXPECT_EQ(0, TestDevToolsClientHost::close_counter); client_host.Close(); EXPECT_EQ(1, TestDevToolsClientHost::close_counter); - host = manager.GetDevToolsClientHostFor(*contents()); + host = manager.GetDevToolsClientHostFor(rvh()); EXPECT_TRUE(NULL == host); } @@ -98,11 +98,11 @@ TEST_F(DevToolsManagerTest, ForwardMessageToClient) { DevToolsManager manager; TestDevToolsClientHost client_host; - manager.RegisterDevToolsClientHostFor(*contents(), &client_host); + manager.RegisterDevToolsClientHostFor(rvh(), &client_host); EXPECT_EQ(0, TestDevToolsClientHost::close_counter); IPC::Message m; - manager.ForwardToDevToolsClient(*contents()->render_view_host(), m); + manager.ForwardToDevToolsClient(rvh(), m); EXPECT_TRUE(&m == client_host.last_sent_message); client_host.Close(); |