Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / chromeos / login / session / user_session_manager_test_api.cc
blob4e170f65956eaae58c1559a94990b51298df1f3b
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/login/session/user_session_manager_test_api.h"
7 namespace chromeos {
8 namespace test {
10 UserSessionManagerTestApi::UserSessionManagerTestApi(
11 UserSessionManager* session_manager)
12 : session_manager_(session_manager) {
15 void UserSessionManagerTestApi::InjectStubUserContext(
16 const UserContext& user_context) {
17 session_manager_->InjectStubUserContext(user_context);
20 void UserSessionManagerTestApi::SetShouldLaunchBrowserInTests(
21 bool should_launch_browser) {
22 session_manager_->set_should_launch_browser_in_tests(should_launch_browser);
25 void UserSessionManagerTestApi::SetShouldObtainTokenHandleInTests(
26 bool should_obtain_handle) {
27 session_manager_->SetShouldObtainHandleInTests(should_obtain_handle);
30 } // namespace test
31 } // namespace chromeos