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

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

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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_delegate.h ('k') | services/ui/ws/platform_display.h » ('j') | 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 f77f29268169761c3c24087f14b860171f950ac6..b977f0a0fc45a307ad4221b508c2d8a964dc62f4 100644
--- a/services/ui/ws/frame_generator_unittest.cc
+++ b/services/ui/ws/frame_generator_unittest.cc
@@ -52,9 +52,7 @@ class FrameGeneratorTest : public testing::Test {
// Calls DrawWindowTree() on |frame_generator_|
void DrawWindowTree(cc::RenderPass* pass);
- ServerWindow* root_window() {
- return frame_generator_delegate_->GetRootWindow();
- }
+ ServerWindow* root_window() { return root_window_.get(); }
TestServerWindowDelegate* test_window_delegate() { return &window_delegate_; }
@@ -75,14 +73,13 @@ class FrameGeneratorTest : public testing::Test {
};
void FrameGeneratorTest::DrawWindowTree(cc::RenderPass* pass) {
- frame_generator_->DrawWindowTree(
- pass, frame_generator_delegate_->GetRootWindow(), gfx::Vector2d(), 1.0f);
+ frame_generator_->DrawWindowTree(pass, root_window_.get(), gfx::Vector2d(),
+ 1.0f);
}
void FrameGeneratorTest::SetUp() {
testing::Test::SetUp();
- frame_generator_delegate_ = base::MakeUnique<TestFrameGeneratorDelegate>(
- base::MakeUnique<ServerWindow>(&window_delegate_, WindowId()));
+ frame_generator_delegate_ = base::MakeUnique<TestFrameGeneratorDelegate>();
PlatformDisplayInitParams init_params;
frame_generator_ = base::MakeUnique<FrameGenerator>(
frame_generator_delegate_.get(), root_window_.get());
« no previous file with comments | « services/ui/ws/frame_generator_delegate.h ('k') | services/ui/ws/platform_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698