blob: 4afa8ebb88e1c79568d848596c73e5c3fea73a5b [file] [log] [blame]
// Copyright 2023 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLEX_HWIS_MOCK_HTTP_SENDER_H_
#define FLEX_HWIS_MOCK_HTTP_SENDER_H_
#include "flex_hwis/http_sender.h"
#include <gmock/gmock.h>
namespace flex_hwis {
class MockHttpSender : public HttpSender {
public:
MockHttpSender() = default;
MockHttpSender(const MockHttpSender&) = delete;
MockHttpSender& operator=(const MockHttpSender&) = delete;
MOCK_METHOD(bool,
DeleteDevice,
(const hwis_proto::DeleteDevice& device_info),
(override));
MOCK_METHOD(DeviceUpdateResult,
UpdateDevice,
(const hwis_proto::Device& device_info),
(override));
MOCK_METHOD(DeviceRegisterResult,
RegisterNewDevice,
(const hwis_proto::Device& device_info),
(override));
};
} // namespace flex_hwis
#endif // FLEX_HWIS_MOCK_HTTP_SENDER_H_