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

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

Issue 7524014: cros: Remove the unneed default ctor from ScreenLockLibrary interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mock Created 9 years, 4 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 | « no previous file | chrome/browser/chromeos/cros/screen_lock_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) 2010 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_SCREEN_LOCK_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_SCREEN_LOCK_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_SCREEN_LOCK_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_SCREEN_LOCK_LIBRARY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/chromeos/cros/screen_lock_library.h" 9 #include "chrome/browser/chromeos/cros/screen_lock_library.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 namespace chromeos { 12 namespace chromeos {
13 13
14 class MockScreenLockLibrary : public ScreenLockLibrary { 14 class MockScreenLockLibrary : public ScreenLockLibrary {
15 public: 15 public:
16 MockScreenLockLibrary(); 16 MockScreenLockLibrary();
17 virtual ~MockScreenLockLibrary(); 17 virtual ~MockScreenLockLibrary();
18 18
19 MOCK_METHOD0(Init, void());
20
19 MOCK_METHOD1(AddObserver, void(Observer*)); 21 MOCK_METHOD1(AddObserver, void(Observer*));
20 MOCK_METHOD1(RemoveObserver, void(Observer*)); 22 MOCK_METHOD1(RemoveObserver, void(Observer*));
21 23
22 MOCK_METHOD0(NotifyScreenLockRequested, void()); 24 MOCK_METHOD0(NotifyScreenLockRequested, void());
23 MOCK_METHOD0(NotifyScreenLockCompleted, void()); 25 MOCK_METHOD0(NotifyScreenLockCompleted, void());
24 MOCK_METHOD0(NotifyScreenUnlockRequested, void()); 26 MOCK_METHOD0(NotifyScreenUnlockRequested, void());
25 MOCK_METHOD0(NotifyScreenUnlockCompleted, void()); 27 MOCK_METHOD0(NotifyScreenUnlockCompleted, void());
26 }; 28 };
27 29
28 } // namespace chromeos 30 } // namespace chromeos
29 31
30 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_SCREEN_LOCK_LIBRARY_H_ 32 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_SCREEN_LOCK_LIBRARY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/screen_lock_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698