Index: chrome/browser/chromeos/kiosk_mode/mock_kiosk_mode_settings.h |
diff --git a/chrome/browser/chromeos/kiosk_mode/mock_kiosk_mode_settings.h b/chrome/browser/chromeos/kiosk_mode/mock_kiosk_mode_settings.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..828dc3d531d69aa7861b36a299045baaa9326392 |
--- /dev/null |
+++ b/chrome/browser/chromeos/kiosk_mode/mock_kiosk_mode_settings.h |
@@ -0,0 +1,57 @@ |
+// Copyright (c) 2012 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_KIOSK_MODE_MOCK_KIOSK_MODE_SETTINGS_H_ |
+#define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_MOCK_KIOSK_MODE_SETTINGS_H_ |
+#pragma once |
+ |
+#include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" |
+ |
+#include <string> |
+ |
+#include "base/basictypes.h" |
+#include "base/callback_forward.h" |
+#include "base/compiler_specific.h" |
+#include "base/time.h" |
+ |
+namespace base { |
+template <typename T> struct DefaultLazyInstanceTraits; |
+} |
+ |
+namespace chromeos { |
+ |
+class MockKioskModeSettings : public KioskModeSettings { |
Mattias Nissler (ping if slow)
2012/03/20 13:10:35
AFAICS, this is not used at all. How about moving
rkc
2012/03/20 21:00:42
Done.
|
+ public: |
+ // We should be able to instantiate mock instances, unlike the main kiosk |
+ // mode settings class, which should always have only one global instance. |
+ MockKioskModeSettings(); |
+ |
+ // This method returns if we want to test kiosk mode as enabled or not. |
+ bool IsTestKioskModeEnabled() OVERRIDE; |
+ |
+ // Initialize the mock class. |
+ void Initialize(const base::Closure& notify_initialized) OVERRIDE; |
+ bool is_initialized() const OVERRIDE { return is_initialized_; } |
+ |
+ // The path to the screensaver extension. |
+ std::string GetScreensaverPath() const OVERRIDE; |
+ // The timeout before which we'll start showing the screensaver. |
+ base::TimeDelta GetScreensaverTimeout() const OVERRIDE; |
+ |
+ // The time to logout the user in on idle. |
+ base::TimeDelta GetIdleLogoutTimeout() const OVERRIDE; |
+ // The time to show the countdown timer for. |
+ base::TimeDelta GetIdleLogoutWarningDuration() const OVERRIDE; |
+ |
+ private: |
+ friend struct base::DefaultLazyInstanceTraits<MockKioskModeSettings>; |
+ |
+ bool is_initialized_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(MockKioskModeSettings); |
+}; |
+ |
+} // namespace chromeos |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_MOCK_KIOSK_MODE_SETTINGS_H_ |