OLD | NEW |
| (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 CRYPTOHOME_MOCK_AUTHENTICATOR_H_ | |
6 #define CRYPTOHOME_MOCK_AUTHENTICATOR_H_ | |
7 | |
8 #include "cryptohome/authenticator.h" | |
9 | |
10 #include <gmock/gmock.h> | |
11 | |
12 namespace cryptohome { | |
13 class Credentials; | |
14 | |
15 class MockAuthenticator : public Authenticator { | |
16 public: | |
17 MockAuthenticator() {} | |
18 ~MockAuthenticator() {} | |
19 MOCK_METHOD0(Init, bool()); | |
20 MOCK_CONST_METHOD1(TestAllMasterKeys, bool(const Credentials&)); | |
21 }; | |
22 } // namespace cryptohome | |
23 | |
24 #endif // CRYPTOHOME_MOCK_AUTHENTICATOR_H_ | |
OLD | NEW |