blob: cf030f089371948249c85abe2f4a7d6132323da1 [file] [log] [blame]
// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_MOCK_H__
#define CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_MOCK_H__
#include "gmock/gmock.h"
#include "update_engine/prefs_interface.h"
namespace chromeos_update_engine {
class PrefsMock : public PrefsInterface {
public:
MOCK_METHOD2(GetString, bool(const std::string& key, std::string* value));
MOCK_METHOD2(SetString, bool(const std::string& key,
const std::string& value));
MOCK_METHOD2(GetInt64, bool(const std::string& key, int64_t* value));
MOCK_METHOD2(SetInt64, bool(const std::string& key, const int64_t value));
};
} // namespace chromeos_update_engine
#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_MOCK_H__