// services/device/public/mojom/geolocation.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 SERVICES_DEVICE_PUBLIC_MOJOM_GEOLOCATION_MOJOM_TEST_UTILS_H_
#define SERVICES_DEVICE_PUBLIC_MOJOM_GEOLOCATION_MOJOM_TEST_UTILS_H_

#include "services/device/public/mojom/geolocation.mojom.h"


namespace device::mojom {


class  GeolocationInterceptorForTesting : public Geolocation {
  virtual Geolocation* GetForwardingInterface() = 0;
  void SetHighAccuracyHint(bool high_accuracy) override;
  void QueryNextPosition(QueryNextPositionCallback callback) override;
  void QueryCachedPosition(QueryCachedPositionCallback callback) override;
};
class  GeolocationAsyncWaiter {
 public:
  explicit GeolocationAsyncWaiter(Geolocation* proxy);

  GeolocationAsyncWaiter(const GeolocationAsyncWaiter&) = delete;
  GeolocationAsyncWaiter& operator=(const GeolocationAsyncWaiter&) = delete;

  ~GeolocationAsyncWaiter();
  void QueryNextPosition(
      ::device::mojom::GeopositionResultPtr* out_result);
  ::device::mojom::GeopositionResultPtr QueryNextPosition();
  void QueryCachedPosition(
      ::device::mojom::GeopositionResultPtr* out_result);
  ::device::mojom::GeopositionResultPtr QueryCachedPosition();

 private:
  Geolocation* const proxy_;
};




}  // device::mojom

#endif  // SERVICES_DEVICE_PUBLIC_MOJOM_GEOLOCATION_MOJOM_TEST_UTILS_H_