| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 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 CHROMEOS_CRYPTOHOME_MOCK_CRYPTOHOME_LIBRARY_H_ | |
| 6 #define CHROMEOS_CRYPTOHOME_MOCK_CRYPTOHOME_LIBRARY_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "chromeos/cryptohome/cryptohome_library.h" | |
| 12 #include "testing/gmock/include/gmock/gmock.h" | |
| 13 | |
| 14 using ::testing::Invoke; | |
| 15 using ::testing::WithArgs; | |
| 16 using ::testing::_; | |
| 17 | |
| 18 namespace chromeos { | |
| 19 | |
| 20 class MockCryptohomeLibrary : public CryptohomeLibrary { | |
| 21 public: | |
| 22 MockCryptohomeLibrary(); | |
| 23 virtual ~MockCryptohomeLibrary(); | |
| 24 MOCK_METHOD0(GetSystemSalt, std::string(void)); | |
| 25 | |
| 26 MOCK_METHOD1(EncryptWithSystemSalt, std::string(const std::string&)); | |
| 27 MOCK_METHOD1(DecryptWithSystemSalt, std::string(const std::string&)); | |
| 28 | |
| 29 private: | |
| 30 DISALLOW_COPY_AND_ASSIGN(MockCryptohomeLibrary); | |
| 31 }; | |
| 32 | |
| 33 } // namespace chromeos | |
| 34 | |
| 35 #endif // CHROMEOS_CRYPTOHOME_MOCK_CRYPTOHOME_LIBRARY_H_ | |
| OLD | NEW |