| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 CHROMEOS_LOGIN_SCOPED_TEST_PUBLIC_SESSION_LOGIN_STATE_H_ | 5 #ifndef CHROMEOS_LOGIN_SCOPED_TEST_PUBLIC_SESSION_LOGIN_STATE_H_ |
| 6 #define CHROMEOS_LOGIN_SCOPED_TEST_PUBLIC_SESSION_LOGIN_STATE_H_ | 6 #define CHROMEOS_LOGIN_SCOPED_TEST_PUBLIC_SESSION_LOGIN_STATE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| 11 | 11 |
| 12 // A class to start and shutdown public session state for a test. | 12 // A class to start and shutdown public session state for a test. |
| 13 class ScopedTestPublicSessionLoginState { | 13 class ScopedTestPublicSessionLoginState { |
| 14 public: | 14 public: |
| 15 ScopedTestPublicSessionLoginState(); | 15 ScopedTestPublicSessionLoginState(); |
| 16 ~ScopedTestPublicSessionLoginState(); | 16 ~ScopedTestPublicSessionLoginState(); |
| 17 | 17 |
| 18 private: | 18 private: |
| 19 bool needs_shutdown_ = false; |
| 20 |
| 19 DISALLOW_COPY_AND_ASSIGN(ScopedTestPublicSessionLoginState); | 21 DISALLOW_COPY_AND_ASSIGN(ScopedTestPublicSessionLoginState); |
| 20 }; | 22 }; |
| 21 | 23 |
| 22 } // namespace chromeos | 24 } // namespace chromeos |
| 23 | 25 |
| 24 #endif // CHROMEOS_LOGIN_SCOPED_TEST_PUBLIC_SESSION_LOGIN_STATE_H_ | 26 #endif // CHROMEOS_LOGIN_SCOPED_TEST_PUBLIC_SESSION_LOGIN_STATE_H_ |
| OLD | NEW |