| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CROS_MOCK_POWER_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_POWER_LIBRARY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_POWER_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_POWER_LIBRARY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "chrome/browser/chromeos/cros/power_library.h" | 10 #include "chrome/browser/chromeos/cros/power_library.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 | 14 |
| 15 class MockPowerLibrary : public PowerLibrary { | 15 class MockPowerLibrary : public PowerLibrary { |
| 16 public: | 16 public: |
| 17 MockPowerLibrary(); | 17 MockPowerLibrary(); |
| 18 virtual ~MockPowerLibrary(); | 18 virtual ~MockPowerLibrary(); |
| 19 | 19 |
| 20 MOCK_METHOD0(Init, void(void)); | 20 MOCK_METHOD0(Init, void(void)); |
| 21 | 21 |
| 22 MOCK_METHOD1(AddObserver, void(Observer*)); | 22 MOCK_METHOD1(AddObserver, void(Observer*)); |
| 23 MOCK_METHOD1(RemoveObserver, void(Observer*)); | 23 MOCK_METHOD1(RemoveObserver, void(Observer*)); |
| 24 | 24 |
| 25 MOCK_METHOD1(CalculateIdleTime, void(CalculateIdleTimeCallback*)); | |
| 26 | |
| 27 MOCK_METHOD1(EnableScreenLock, void(bool)); | 25 MOCK_METHOD1(EnableScreenLock, void(bool)); |
| 28 }; | 26 }; |
| 29 | 27 |
| 30 } // namespace chromeos | 28 } // namespace chromeos |
| 31 | 29 |
| 32 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_POWER_LIBRARY_H_ | 30 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_POWER_LIBRARY_H_ |
| OLD | NEW |