blob: 73ae8d9b0d8d1f8bb36cf7be36d4454e2e3e4574 [file] [log] [blame]
// Copyright 2014 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_POLICY_MANAGER_MOCK_VARIABLE_H_
#define CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_MOCK_VARIABLE_H_
#include <gmock/gmock.h>
#include "update_engine/policy_manager/variable.h"
namespace chromeos_policy_manager {
// This is a generic mock of the Variable class.
template<typename T>
class MockVariable : public Variable<T> {
public:
using Variable<T>::Variable;
MOCK_METHOD2_T(GetValue, const T*(base::TimeDelta, std::string*));
private:
DISALLOW_COPY_AND_ASSIGN(MockVariable);
};
} // namespace chromeos_policy_manager
#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_POLICY_MANAGER_MOCK_VARIABLE_H_