Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(404)

Side by Side Diff: chrome/browser/chromeos/cros/mock_power_library.h

Issue 1142005: Mocks for all libcros elements (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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_MOCK_POWER_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_POWER_LIBRARY_H_
7
8 #include "chrome/browser/chromeos/cros/power_library.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10
11 namespace chromeos {
12
13 class MockPowerLibrary : public PowerLibrary {
14 public:
15 MockPowerLibrary() {}
16 virtual ~MockPowerLibrary() {}
17 MOCK_METHOD1(AddObserver, void(Observer*));
18 MOCK_METHOD1(RemoveObserver, void(Observer*));
19
20 MOCK_CONST_METHOD1(line_power_on, bool(void));
21 MOCK_CONST_METHOD1(battery_fully_charged, bool(void));
22 MOCK_CONST_METHOD1(battery_percentage, double(void));
23 MOCK_CONST_METHOD1(battery_is_present, bool(void));
24 MOCK_CONST_METHOD1(battery_time_to_empty, base::TimeDelta(void));
25 MOCK_CONST_METHOD1(battery_time_to_full, base::TimeDelta(void));
26 };
27
28 } // namespace chromeos
29
30 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_POWER_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/mock_network_library.h ('k') | chrome/browser/chromeos/cros/mock_synaptics_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698