Chromium Code Reviews| Index: cc/resources/tile_manager_perftest.cc |
| diff --git a/cc/resources/tile_manager_perftest.cc b/cc/resources/tile_manager_perftest.cc |
| index 09136668e7794deb34cc9857692951599d755ae8..1e82d582d470848dc8d19b6035bbd63d442919c2 100644 |
| --- a/cc/resources/tile_manager_perftest.cc |
| +++ b/cc/resources/tile_manager_perftest.cc |
| @@ -221,7 +221,7 @@ class TileManagerPerfTest : public testing::Test { |
| priorities[priority_count], RasterTilePriorityQueue::Type::ALL)); |
| while (count--) { |
| ASSERT_FALSE(queue->IsEmpty()); |
| - ASSERT_TRUE(queue->Top() != NULL); |
| + ASSERT_TRUE(queue->Top().tile() != nullptr); |
| queue->Pop(); |
| } |
| priority_count = (priority_count + 1) % arraysize(priorities); |
| @@ -296,7 +296,7 @@ class TileManagerPerfTest : public testing::Test { |
| host_impl_.BuildEvictionQueue(priorities[priority_count])); |
| while (count--) { |
| ASSERT_FALSE(queue->IsEmpty()); |
| - ASSERT_TRUE(queue->Top() != NULL); |
| + ASSERT_TRUE(queue->Top().tile() != nullptr); |
|
vmpstr
2015/05/08 18:11:06
nit: Just ASSERT_TRUE(queue->Top().tile());
hendrikw
2015/05/08 19:21:02
Done.
|
| queue->Pop(); |
| } |
| priority_count = (priority_count + 1) % arraysize(priorities); |