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

Unified Diff: cc/surfaces/display_unittest.cc

Issue 2835393003: Reject frames with invalid BeginFrameAck in CompositorFrameSinkSupport (Closed)
Patch Set: Fixed header Created 3 years, 8 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
Index: cc/surfaces/display_unittest.cc
diff --git a/cc/surfaces/display_unittest.cc b/cc/surfaces/display_unittest.cc
index 603d06820013cd11c2c92ba368bea3a75a079f3b..1c96a0dae683599c0841e79628fcfa73133436e7 100644
--- a/cc/surfaces/display_unittest.cc
+++ b/cc/surfaces/display_unittest.cc
@@ -21,6 +21,7 @@
#include "cc/surfaces/local_surface_id_allocator.h"
#include "cc/surfaces/surface.h"
#include "cc/surfaces/surface_manager.h"
+#include "cc/test/compositor_frame_helpers.h"
#include "cc/test/fake_output_surface.h"
#include "cc/test/scheduler_test_common.h"
#include "cc/test/test_shared_bitmap_manager.h"
@@ -125,7 +126,7 @@ class DisplayTest : public testing::Test {
protected:
void SubmitCompositorFrame(RenderPassList* pass_list,
const LocalSurfaceId& local_surface_id) {
- CompositorFrame frame;
+ CompositorFrame frame = test::MakeCompositorFrame();
pass_list->swap(frame.render_pass_list);
support_->SubmitCompositorFrame(local_surface_id, std::move(frame));
@@ -330,7 +331,7 @@ TEST_F(DisplayTest, DisplayDamaged) {
pass_list.push_back(std::move(pass));
scheduler_->ResetDamageForTest();
- CompositorFrame frame;
+ CompositorFrame frame = test::MakeCompositorFrame();
pass_list.swap(frame.render_pass_list);
frame.metadata.latency_info.push_back(ui::LatencyInfo());
@@ -360,7 +361,7 @@ TEST_F(DisplayTest, DisplayDamaged) {
pass_list.push_back(std::move(pass));
scheduler_->ResetDamageForTest();
- CompositorFrame frame;
+ CompositorFrame frame = test::MakeCompositorFrame();
pass_list.swap(frame.render_pass_list);
support_->SubmitCompositorFrame(local_surface_id, std::move(frame));

Powered by Google App Engine
This is Rietveld 408576698