blob: 0e417f3f8334c4ccd860b02b8e5872eef09691bd [file] [log] [blame]
// Copyright 2021 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 MINIOS_MOCK_UPDATE_ENGINE_PROXY_H_
#define MINIOS_MOCK_UPDATE_ENGINE_PROXY_H_
#include <gmock/gmock.h>
#include "minios/update_engine_proxy.h"
namespace minios {
class MockUpdateEngineProxy : public UpdateEngineProxy {
public:
MockUpdateEngineProxy() : UpdateEngineProxy(nullptr) {}
MockUpdateEngineProxy(const MockUpdateEngineProxy&) = delete;
MockUpdateEngineProxy& operator=(const MockUpdateEngineProxy&) = delete;
MOCK_METHOD(void, Init, (), (override));
MOCK_METHOD(void, SetDelegate, (UpdaterDelegate * delegate), (override));
MOCK_METHOD(void, TriggerReboot, (), (override));
MOCK_METHOD(bool, StartUpdate, (), (override));
};
} // namespace minios
#endif // MINIOS_MOCK_UPDATE_ENGINE_PROXY_H_