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

Side by Side Diff: ash/test/test_session_state_delegate.h

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 unified diff | Download patch
« no previous file with comments | « ash/test/ash_test_impl_aura.cc ('k') | ash/test/test_session_state_delegate.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ 5 #ifndef ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_
6 #define ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ 6 #define ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // Updates the internal state that indicates whether the session has been 64 // Updates the internal state that indicates whether the session has been
65 // fully started for the active user. If |active_user_session_started| is 65 // fully started for the active user. If |active_user_session_started| is
66 // |true|, |has_active_user_| is set to |true| as well (see below for the 66 // |true|, |has_active_user_| is set to |true| as well (see below for the
67 // difference between these two flags). 67 // difference between these two flags).
68 void SetActiveUserSessionStarted(bool active_user_session_started); 68 void SetActiveUserSessionStarted(bool active_user_session_started);
69 69
70 // Updates the internal state that indicates whether the screen can be locked. 70 // Updates the internal state that indicates whether the screen can be locked.
71 // Locking will only actually be allowed when this value is |true| and there 71 // Locking will only actually be allowed when this value is |true| and there
72 // is an active user. 72 // is an active user.
73 void SetCanLockScreen(bool can_lock_screen); 73 static void SetCanLockScreen(bool can_lock_screen);
74 74
75 // Updates |should_lock_screen_before_suspending_|. 75 // Updates |should_lock_screen_before_suspending_|.
76 void SetShouldLockScreenBeforeSuspending(bool should_lock); 76 void SetShouldLockScreenBeforeSuspending(bool should_lock);
77 77
78 // Updates the internal state that indicates whether user adding screen is 78 // Updates the internal state that indicates whether user adding screen is
79 // running now. 79 // running now.
80 void SetUserAddingScreenRunning(bool user_adding_screen_running); 80 void SetUserAddingScreenRunning(bool user_adding_screen_running);
81 81
82 // Setting non NULL image enables avatar icon. 82 // Setting non NULL image enables avatar icon.
83 void SetUserImage(const gfx::ImageSkia& user_image); 83 void SetUserImage(const gfx::ImageSkia& user_image);
(...skipping 29 matching lines...) Expand all
113 // before the profile and browser UI are available. 113 // before the profile and browser UI are available.
114 SessionState session_state_; 114 SessionState session_state_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate); 116 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate);
117 }; 117 };
118 118
119 } // namespace test 119 } // namespace test
120 } // namespace ash 120 } // namespace ash
121 121
122 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ 122 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/test/ash_test_impl_aura.cc ('k') | ash/test/test_session_state_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698