blob: 11ac91ae75510b02fea36215c419779727d499cb [file] [log] [blame]
// chromeos/components/sensors/mojom/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 CHROMEOS_COMPONENTS_SENSORS_MOJOM_CROS_SENSOR_SERVICE_MOJOM_TEST_UTILS_H_
#define CHROMEOS_COMPONENTS_SENSORS_MOJOM_CROS_SENSOR_SERVICE_MOJOM_TEST_UTILS_H_
#include "chromeos/components/sensors/mojom/cros_sensor_service.mojom.h"
namespace chromeos::sensors::mojom {
class SensorHalServerInterceptorForTesting : public SensorHalServer {
virtual SensorHalServer* GetForwardingInterface() = 0;
void CreateChannel(::mojo::PendingReceiver<::chromeos::sensors::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<::chromeos::sensors::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_;
};
} // chromeos::sensors::mojom
#endif // CHROMEOS_COMPONENTS_SENSORS_MOJOM_CROS_SENSOR_SERVICE_MOJOM_TEST_UTILS_H_