Darin Petkov | 1cbd78f | 2010-07-29 12:38:34 -0700 | [diff] [blame] | 1 | // Copyright (c) 2010 The Chromium OS 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_PLATFORM_UPDATE_ENGINE_PREFS_MOCK_H__ |
| 6 | #define CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_MOCK_H__ |
| 7 | |
| 8 | #include "gmock/gmock.h" |
| 9 | #include "update_engine/prefs_interface.h" |
| 10 | |
| 11 | namespace chromeos_update_engine { |
| 12 | |
| 13 | class PrefsMock : public PrefsInterface { |
| 14 | public: |
| 15 | MOCK_METHOD2(GetString, bool(const std::string& key, std::string* value)); |
| 16 | MOCK_METHOD2(SetString, bool(const std::string& key, |
| 17 | const std::string& value)); |
| 18 | MOCK_METHOD2(GetInt64, bool(const std::string& key, int64_t* value)); |
| 19 | MOCK_METHOD2(SetInt64, bool(const std::string& key, const int64_t value)); |
| 20 | }; |
| 21 | |
| 22 | } // namespace chromeos_update_engine |
| 23 | |
| 24 | #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_MOCK_H__ |