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

Side by Side Diff: mock_backlight.h

Issue 6715014: Display off is done by a callback into backlight controller (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/power_manager.git
Patch Set: Deleted unused lines, 2010->2011 Created 9 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
« no previous file with comments | « backlight_interface.h ('k') | powerd_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
Simon Que 2011/03/22 22:08:27 Fixed.
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 POWER_MANAGER_MOCK_BACKLIGHT_H_ 5 #ifndef POWER_MANAGER_MOCK_BACKLIGHT_H_
6 #define POWER_MANAGER_MOCK_BACKLIGHT_H_ 6 #define POWER_MANAGER_MOCK_BACKLIGHT_H_
7 7
8 #include <gmock/gmock.h> 8 #include <gmock/gmock.h>
9 9
10 #include "power_manager/backlight_interface.h" 10 #include "power_manager/backlight_interface.h"
11 11
12 namespace power_manager { 12 namespace power_manager {
13 13
14 class MockBacklight : public BacklightInterface { 14 class MockBacklight : public BacklightInterface {
15 public: 15 public:
16 MOCK_METHOD2(GetBrightness, bool(int64* level, int64* max)); 16 MOCK_METHOD2(GetBrightness, bool(int64* level, int64* max));
17 MOCK_METHOD1(GetTargetBrightness, bool(int64* level)); 17 MOCK_METHOD1(GetTargetBrightness, bool(int64* level));
18 MOCK_METHOD1(SetBrightness, bool(int64 level)); 18 MOCK_METHOD1(SetBrightness, bool(int64 level));
19 MOCK_METHOD2(SetScreenOffFunc, void(SIGNAL_CALLBACK_PTR(void, func),
20 void *data));
19 }; 21 };
20 22
21 } // namespace power_manager 23 } // namespace power_manager
22 24
23 #endif // POWER_MANAGER_MOCK_BACKLIGHT_H_ 25 #endif // POWER_MANAGER_MOCK_BACKLIGHT_H_
OLDNEW
« no previous file with comments | « backlight_interface.h ('k') | powerd_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698