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

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

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 7 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
Index: content/browser/web_contents/web_contents_impl_unittest.cc
diff --git a/content/browser/web_contents/web_contents_impl_unittest.cc b/content/browser/web_contents/web_contents_impl_unittest.cc
index 657950dac1dae59b73dd889aa490ba0f841827fb..3d5dbeda66ecd7cc4cf5f4b54d38d44c3421a9a1 100644
--- a/content/browser/web_contents/web_contents_impl_unittest.cc
+++ b/content/browser/web_contents/web_contents_impl_unittest.cc
@@ -338,19 +338,19 @@ TEST_F(WebContentsImplTest, UpdateMaxPageID) {
// Starts at -1.
EXPECT_EQ(-1, contents()->GetMaxPageID());
EXPECT_EQ(-1, contents()->GetMaxPageIDForSiteInstance(instance1));
- EXPECT_EQ(-1, contents()->GetMaxPageIDForSiteInstance(instance2));
+ EXPECT_EQ(-1, contents()->GetMaxPageIDForSiteInstance(instance2.get()));
// Make sure max_page_id_ is monotonically increasing per SiteInstance.
contents()->UpdateMaxPageID(3);
contents()->UpdateMaxPageID(1);
EXPECT_EQ(3, contents()->GetMaxPageID());
EXPECT_EQ(3, contents()->GetMaxPageIDForSiteInstance(instance1));
- EXPECT_EQ(-1, contents()->GetMaxPageIDForSiteInstance(instance2));
+ EXPECT_EQ(-1, contents()->GetMaxPageIDForSiteInstance(instance2.get()));
- contents()->UpdateMaxPageIDForSiteInstance(instance2, 7);
+ contents()->UpdateMaxPageIDForSiteInstance(instance2.get(), 7);
EXPECT_EQ(3, contents()->GetMaxPageID());
EXPECT_EQ(3, contents()->GetMaxPageIDForSiteInstance(instance1));
- EXPECT_EQ(7, contents()->GetMaxPageIDForSiteInstance(instance2));
+ EXPECT_EQ(7, contents()->GetMaxPageIDForSiteInstance(instance2.get()));
}
// Test simple same-SiteInstance navigation.
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/browser/web_contents/web_drag_source_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698