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

Unified Diff: cc/tiles/checker_image_tracker_unittest.cc

Issue 2944523002: Improving flat containers interface. (Closed)
Patch Set: Other platforms compilation 2. Created 3 years, 5 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
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | components/exo/layer_tree_frame_sink_holder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/checker_image_tracker_unittest.cc
diff --git a/cc/tiles/checker_image_tracker_unittest.cc b/cc/tiles/checker_image_tracker_unittest.cc
index 16b6ebda4905be6d83c09a0c2c6df9d2c93094d1..5f622cc02b5aa1290aaf925ac93cbd6afe01dff0 100644
--- a/cc/tiles/checker_image_tracker_unittest.cc
+++ b/cc/tiles/checker_image_tracker_unittest.cc
@@ -313,9 +313,10 @@ TEST_F(CheckerImageTrackerTest, CancelsScheduledDecodes) {
// Only the first image in the queue should have been decoded.
EXPECT_EQ(image_controller_.decodes_requested().size(), 1U);
- EXPECT_EQ(image_controller_.decodes_requested().count(
- checkerable_image1.image()->uniqueID()),
- 1U);
+ EXPECT_EQ(
+ image_controller_.decodes_requested().count(
+ static_cast<PaintImage::Id>(checkerable_image1.image()->uniqueID())),
+ 1U);
// Rebuild the queue before the tracker is notified of decode completion,
// removing the second image and adding a new one.
@@ -332,17 +333,19 @@ TEST_F(CheckerImageTrackerTest, CancelsScheduledDecodes) {
// We still have only one decode because the tracker keeps only one decode
// pending at a time.
EXPECT_EQ(image_controller_.decodes_requested().size(), 1U);
- EXPECT_EQ(image_controller_.decodes_requested().count(
- checkerable_image1.image()->uniqueID()),
- 1U);
+ EXPECT_EQ(
+ image_controller_.decodes_requested().count(
+ static_cast<PaintImage::Id>(checkerable_image1.image()->uniqueID())),
+ 1U);
// Trigger completion for all decodes. Only 2 images should have been decoded
// since the second image was cancelled.
base::RunLoop().RunUntilIdle();
EXPECT_EQ(image_controller_.decodes_requested().size(), 2U);
- EXPECT_EQ(image_controller_.decodes_requested().count(
- checkerable_image3.image()->uniqueID()),
- 1U);
+ EXPECT_EQ(
+ image_controller_.decodes_requested().count(
+ static_cast<PaintImage::Id>(checkerable_image3.image()->uniqueID())),
+ 1U);
EXPECT_EQ(image_controller_.num_of_locked_images(), 2);
}
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | components/exo/layer_tree_frame_sink_holder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698