blob: cf030f089371948249c85abe2f4a7d6132323da1 [file] [log] [blame]
Darin Petkov1cbd78f2010-07-29 12:38:34 -07001// 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
11namespace chromeos_update_engine {
12
13class 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__