• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_SCREEN_LOCK_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_SCREEN_LOCK_LIBRARY_H_
7 #pragma once
8 
9 #include "chrome/browser/chromeos/cros/screen_lock_library.h"
10 #include "testing/gmock/include/gmock/gmock.h"
11 
12 namespace chromeos {
13 
14 class MockScreenLockLibrary : public ScreenLockLibrary {
15  public:
MockScreenLockLibrary()16   MockScreenLockLibrary() {}
~MockScreenLockLibrary()17   virtual ~MockScreenLockLibrary() {}
18   MOCK_METHOD1(AddObserver, void(Observer*));
19   MOCK_METHOD1(RemoveObserver, void(Observer*));
20 
21   MOCK_METHOD0(NotifyScreenLockRequested, void());
22   MOCK_METHOD0(NotifyScreenLockCompleted, void());
23   MOCK_METHOD0(NotifyScreenUnlockRequested, void());
24   MOCK_METHOD0(NotifyScreenUnlockCompleted, void());
25 };
26 
27 }  // namespace chromeos
28 
29 #endif  // CHROME_BROWSER_CHROMEOS_CROS_MOCK_SCREEN_LOCK_LIBRARY_H_
30