| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 CRYPTOHOME_MOCK_MOUNT_H_ | 5 #ifndef CRYPTOHOME_MOCK_MOUNT_H_ |
| 6 #define CRYPTOHOME_MOCK_MOUNT_H_ | 6 #define CRYPTOHOME_MOCK_MOUNT_H_ |
| 7 | 7 |
| 8 #include "cryptohome/mount.h" | 8 #include "mount.h" |
| 9 | 9 |
| 10 #include <gmock/gmock.h> | 10 #include <gmock/gmock.h> |
| 11 | 11 |
| 12 namespace cryptohome { | 12 namespace cryptohome { |
| 13 class Credentials; | 13 class Credentials; |
| 14 | 14 |
| 15 class MockMount : public Mount { | 15 class MockMount : public Mount { |
| 16 public: | 16 public: |
| 17 MockMount() {} | 17 MockMount() {} |
| 18 ~MockMount() {} | 18 ~MockMount() {} |
| 19 MOCK_METHOD0(Init, bool()); | 19 MOCK_METHOD0(Init, bool()); |
| 20 MOCK_METHOD1(TestCredentials, bool(const Credentials&)); | 20 MOCK_METHOD1(TestCredentials, bool(const Credentials&)); |
| 21 }; | 21 }; |
| 22 } // namespace cryptohome | 22 } // namespace cryptohome |
| 23 | 23 |
| 24 #endif // CRYPTOHOME_MOCK_MOUNT_H_ | 24 #endif // CRYPTOHOME_MOCK_MOUNT_H_ |
| OLD | NEW |