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

Unified Diff: trunk/src/ash/wm/session_state_controller_impl2_unittest.cc

Issue 14200034: Revert 194578 "Add ash SessionStateDelegate" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 | « trunk/src/ash/wm/power_button_controller_unittest.cc ('k') | trunk/src/ash/wm/stacking_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ash/wm/session_state_controller_impl2_unittest.cc
===================================================================
--- trunk/src/ash/wm/session_state_controller_impl2_unittest.cc (revision 194588)
+++ trunk/src/ash/wm/session_state_controller_impl2_unittest.cc (working copy)
@@ -5,7 +5,6 @@
#include "ash/wm/session_state_controller_impl2.h"
#include "ash/ash_switches.h"
-#include "ash/session_state_delegate.h"
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
#include "ash/test/ash_test_base.h"
@@ -138,7 +137,6 @@
animator_.get()));
shell_delegate_ = reinterpret_cast<TestShellDelegate*>(
ash::Shell::GetInstance()->delegate());
- state_delegate_ = Shell::GetInstance()->session_state_delegate();
}
virtual void TearDown() {
@@ -312,7 +310,7 @@
void ExpectUnlockedState() {
//TODO (antrim) : restore EXPECT_FALSE(animator_helper_->IsAnimating());
- EXPECT_FALSE(state_delegate_->IsScreenLocked());
+ EXPECT_FALSE(shell_delegate_->IsScreenLocked());
aura::Window::Windows containers;
@@ -333,7 +331,7 @@
void ExpectLockedState() {
//TODO (antrim) : restore EXPECT_FALSE(animator_helper_->IsAnimating());
- EXPECT_TRUE(state_delegate_->IsScreenLocked());
+ EXPECT_TRUE(shell_delegate_->IsScreenLocked());
aura::Window::Windows containers;
@@ -372,7 +370,7 @@
void SystemLocks() {
state_controller_->OnLockStateChanged(true);
- state_delegate_->LockScreen();
+ shell_delegate_->LockScreen();
//TODO (antrim) : restore animator_helper_->Advance(base::TimeDelta());
}
@@ -384,7 +382,7 @@
void SystemUnlocks() {
state_controller_->OnLockStateChanged(false);
- state_delegate_->UnlockScreen();
+ shell_delegate_->UnlockScreen();
//TODO (antrim) : restore animator_helper_->Advance(base::TimeDelta());
}
@@ -401,7 +399,6 @@
SessionStateControllerImpl2* state_controller_; // not owned
TestSessionStateControllerDelegate* delegate_; // not owned
TestShellDelegate* shell_delegate_; // not owned
- SessionStateDelegate* state_delegate_; // not owned
scoped_ptr<ui::ScopedAnimationDurationScaleMode> animation_duration_mode_;
scoped_ptr<SessionStateControllerImpl2::TestApi> test_api_;
« no previous file with comments | « trunk/src/ash/wm/power_button_controller_unittest.cc ('k') | trunk/src/ash/wm/stacking_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698