blob: 8685709dfd2e269691c111913b9eb9c6cc4f4ee8 [file] [log] [blame]
// Copyright 2018 The Fuchsia 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 SRC_CONNECTIVITY_TELEPHONY_DRIVERS_QMI_FAKE_TRANSPORT_FAKE_DEVICE_H_
#define SRC_CONNECTIVITY_TELEPHONY_DRIVERS_QMI_FAKE_TRANSPORT_FAKE_DEVICE_H_
#include <fuchsia/hardware/test/c/banjo.h>
#include <lib/ddk/debug.h>
#include <lib/ddk/device.h>
#include <lib/ddk/driver.h>
#include <zircon/compiler.h>
#include <zircon/syscalls.h>
#include <zircon/types.h>
#define _ALL_SOURCE
#include <fidl/fuchsia.hardware.telephony.transport/cpp/wire.h>
#include <fidl/fuchsia.telephony.snoop/cpp/wire.h>
#include <threads.h>
#include <src/connectivity/telephony/tests/fake-drivers/fake-transport-base/fake-transport-base.h>
namespace qmi_fake {
class QmiDevice : public tel_fake::Device {
public:
QmiDevice(zx_device_t* device);
zx_status_t Bind() override;
void ReplyCtrlMsg(uint8_t* req, uint32_t req_size, uint8_t* resp, uint32_t resp_size) override;
void SnoopCtrlMsg(uint8_t* snoop_data, uint32_t snoop_data_len,
fuchsia_telephony_snoop::wire::Direction direction) override;
};
} // namespace qmi_fake
#endif // SRC_CONNECTIVITY_TELEPHONY_DRIVERS_QMI_FAKE_TRANSPORT_FAKE_DEVICE_H_