summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_commands_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/browser_commands_unittest.cc')
-rw-r--r--chrome/browser/browser_commands_unittest.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/browser_commands_unittest.cc b/chrome/browser/browser_commands_unittest.cc
index f55cb8e..5cecf0a 100644
--- a/chrome/browser/browser_commands_unittest.cc
+++ b/chrome/browser/browser_commands_unittest.cc
@@ -68,13 +68,13 @@ TEST_F(BrowserCommandsTest, DuplicateTab) {
ASSERT_EQ(2, browser()->tab_count());
// Verify the stack of urls.
- NavigationController* controller =
+ NavigationController& controller =
browser()->GetTabContentsAt(1)->controller();
- ASSERT_EQ(3, controller->entry_count());
- ASSERT_EQ(2, controller->GetCurrentEntryIndex());
- ASSERT_TRUE(url1 == controller->GetEntryAtIndex(0)->url());
- ASSERT_TRUE(url2 == controller->GetEntryAtIndex(1)->url());
- ASSERT_TRUE(url3 == controller->GetEntryAtIndex(2)->url());
+ ASSERT_EQ(3, controller.entry_count());
+ ASSERT_EQ(2, controller.GetCurrentEntryIndex());
+ ASSERT_TRUE(url1 == controller.GetEntryAtIndex(0)->url());
+ ASSERT_TRUE(url2 == controller.GetEntryAtIndex(1)->url());
+ ASSERT_TRUE(url3 == controller.GetEntryAtIndex(2)->url());
}
TEST_F(BrowserCommandsTest, BookmarkCurrentPage) {