#ifndef DEVICE_BLUETOOTH_PUBLIC_MOJOM_EMULATION_FAKE_BLUETOOTH_MOJOM_H_
#define DEVICE_BLUETOOTH_PUBLIC_MOJOM_EMULATION_FAKE_BLUETOOTH_MOJOM_H_
#include <stdint.h>
#include <limits>
#include <optional>
#include <type_traits>
#include <utility>
#include "base/types/cxx23_to_underlying.h"
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "device/bluetooth/public/mojom/emulation/fake_bluetooth.mojom-features.h"
#include "device/bluetooth/public/mojom/emulation/fake_bluetooth.mojom-shared.h"
#include "device/bluetooth/public/mojom/emulation/fake_bluetooth.mojom-forward.h"
#include "device/bluetooth/public/mojom/uuid.mojom.h"
#include <string>
#include <vector>
#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/lib/message_size_estimator.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"
#include "device/bluetooth/public/mojom/emulation/fake_bluetooth_mojom_traits.h"
namespace bluetooth::mojom {
class FakeBluetoothProxy;
template <typename ImplRefTraits>
class FakeBluetoothStub;
class FakeBluetoothRequestValidator;
class FakeBluetoothResponseValidator;
class FakeBluetooth
: public FakeBluetoothInterfaceBase { … };
class FakeCentralProxy;
template <typename ImplRefTraits>
class FakeCentralStub;
class FakeCentralRequestValidator;
class FakeCentralResponseValidator;
class FakeCentral
: public FakeCentralInterfaceBase { … };
class FakeBluetoothProxy
: public FakeBluetooth { … };
class FakeCentralProxy
: public FakeCentral { … };
class FakeBluetoothStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<FakeBluetooth>>
class FakeBluetoothStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
FakeBluetoothStub() = default;
~FakeBluetoothStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class FakeCentralStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<FakeCentral>>
class FakeCentralStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
FakeCentralStub() = default;
~FakeCentralStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class FakeBluetoothRequestValidator : public mojo::MessageReceiver { … };
class FakeCentralRequestValidator : public mojo::MessageReceiver { … };
class FakeBluetoothResponseValidator : public mojo::MessageReceiver { … };
class FakeCentralResponseValidator : public mojo::MessageReceiver { … };
class Appearance { … };
template <typename T, Appearance::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, Appearance::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, Appearance::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, Appearance::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class Power { … };
template <typename T, Power::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, Power::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, Power::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, Power::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class ServiceDataMap { … };
template <typename T, ServiceDataMap::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, ServiceDataMap::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, ServiceDataMap::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, ServiceDataMap::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class ScanRecord { … };
template <typename T, ScanRecord::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, ScanRecord::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, ScanRecord::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, ScanRecord::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class ScanResult { … };
template <typename T, ScanResult::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, ScanResult::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, ScanResult::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, ScanResult::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class CharacteristicProperties { … };
template <typename T, CharacteristicProperties::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, CharacteristicProperties::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, CharacteristicProperties::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, CharacteristicProperties::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
AppearancePtr Appearance::Clone() const { … }
template <typename T, Appearance::EnableIfSame<T>*>
bool Appearance::Equals(const T& other_struct) const { … }
template <typename T, Appearance::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PowerPtr Power::Clone() const { … }
template <typename T, Power::EnableIfSame<T>*>
bool Power::Equals(const T& other_struct) const { … }
template <typename T, Power::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ServiceDataMapPtr ServiceDataMap::Clone() const { … }
template <typename T, ServiceDataMap::EnableIfSame<T>*>
bool ServiceDataMap::Equals(const T& other_struct) const { … }
template <typename T, ServiceDataMap::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ScanRecordPtr ScanRecord::Clone() const { … }
template <typename T, ScanRecord::EnableIfSame<T>*>
bool ScanRecord::Equals(const T& other_struct) const { … }
template <typename T, ScanRecord::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ScanResultPtr ScanResult::Clone() const { … }
template <typename T, ScanResult::EnableIfSame<T>*>
bool ScanResult::Equals(const T& other_struct) const { … }
template <typename T, ScanResult::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
CharacteristicPropertiesPtr CharacteristicProperties::Clone() const { … }
template <typename T, CharacteristicProperties::EnableIfSame<T>*>
bool CharacteristicProperties::Equals(const T& other_struct) const { … }
template <typename T, CharacteristicProperties::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::bluetooth::mojom::Appearance::DataView,
::bluetooth::mojom::AppearancePtr> { … };
template <>
struct StructTraits<::bluetooth::mojom::Power::DataView,
::bluetooth::mojom::PowerPtr> { … };
template <>
struct StructTraits<::bluetooth::mojom::ServiceDataMap::DataView,
::bluetooth::mojom::ServiceDataMapPtr> { … };
template <>
struct StructTraits<::bluetooth::mojom::ScanRecord::DataView,
::bluetooth::mojom::ScanRecordPtr> { … };
template <>
struct StructTraits<::bluetooth::mojom::ScanResult::DataView,
::bluetooth::mojom::ScanResultPtr> { … };
template <>
struct StructTraits<::bluetooth::mojom::CharacteristicProperties::DataView,
::bluetooth::mojom::CharacteristicPropertiesPtr> { … };
}
#endif