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

Side by Side Diff: ash/mus/test/wm_test_base.cc

Issue 2613793002: Removes/promotes functions from WmWindowMus to WmWindowAura (Closed)
Patch Set: move WmWindowAuraTestApi to ash/test Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « ash/mus/test/wm_test_base.h ('k') | ash/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/mus/test/wm_test_base.h" 5 #include "ash/mus/test/wm_test_base.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/mus/bridge/wm_window_mus_test_api.h"
11 #include "ash/mus/root_window_controller.h" 10 #include "ash/mus/root_window_controller.h"
12 #include "ash/mus/test/wm_test_helper.h" 11 #include "ash/mus/test/wm_test_helper.h"
13 #include "ash/mus/window_manager.h" 12 #include "ash/mus/window_manager.h"
14 #include "ash/mus/window_manager_application.h" 13 #include "ash/mus/window_manager_application.h"
14 #include "ash/test/wm_window_aura_test_api.h"
15 #include "base/memory/ptr_util.h" 15 #include "base/memory/ptr_util.h"
16 #include "services/ui/public/cpp/property_type_converters.h" 16 #include "services/ui/public/cpp/property_type_converters.h"
17 #include "ui/aura/mus/property_converter.h" 17 #include "ui/aura/mus/property_converter.h"
18 #include "ui/aura/mus/window_tree_client.h" 18 #include "ui/aura/mus/window_tree_client.h"
19 #include "ui/aura/window.h" 19 #include "ui/aura/window.h"
20 #include "ui/compositor/scoped_animation_duration_scale_mode.h" 20 #include "ui/compositor/scoped_animation_duration_scale_mode.h"
21 #include "ui/display/display.h" 21 #include "ui/display/display.h"
22 22
23 namespace ash { 23 namespace ash {
24 namespace mus { 24 namespace mus {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 return window; 155 return window;
156 } 156 }
157 157
158 void WmTestBase::SetUp() { 158 void WmTestBase::SetUp() {
159 setup_called_ = true; 159 setup_called_ = true;
160 // Disable animations during tests. 160 // Disable animations during tests.
161 zero_duration_mode_ = base::MakeUnique<ui::ScopedAnimationDurationScaleMode>( 161 zero_duration_mode_ = base::MakeUnique<ui::ScopedAnimationDurationScaleMode>(
162 ui::ScopedAnimationDurationScaleMode::ZERO_DURATION); 162 ui::ScopedAnimationDurationScaleMode::ZERO_DURATION);
163 // Most tests expect a minimum size of 0x0. 163 // Most tests expect a minimum size of 0x0.
164 minimum_size_lock_ = 164 minimum_size_lock_ =
165 base::MakeUnique<WmWindowMusTestApi::GlobalMinimumSizeLock>(); 165 base::MakeUnique<WmWindowAuraTestApi::GlobalMinimumSizeLock>();
166 test_helper_.reset(new WmTestHelper); 166 test_helper_.reset(new WmTestHelper);
167 test_helper_->Init(); 167 test_helper_->Init();
168 } 168 }
169 169
170 void WmTestBase::TearDown() { 170 void WmTestBase::TearDown() {
171 teardown_called_ = true; 171 teardown_called_ = true;
172 test_helper_.reset(); 172 test_helper_.reset();
173 minimum_size_lock_.reset(); 173 minimum_size_lock_.reset();
174 zero_duration_mode_.reset(); 174 zero_duration_mode_.reset();
175 } 175 }
176 176
177 } // namespace mus 177 } // namespace mus
178 } // namespace ash 178 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/test/wm_test_base.h ('k') | ash/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698