blob: 4ebafba1cdfeb28a0e14c64d42b084d4c9ec0536 [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_ACTION_MOCK_H__
#define CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_MOCK_H__
#include <gmock/gmock.h>
#include "update_engine/action.h"
namespace chromeos_update_engine {
class ActionMock;
template<>
class ActionTraits<ActionMock> {
public:
typedef NoneType OutputObjectType;
typedef NoneType InputObjectType;
};
class ActionMock : public Action<ActionMock> {
public:
MOCK_METHOD0(PerformAction, void());
MOCK_CONST_METHOD0(Type, std::string());
};
} // namespace chromeos_update_engine
#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_ACTION_MOCK_H__