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

Unified Diff: cc/surfaces/surface_manager_ref_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_manager_ref_unittest.cc
diff --git a/cc/surfaces/surface_manager_ref_unittest.cc b/cc/surfaces/surface_manager_ref_unittest.cc
index eb678f8f0c9efc1d853c6c53e5d2c347a13e1162..de66181f94ac3688507c748b0976017ce8d80c94 100644
--- a/cc/surfaces/surface_manager_ref_unittest.cc
+++ b/cc/surfaces/surface_manager_ref_unittest.cc
@@ -12,6 +12,7 @@
#include "cc/surfaces/surface.h"
#include "cc/surfaces/surface_id.h"
#include "cc/surfaces/surface_manager.h"
+#include "cc/test/compositor_frame_helpers.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -21,7 +22,6 @@ using testing::SizeIs;
using testing::UnorderedElementsAre;
namespace cc {
-
namespace {
constexpr FrameSinkId kFrameSink1(1, 0);
@@ -41,7 +41,7 @@ class SurfaceManagerRefTest : public testing::Test {
LocalSurfaceId local_surface_id(local_id,
base::UnguessableToken::Deserialize(0, 1u));
GetCompositorFrameSinkSupport(frame_sink_id)
- .SubmitCompositorFrame(local_surface_id, CompositorFrame());
+ .SubmitCompositorFrame(local_surface_id, test::MakeCompositorFrame());
return SurfaceId(frame_sink_id, local_surface_id);
}

Powered by Google App Engine
This is Rietveld 408576698