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

Side by Side Diff: ash/wm/lock_state_controller_unittest.cc

Issue 2741273002: chromeos: Promotes more from WmShell to Shell (Closed)
Patch Set: feedback 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
« no previous file with comments | « ash/wm/lock_state_controller.cc ('k') | ash/wm/window_positioner_unittest.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/wm/lock_state_controller.h" 5 #include "ash/wm/lock_state_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "ash/common/session/session_state_delegate.h" 10 #include "ash/common/session/session_state_delegate.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 lock_state_controller_ = Shell::GetInstance()->lock_state_controller(); 83 lock_state_controller_ = Shell::GetInstance()->lock_state_controller();
84 lock_state_controller_->set_animator_for_test(test_animator_); 84 lock_state_controller_->set_animator_for_test(test_animator_);
85 85
86 test_api_.reset(new LockStateControllerTestApi(lock_state_controller_)); 86 test_api_.reset(new LockStateControllerTestApi(lock_state_controller_));
87 test_api_->set_shutdown_controller(&test_shutdown_controller_); 87 test_api_->set_shutdown_controller(&test_shutdown_controller_);
88 88
89 power_button_controller_ = Shell::GetInstance()->power_button_controller(); 89 power_button_controller_ = Shell::GetInstance()->power_button_controller();
90 90
91 shell_delegate_ = 91 shell_delegate_ =
92 static_cast<TestShellDelegate*>(WmShell::Get()->delegate()); 92 static_cast<TestShellDelegate*>(Shell::Get()->shell_delegate());
93 } 93 }
94 94
95 void TearDown() override { 95 void TearDown() override {
96 const bool is_mash = WmShell::Get()->IsRunningInMash(); 96 const bool is_mash = WmShell::Get()->IsRunningInMash();
97 AshTestBase::TearDown(); 97 AshTestBase::TearDown();
98 // Mash shuts down DBus during normal destruction. 98 // Mash shuts down DBus during normal destruction.
99 if (!is_mash) 99 if (!is_mash)
100 chromeos::DBusThreadManager::Shutdown(); 100 chromeos::DBusThreadManager::Shutdown();
101 } 101 }
102 102
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 ASSERT_EQ(0, delegate->handle_take_screenshot_count()); 1074 ASSERT_EQ(0, delegate->handle_take_screenshot_count());
1075 PressVolumeDown(); 1075 PressVolumeDown();
1076 PressPowerButton(); 1076 PressPowerButton();
1077 ReleasePowerButton(); 1077 ReleasePowerButton();
1078 ReleaseVolumeDown(); 1078 ReleaseVolumeDown();
1079 EXPECT_EQ(1, delegate->handle_take_screenshot_count()); 1079 EXPECT_EQ(1, delegate->handle_take_screenshot_count());
1080 } 1080 }
1081 1081
1082 } // namespace test 1082 } // namespace test
1083 } // namespace ash 1083 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/lock_state_controller.cc ('k') | ash/wm/window_positioner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698