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

Unified Diff: cc/surfaces/surface_hittest_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/surface_hittest_unittest.cc
diff --git a/cc/surfaces/surface_hittest_unittest.cc b/cc/surfaces/surface_hittest_unittest.cc
index 312a7ae9b50a988cbd5f5c8f582a4fb254fafc09..9a3c29fd7162245c8b57fd711e28358deb928043 100644
--- a/cc/surfaces/surface_hittest_unittest.cc
+++ b/cc/surfaces/surface_hittest_unittest.cc
@@ -10,6 +10,7 @@
#include "cc/surfaces/surface.h"
#include "cc/surfaces/surface_hittest.h"
#include "cc/surfaces/surface_manager.h"
+#include "cc/test/compositor_frame_helpers.h"
#include "cc/test/surface_hittest_test_helpers.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkColor.h"
@@ -405,7 +406,7 @@ TEST(SurfaceHittestTest, Hittest_RenderPassDrawQuad) {
// Create a CompostiorFrame with two RenderPasses.
gfx::Rect root_rect(300, 300);
- CompositorFrame root_frame;
+ CompositorFrame root_frame = test::MakeCompositorFrame();
RenderPassList& render_pass_list = root_frame.render_pass_list;
// Create a child RenderPass.

Powered by Google App Engine
This is Rietveld 408576698