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

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

Issue 8573025: chromeos: Move EnableScreenLock to PowerManagerClient from PowerLibrary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased Created 9 years 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
« no previous file with comments | « chrome/browser/chromeos/cros/cros_mock.cc ('k') | chrome/browser/chromeos/cros/power_library.h » ('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) 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
25 MOCK_METHOD1(EnableScreenLock, void(bool));
26 }; 24 };
27 25
28 } // namespace chromeos 26 } // namespace chromeos
29 27
30 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_POWER_LIBRARY_H_ 28 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_POWER_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/cros_mock.cc ('k') | chrome/browser/chromeos/cros/power_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698