Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / browser / chromeos / kiosk_mode / mock_kiosk_mode_settings.cc
blob8361bb8e05cd398ceb28dedff07617eee6cd84d9
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"
7 namespace chromeos {
9 bool MockKioskModeSettings::IsKioskModeEnabled() {
10 return true;
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 {
24 if (!is_initialized_)
25 return base::TimeDelta::FromSeconds(-1);
27 return base::TimeDelta::FromMilliseconds(kMockIdleLogoutTimeoutMs);
30 base::TimeDelta MockKioskModeSettings::GetIdleLogoutWarningDuration() const {
31 if (!is_initialized_)
32 return base::TimeDelta::FromSeconds(-1);
34 return base::TimeDelta::FromMilliseconds(kMockIdleLogoutWarningDurationMs);
37 MockKioskModeSettings::MockKioskModeSettings() : is_initialized_(false) {
40 MockKioskModeSettings::~MockKioskModeSettings() {
43 } // namespace chromeos