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

Unified Diff: ui/aura/mus/window_tree_host_mus_unittest.cc

Issue 2823903005: Extracts parameters to WindowTreeHostMus into structure (Closed)
Patch Set: move constructor 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
« no previous file with comments | « ui/aura/mus/window_tree_host_mus_init_params.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/window_tree_host_mus_unittest.cc
diff --git a/ui/aura/mus/window_tree_host_mus_unittest.cc b/ui/aura/mus/window_tree_host_mus_unittest.cc
index 041b1adc2fe13369f00753bfb2ddbf84c579a628..dadcd9df8db468799ae2b19f83aa199d7f42f8a0 100644
--- a/ui/aura/mus/window_tree_host_mus_unittest.cc
+++ b/ui/aura/mus/window_tree_host_mus_unittest.cc
@@ -5,6 +5,7 @@
#include "ui/aura/mus/window_tree_host_mus.h"
#include "base/memory/ptr_util.h"
+#include "ui/aura/mus/window_tree_host_mus_init_params.h"
#include "ui/aura/test/aura_mus_test_base.h"
#include "ui/aura/test/mus/test_window_tree.h"
@@ -14,8 +15,8 @@ using WindowTreeHostMusTest = aura::test::AuraMusClientTestBase;
TEST_F(WindowTreeHostMusTest, UpdateClientArea) {
std::unique_ptr<WindowTreeHostMus> window_tree_host_mus =
- base::MakeUnique<WindowTreeHostMus>(window_tree_client_impl(),
- cc::FrameSinkId());
+ base::MakeUnique<WindowTreeHostMus>(
+ aura::CreateInitParamsForTopLevel(window_tree_client_impl()));
gfx::Insets new_insets(10, 11, 12, 13);
window_tree_host_mus->SetClientArea(new_insets, std::vector<gfx::Rect>());
@@ -24,8 +25,8 @@ TEST_F(WindowTreeHostMusTest, UpdateClientArea) {
TEST_F(WindowTreeHostMusTest, SetHitTestMask) {
std::unique_ptr<WindowTreeHostMus> window_tree_host_mus =
- base::MakeUnique<WindowTreeHostMus>(window_tree_client_impl(),
- cc::FrameSinkId());
+ base::MakeUnique<WindowTreeHostMus>(
+ CreateInitParamsForTopLevel(window_tree_client_impl()));
EXPECT_FALSE(window_tree()->last_hit_test_mask().has_value());
gfx::Rect mask(10, 10, 10, 10);
« no previous file with comments | « ui/aura/mus/window_tree_host_mus_init_params.cc ('k') | ui/views/mus/desktop_window_tree_host_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698