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

Unified Diff: ash/test/test_session_state_delegate.cc

Issue 2391153002: Converts most of WorkspaceLayoutManager tests to use common code (Closed)
Patch Set: merge Created 4 years, 2 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 | « ash/test/test_session_state_delegate.h ('k') | ash/wm/lock_state_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_session_state_delegate.cc
diff --git a/ash/test/test_session_state_delegate.cc b/ash/test/test_session_state_delegate.cc
index 5c341e66ec4fed9dd49fbb24398c87018791e1e8..9c39a9e43b5c3a0c5062aee75f9c67acc0230373 100644
--- a/ash/test/test_session_state_delegate.cc
+++ b/ash/test/test_session_state_delegate.cc
@@ -8,6 +8,7 @@
#include <string>
#include "ash/common/login_status.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "base/memory/ptr_util.h"
#include "base/strings/string16.h"
@@ -182,8 +183,12 @@ void TestSessionStateDelegate::SetActiveUserSessionStarted(
}
}
+// static
void TestSessionStateDelegate::SetCanLockScreen(bool can_lock_screen) {
- can_lock_screen_ = can_lock_screen;
+ CHECK(WmShell::HasInstance());
+ static_cast<ash::test::TestSessionStateDelegate*>(
+ WmShell::Get()->GetSessionStateDelegate())
+ ->can_lock_screen_ = can_lock_screen;
}
void TestSessionStateDelegate::SetShouldLockScreenBeforeSuspending(
« no previous file with comments | « ash/test/test_session_state_delegate.h ('k') | ash/wm/lock_state_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698