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

Unified Diff: content/browser/web_contents/web_contents_delegate_unittest.cc

Issue 10038026: TabContents -> WebContentsImpl, part 12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: *web*contents 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/web_contents/test_web_contents.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_delegate_unittest.cc
diff --git a/content/browser/web_contents/web_contents_delegate_unittest.cc b/content/browser/web_contents/web_contents_delegate_unittest.cc
index df71ae9d2807830265294fee5839f54b073b8e88..a4b1d8ae04136eb1cd231f99a8f48be39fb8fbc8 100644
--- a/content/browser/web_contents/web_contents_delegate_unittest.cc
+++ b/content/browser/web_contents/web_contents_delegate_unittest.cc
@@ -21,10 +21,16 @@ TEST(WebContentsDelegateTest, UnregisterInDestructor) {
MessageLoop loop(MessageLoop::TYPE_UI);
TestBrowserContext browser_context;
- scoped_ptr<TabContents> contents_a(
- new TabContents(&browser_context, NULL, MSG_ROUTING_NONE, NULL, NULL));
- scoped_ptr<TabContents> contents_b(
- new TabContents(&browser_context, NULL, MSG_ROUTING_NONE, NULL, NULL));
+ scoped_ptr<WebContentsImpl> contents_a(new WebContentsImpl(&browser_context,
+ NULL,
+ MSG_ROUTING_NONE,
+ NULL,
+ NULL));
+ scoped_ptr<WebContentsImpl> contents_b(new WebContentsImpl(&browser_context,
+ NULL,
+ MSG_ROUTING_NONE,
+ NULL,
+ NULL));
EXPECT_TRUE(contents_a->GetDelegate() == NULL);
EXPECT_TRUE(contents_b->GetDelegate() == NULL);
@@ -35,7 +41,7 @@ TEST(WebContentsDelegateTest, UnregisterInDestructor) {
EXPECT_EQ(delegate.get(), contents_a->GetDelegate());
EXPECT_TRUE(contents_b->GetDelegate() == NULL);
- // A delegate can be a delegate to multiple TabContents.
+ // A delegate can be a delegate to multiple WebContentsImpl.
contents_b->SetDelegate(delegate.get());
EXPECT_EQ(delegate.get(), contents_a->GetDelegate());
EXPECT_EQ(delegate.get(), contents_b->GetDelegate());
@@ -51,7 +57,7 @@ TEST(WebContentsDelegateTest, UnregisterInDestructor) {
EXPECT_TRUE(contents_b->GetDelegate() == NULL);
// Destroying the delegate while it is still the delegate
- // for a TabContents should unregister it.
+ // for a WebContentsImpl should unregister it.
contents_b->SetDelegate(delegate.get());
EXPECT_EQ(delegate.get(), contents_a->GetDelegate());
EXPECT_EQ(delegate.get(), contents_b->GetDelegate());
« no previous file with comments | « content/browser/web_contents/test_web_contents.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698