OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_KIOSK_MODE_MOCK_KIOSK_MODE_SETTINGS_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_MOCK_KIOSK_MODE_SETTINGS_H_ | |
7 #pragma once | |
8 | |
9 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" | |
10 | |
11 #include <string> | |
12 | |
13 #include "base/basictypes.h" | |
14 #include "base/callback_forward.h" | |
15 #include "base/compiler_specific.h" | |
16 #include "base/time.h" | |
17 | |
18 namespace base { | |
19 template <typename T> struct DefaultLazyInstanceTraits; | |
20 } | |
21 | |
22 namespace chromeos { | |
23 | |
24 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.
| |
25 public: | |
26 // We should be able to instantiate mock instances, unlike the main kiosk | |
27 // mode settings class, which should always have only one global instance. | |
28 MockKioskModeSettings(); | |
29 | |
30 // This method returns if we want to test kiosk mode as enabled or not. | |
31 bool IsTestKioskModeEnabled() OVERRIDE; | |
32 | |
33 // Initialize the mock class. | |
34 void Initialize(const base::Closure& notify_initialized) OVERRIDE; | |
35 bool is_initialized() const OVERRIDE { return is_initialized_; } | |
36 | |
37 // The path to the screensaver extension. | |
38 std::string GetScreensaverPath() const OVERRIDE; | |
39 // The timeout before which we'll start showing the screensaver. | |
40 base::TimeDelta GetScreensaverTimeout() const OVERRIDE; | |
41 | |
42 // The time to logout the user in on idle. | |
43 base::TimeDelta GetIdleLogoutTimeout() const OVERRIDE; | |
44 // The time to show the countdown timer for. | |
45 base::TimeDelta GetIdleLogoutWarningDuration() const OVERRIDE; | |
46 | |
47 private: | |
48 friend struct base::DefaultLazyInstanceTraits<MockKioskModeSettings>; | |
49 | |
50 bool is_initialized_; | |
51 | |
52 DISALLOW_COPY_AND_ASSIGN(MockKioskModeSettings); | |
53 }; | |
54 | |
55 } // namespace chromeos | |
56 | |
57 #endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_MOCK_KIOSK_MODE_SETTINGS_H_ | |
OLD | NEW |