| Index: cc/resources/tile_manager_unittest.cc
|
| diff --git a/cc/resources/tile_manager_unittest.cc b/cc/resources/tile_manager_unittest.cc
|
| index 889a758f7963aad6a438ea11b128984e2145a429..5a1837f9684fb9e133a27c3fecfbea22d614d629 100644
|
| --- a/cc/resources/tile_manager_unittest.cc
|
| +++ b/cc/resources/tile_manager_unittest.cc
|
| @@ -202,6 +202,19 @@ TEST_P(TileManagerTest, EnoughMemoryAllowPrepaintOnly) {
|
| EXPECT_EQ(0, AssignedMemoryCount(never_bin));
|
| }
|
|
|
| +TEST_P(TileManagerTest, EnoughMemoryPendingLowResAllowAbsoluteMinimum) {
|
| + // A few low-res tiles required for activation, with enough memory for all
|
| + // tiles.
|
| +
|
| + Initialize(5, ALLOW_ABSOLUTE_MINIMUM, SAME_PRIORITY_FOR_BOTH_TREES);
|
| + TileVector pending_low_res =
|
| + CreateTiles(5, TilePriority(), TilePriorityLowRes());
|
| +
|
| + tile_manager()->AssignMemoryToTiles(global_state_);
|
| +
|
| + EXPECT_EQ(5, AssignedMemoryCount(pending_low_res));
|
| +}
|
| +
|
| TEST_P(TileManagerTest, EnoughMemoryAllowAbsoluteMinimum) {
|
| // A few tiles of each type of priority, with enough memory for all tiles,
|
| // with the exception of never and soon bins.
|
|
|