| Index: chrome/browser/chromeos/login/session/user_session_manager_test_api.h
|
| diff --git a/chrome/browser/chromeos/login/session/user_session_manager_test_api.h b/chrome/browser/chromeos/login/session/user_session_manager_test_api.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d811470d3a5077fddfe258f1ec30abed35b57938
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/login/session/user_session_manager_test_api.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright (c) 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_TEST_API_H_
|
| +#define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_TEST_API_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "chrome/browser/chromeos/login/session/user_session_manager.h"
|
| +
|
| +namespace chromeos {
|
| +namespace test {
|
| +
|
| +// Accesses private data from a UserSessionManager for testing.
|
| +class UserSessionManagerTestApi {
|
| + public:
|
| + explicit UserSessionManagerTestApi(UserSessionManager* session_manager);
|
| +
|
| + // Injects |user_context| that will be used to create StubAuthenticator
|
| + // instance when UserSessionManager::CreateAuthenticator() is called.
|
| + void InjectStubUserContext(const UserContext& user_context);
|
| +
|
| + // Controls whether browser instance should be launched after sign in
|
| + // (used in tests).
|
| + void SetShouldLaunchBrowserInTests(bool should_launch_browser);
|
| +
|
| + private:
|
| + UserSessionManager* session_manager_; // not owned
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(UserSessionManagerTestApi);
|
| +};
|
| +
|
| +} // namespace test
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_TEST_API_H_
|
|
|