Index: cc/trees/layer_tree_host_impl_unittest.cc |
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc |
index 830237af26b770edfc27270672f109c91035e358..303b70a79a50da5716077a587c4a7daebcc7bbe2 100644 |
--- a/cc/trees/layer_tree_host_impl_unittest.cc |
+++ b/cc/trees/layer_tree_host_impl_unittest.cc |
@@ -5323,10 +5323,9 @@ TEST_F(LayerTreeHostImplTest, LatencyInfoPassedToCompositorFrameMetadata) { |
FakeOutputSurface* fake_output_surface = |
static_cast<FakeOutputSurface*>(host_impl_->output_surface()); |
- const ui::LatencyInfo& metadata_latency_before = |
+ const std::vector<ui::LatencyInfo>& metadata_latency_before = |
fake_output_surface->last_sent_frame().metadata.latency_info; |
- EXPECT_FALSE(metadata_latency_before.FindLatency( |
- ui::INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT, 0, NULL)); |
+ EXPECT_TRUE(metadata_latency_before.empty()); |
ui::LatencyInfo latency_info; |
latency_info.AddLatencyNumber( |
@@ -5343,9 +5342,10 @@ TEST_F(LayerTreeHostImplTest, LatencyInfoPassedToCompositorFrameMetadata) { |
host_impl_->DidDrawAllLayers(frame); |
EXPECT_TRUE(host_impl_->SwapBuffers(frame)); |
- const ui::LatencyInfo& metadata_latency_after = |
+ const std::vector<ui::LatencyInfo>& metadata_latency_after = |
fake_output_surface->last_sent_frame().metadata.latency_info; |
- EXPECT_TRUE(metadata_latency_after.FindLatency( |
+ EXPECT_EQ(1u, metadata_latency_after.size()); |
+ EXPECT_TRUE(metadata_latency_after[0].FindLatency( |
ui::INPUT_EVENT_LATENCY_BEGIN_RWH_COMPONENT, 0, NULL)); |
} |