| // iioservice/mojo/cros_sensor_service.mojom-test-utils.h is auto generated by mojom_bindings_generator.py, do not edit |
| |
| // Copyright 2019 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef IIOSERVICE_MOJO_CROS_SENSOR_SERVICE_MOJOM_TEST_UTILS_H_ |
| #define IIOSERVICE_MOJO_CROS_SENSOR_SERVICE_MOJOM_TEST_UTILS_H_ |
| |
| #include "iioservice/mojo/cros_sensor_service.mojom.h" |
| |
| |
| namespace cros::mojom { |
| |
| |
| class SensorHalServerInterceptorForTesting : public SensorHalServer { |
| virtual SensorHalServer* GetForwardingInterface() = 0; |
| void CreateChannel(::mojo::PendingReceiver<::cros::mojom::SensorService> sensor_service_request) override; |
| }; |
| class SensorHalServerAsyncWaiter { |
| public: |
| explicit SensorHalServerAsyncWaiter(SensorHalServer* proxy); |
| |
| SensorHalServerAsyncWaiter(const SensorHalServerAsyncWaiter&) = delete; |
| SensorHalServerAsyncWaiter& operator=(const SensorHalServerAsyncWaiter&) = delete; |
| |
| ~SensorHalServerAsyncWaiter(); |
| |
| private: |
| SensorHalServer* const proxy_; |
| }; |
| |
| |
| class SensorHalClientInterceptorForTesting : public SensorHalClient { |
| virtual SensorHalClient* GetForwardingInterface() = 0; |
| void SetUpChannel(::mojo::PendingRemote<::cros::mojom::SensorService> sensor_service_ptr) override; |
| }; |
| class SensorHalClientAsyncWaiter { |
| public: |
| explicit SensorHalClientAsyncWaiter(SensorHalClient* proxy); |
| |
| SensorHalClientAsyncWaiter(const SensorHalClientAsyncWaiter&) = delete; |
| SensorHalClientAsyncWaiter& operator=(const SensorHalClientAsyncWaiter&) = delete; |
| |
| ~SensorHalClientAsyncWaiter(); |
| |
| private: |
| SensorHalClient* const proxy_; |
| }; |
| |
| |
| |
| |
| } // cros::mojom |
| |
| #endif // IIOSERVICE_MOJO_CROS_SENSOR_SERVICE_MOJOM_TEST_UTILS_H_ |