1 // Copyright (c) 2012 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/kiosk_mode/mock_kiosk_mode_settings.h"
9 bool MockKioskModeSettings::IsKioskModeEnabled() {
13 void MockKioskModeSettings::Initialize(
14 const base::Closure
& notify_initialized
) {
15 is_initialized_
= true;
16 notify_initialized
.Run();
19 bool MockKioskModeSettings::is_initialized() const {
20 return is_initialized_
;
23 base::TimeDelta
MockKioskModeSettings::GetIdleLogoutTimeout() const {
25 return base::TimeDelta::FromSeconds(-1);
27 return base::TimeDelta::FromMilliseconds(kMockIdleLogoutTimeoutMs
);
30 base::TimeDelta
MockKioskModeSettings::GetIdleLogoutWarningDuration() const {
32 return base::TimeDelta::FromSeconds(-1);
34 return base::TimeDelta::FromMilliseconds(kMockIdleLogoutWarningDurationMs
);
37 MockKioskModeSettings::MockKioskModeSettings() : is_initialized_(false) {
40 MockKioskModeSettings::~MockKioskModeSettings() {
43 } // namespace chromeos