| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_KIOSK_MODE_MOCK_KIOSK_MODE_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_KIOSK_MODE_MOCK_KIOSK_MODE_SETTINGS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_MOCK_KIOSK_MODE_SETTINGS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_KIOSK_MODE_MOCK_KIOSK_MODE_SETTINGS_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" | 8 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 namespace chromeos { | 28 namespace chromeos { |
| 29 | 29 |
| 30 class MockKioskModeSettings : public KioskModeSettings { | 30 class MockKioskModeSettings : public KioskModeSettings { |
| 31 public: | 31 public: |
| 32 // We should be able to instantiate mock instances, unlike the main kiosk | 32 // We should be able to instantiate mock instances, unlike the main kiosk |
| 33 // mode settings class, which should always have only one global instance. | 33 // mode settings class, which should always have only one global instance. |
| 34 MockKioskModeSettings(); | 34 MockKioskModeSettings(); |
| 35 virtual ~MockKioskModeSettings(); | 35 virtual ~MockKioskModeSettings(); |
| 36 | 36 |
| 37 virtual bool IsKioskModeEnabled() OVERRIDE; | 37 virtual bool IsKioskModeEnabled() override; |
| 38 | 38 |
| 39 // Initialize the mock class. | 39 // Initialize the mock class. |
| 40 virtual void Initialize(const base::Closure& notify_initialized) OVERRIDE; | 40 virtual void Initialize(const base::Closure& notify_initialized) override; |
| 41 virtual bool is_initialized() const OVERRIDE; | 41 virtual bool is_initialized() const override; |
| 42 | 42 |
| 43 // The time to logout the user in on idle. | 43 // The time to logout the user in on idle. |
| 44 virtual base::TimeDelta GetIdleLogoutTimeout() const OVERRIDE; | 44 virtual base::TimeDelta GetIdleLogoutTimeout() const override; |
| 45 | 45 |
| 46 // The time to show the countdown timer for. | 46 // The time to show the countdown timer for. |
| 47 virtual base::TimeDelta GetIdleLogoutWarningDuration() const OVERRIDE; | 47 virtual base::TimeDelta GetIdleLogoutWarningDuration() const override; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 friend struct base::DefaultLazyInstanceTraits<MockKioskModeSettings>; | 50 friend struct base::DefaultLazyInstanceTraits<MockKioskModeSettings>; |
| 51 | 51 |
| 52 bool is_initialized_; | 52 bool is_initialized_; |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(MockKioskModeSettings); | 54 DISALLOW_COPY_AND_ASSIGN(MockKioskModeSettings); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace chromeos | 57 } // namespace chromeos |
| 58 | 58 |
| 59 #endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_MOCK_KIOSK_MODE_SETTINGS_H_ | 59 #endif // CHROME_BROWSER_CHROMEOS_KIOSK_MODE_MOCK_KIOSK_MODE_SETTINGS_H_ |
| OLD | NEW |