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

Side by Side Diff: ash/common/test/ash_test.cc

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 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
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/common/test/ash_test.h" 5 #include "ash/common/test/ash_test.h"
6 6
7 #include "ash/common/shelf/wm_shelf.h" 7 #include "ash/common/shelf/wm_shelf.h"
8 #include "ash/common/system/status_area_widget.h" 8 #include "ash/common/system/status_area_widget.h"
9 #include "ash/common/test/ash_test_impl.h" 9 #include "ash/common/test/ash_test_impl.h"
10 #include "ash/common/test/test_session_state_delegate.h" 10 #include "ash/common/test/test_session_state_delegate.h"
11 #include "ash/common/test/test_system_tray_delegate.h" 11 #include "ash/common/test/test_system_tray_delegate.h"
12 #include "ash/common/wm_shell.h" 12 #include "ash/common/wm_shell.h"
13 #include "ash/common/wm_window.h" 13 #include "ash/common/wm_window.h"
14 #include "ash/root_window_controller.h" 14 #include "ash/root_window_controller.h"
15 #include "ash/shell.h"
15 #include "base/memory/ptr_util.h" 16 #include "base/memory/ptr_util.h"
16 #include "base/run_loop.h" 17 #include "base/run_loop.h"
17 #include "ui/aura/window.h" 18 #include "ui/aura/window.h"
18 #include "ui/compositor/layer_type.h" 19 #include "ui/compositor/layer_type.h"
19 #include "ui/display/display.h" 20 #include "ui/display/display.h"
20 21
21 namespace ash { 22 namespace ash {
22 23
23 WindowOwner::WindowOwner(WmWindow* window) : window_(window) {} 24 WindowOwner::WindowOwner(WmWindow* window) : window_(window) {}
24 25
(...skipping 14 matching lines...) Expand all
39 } 40 }
40 41
41 // static 42 // static
42 SystemTray* AshTest::GetPrimarySystemTray() { 43 SystemTray* AshTest::GetPrimarySystemTray() {
43 return GetPrimaryShelf()->GetStatusAreaWidget()->system_tray(); 44 return GetPrimaryShelf()->GetStatusAreaWidget()->system_tray();
44 } 45 }
45 46
46 // static 47 // static
47 test::TestSystemTrayDelegate* AshTest::GetSystemTrayDelegate() { 48 test::TestSystemTrayDelegate* AshTest::GetSystemTrayDelegate() {
48 return static_cast<test::TestSystemTrayDelegate*>( 49 return static_cast<test::TestSystemTrayDelegate*>(
49 WmShell::Get()->system_tray_delegate()); 50 Shell::Get()->system_tray_delegate());
50 } 51 }
51 52
52 void AshTest::UpdateDisplay(const std::string& display_spec) { 53 void AshTest::UpdateDisplay(const std::string& display_spec) {
53 return test_impl_->UpdateDisplay(display_spec); 54 return test_impl_->UpdateDisplay(display_spec);
54 } 55 }
55 56
56 std::unique_ptr<WindowOwner> AshTest::CreateTestWindow(const gfx::Rect& bounds, 57 std::unique_ptr<WindowOwner> AshTest::CreateTestWindow(const gfx::Rect& bounds,
57 ui::wm::WindowType type, 58 ui::wm::WindowType type,
58 int shell_window_id) { 59 int shell_window_id) {
59 return test_impl_->CreateTestWindow(bounds, type, shell_window_id); 60 return test_impl_->CreateTestWindow(bounds, type, shell_window_id);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 137
137 void AshTest::SetUp() { 138 void AshTest::SetUp() {
138 test_impl_->SetUp(); 139 test_impl_->SetUp();
139 } 140 }
140 141
141 void AshTest::TearDown() { 142 void AshTest::TearDown() {
142 test_impl_->TearDown(); 143 test_impl_->TearDown();
143 } 144 }
144 145
145 } // namespace ash 146 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/system/web_notification/web_notification_tray.cc ('k') | ash/common/test/wm_shell_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698