| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2010 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_CROS_FAKE_FAKE_POWER_LIBRARY_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_FAKE_FAKE_POWER_LIBRARY_H_ | |
| 7 | |
| 8 #include "chrome/browser/chromeos/cros/power_library.h" | |
| 9 | |
| 10 namespace chromeos { | |
| 11 | |
| 12 class FakePowerLibrary : public PowerLibrary { | |
| 13 public: | |
| 14 FakePowerLibrary() {} | |
| 15 virtual ~FakePowerLibrary() {} | |
| 16 virtual void AddObserver(Observer* observer) {} | |
| 17 virtual void RemoveObserver(Observer* observer) {} | |
| 18 virtual bool line_power_on() const { return true; } | |
| 19 virtual bool battery_fully_charged() const { return true; } | |
| 20 virtual double battery_percentage() const { return 100; } | |
| 21 virtual bool battery_is_present() const { return true; } | |
| 22 virtual base::TimeDelta battery_time_to_empty() const { | |
| 23 return base::TimeDelta::FromSeconds(0); | |
| 24 } | |
| 25 virtual base::TimeDelta battery_time_to_full() const { | |
| 26 return base::TimeDelta::FromSeconds(0); | |
| 27 } | |
| 28 }; | |
| 29 | |
| 30 } // namespace chromeos | |
| 31 | |
| 32 #endif // CHROME_BROWSER_CHROMEOS_CROS_FAKE_FAKE_POWER_LIBRARY_H_ | |
| OLD | NEW |