This source file includes following definitions.
- IsKioskModeEnabled
- Initialize
- is_initialized
- GetIdleLogoutTimeout
- GetIdleLogoutWarningDuration
#include "chrome/browser/chromeos/kiosk_mode/mock_kiosk_mode_settings.h"
namespace chromeos {
bool MockKioskModeSettings::IsKioskModeEnabled() {
return true;
}
void MockKioskModeSettings::Initialize(
const base::Closure& notify_initialized) {
is_initialized_ = true;
notify_initialized.Run();
}
bool MockKioskModeSettings::is_initialized() const {
return is_initialized_;
}
base::TimeDelta MockKioskModeSettings::GetIdleLogoutTimeout() const {
if (!is_initialized_)
return base::TimeDelta::FromSeconds(-1);
return base::TimeDelta::FromMilliseconds(kMockIdleLogoutTimeoutMs);
}
base::TimeDelta MockKioskModeSettings::GetIdleLogoutWarningDuration() const {
if (!is_initialized_)
return base::TimeDelta::FromSeconds(-1);
return base::TimeDelta::FromMilliseconds(kMockIdleLogoutWarningDurationMs);
}
MockKioskModeSettings::MockKioskModeSettings() : is_initialized_(false) {
}
MockKioskModeSettings::~MockKioskModeSettings() {
}
}