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

Unified Diff: services/ui/ws/frame_generator_unittest.cc

Issue 2400593002: Mus+Ash: Fix the FrameSinkId of the FrameGenerator's CompositorFrameSink (Closed)
Patch Set: Fixed FrameGeneratorTest Created 4 years, 2 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 | « services/ui/ws/frame_generator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/frame_generator_unittest.cc
diff --git a/services/ui/ws/frame_generator_unittest.cc b/services/ui/ws/frame_generator_unittest.cc
index d91c58dc8866b902d03c79b13c53978cdc522df7..496ce9df769b6b71276a93ab7928bdcb8153ae27 100644
--- a/services/ui/ws/frame_generator_unittest.cc
+++ b/services/ui/ws/frame_generator_unittest.cc
@@ -9,6 +9,7 @@
#include "base/test/test_message_loop.h"
#include "cc/quads/render_pass.h"
#include "cc/quads/shared_quad_state.h"
+#include "services/ui/surfaces/display_compositor.h"
#include "services/ui/ws/platform_display_init_params.h"
#include "services/ui/ws/server_window.h"
#include "services/ui/ws/server_window_surface_manager.h"
@@ -35,7 +36,7 @@ void InitWindow(ServerWindow* window) {
class FrameGeneratorTest : public testing::Test {
public:
- FrameGeneratorTest() {}
+ FrameGeneratorTest() : display_compositor_(new DisplayCompositor()) {}
~FrameGeneratorTest() override {}
// Calls DrawWindowTree() on |frame_generator_|
@@ -52,6 +53,7 @@ class FrameGeneratorTest : public testing::Test {
void SetUp() override;
void TearDown() override;
+ scoped_refptr<DisplayCompositor> display_compositor_;
std::unique_ptr<FrameGenerator> frame_generator_;
std::unique_ptr<TestFrameGeneratorDelegate> frame_generator_delegate_;
TestServerWindowDelegate window_delegate_;
@@ -74,7 +76,7 @@ void FrameGeneratorTest::SetUp() {
base::MakeUnique<ServerWindow>(&window_delegate_, WindowId()));
PlatformDisplayInitParams init_params;
frame_generator_ = base::MakeUnique<FrameGenerator>(
- frame_generator_delegate_.get(), init_params.display_compositor);
+ frame_generator_delegate_.get(), display_compositor_);
InitWindow(root_window());
}
« no previous file with comments | « services/ui/ws/frame_generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698