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_MOCK_POWER_LIBRARY_H_ 6#define CHROME_BROWSER_CHROMEOS_CROS_MOCK_POWER_LIBRARY_H_ 7#pragma once 8 9#include "chrome/browser/chromeos/cros/power_library.h" 10#include "testing/gmock/include/gmock/gmock.h" 11 12namespace chromeos { 13 14class MockPowerLibrary : public PowerLibrary { 15 public: 16 MockPowerLibrary() {} 17 virtual ~MockPowerLibrary() {} 18 MOCK_METHOD1(AddObserver, void(Observer*)); 19 MOCK_METHOD1(RemoveObserver, void(Observer*)); 20 21 MOCK_CONST_METHOD0(line_power_on, bool(void)); 22 MOCK_CONST_METHOD0(battery_fully_charged, bool(void)); 23 MOCK_CONST_METHOD0(battery_percentage, double(void)); 24 MOCK_CONST_METHOD0(battery_is_present, bool(void)); 25 MOCK_CONST_METHOD0(battery_time_to_empty, base::TimeDelta(void)); 26 MOCK_CONST_METHOD0(battery_time_to_full, base::TimeDelta(void)); 27 28 MOCK_METHOD1(EnableScreenLock, void(bool)); 29 MOCK_METHOD0(RequestRestart, void(void)); 30 MOCK_METHOD0(RequestShutdown, void(void)); 31}; 32 33} // namespace chromeos 34 35#endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_POWER_LIBRARY_H_ 36