| Index: content/browser/web_contents/navigation_controller_impl_unittest.cc
|
| diff --git a/content/browser/web_contents/navigation_controller_impl_unittest.cc b/content/browser/web_contents/navigation_controller_impl_unittest.cc
|
| index 12c90f991ca1a120a0b438a7bb45b476ab54cc0c..7096344078c6b304fbd21ba701531fac3cb3af2f 100644
|
| --- a/content/browser/web_contents/navigation_controller_impl_unittest.cc
|
| +++ b/content/browser/web_contents/navigation_controller_impl_unittest.cc
|
| @@ -3039,14 +3039,20 @@ TEST_F(NavigationControllerTest, MAYBE_PurgeScreenshot) {
|
| const GURL url(base::StringPrintf("http://foo%d/", i));
|
| NavigateAndCommit(url);
|
| EXPECT_EQ(i, controller.GetCurrentEntryIndex());
|
| + }
|
|
|
| + for (int i = 0; i < controller.GetEntryCount(); ++i) {
|
| entry = NavigationEntryImpl::FromNavigationEntry(
|
| - controller.GetActiveEntry());
|
| + controller.GetEntryAtIndex(i));
|
| controller.OnScreenshotTaken(entry->GetUniqueID(), &bitmap, true);
|
| EXPECT_TRUE(entry->screenshot());
|
| }
|
| +
|
| NavigateAndCommit(GURL("https://foo/"));
|
| EXPECT_EQ(13, controller.GetEntryCount());
|
| + entry = NavigationEntryImpl::FromNavigationEntry(
|
| + controller.GetEntryAtIndex(11));
|
| + controller.OnScreenshotTaken(entry->GetUniqueID(), &bitmap, true);
|
|
|
| for (int i = 0; i < 2; ++i) {
|
| entry = NavigationEntryImpl::FromNavigationEntry(
|
|
|