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

#include "services/device/public/mojom/geolocation.mojom-blink.h"
#include "third_party/blink/public/platform/web_common.h"


namespace device::mojom::blink {


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

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

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

 private:
  Geolocation* const proxy_;
};




}  // device::mojom::blink

#endif  // SERVICES_DEVICE_PUBLIC_MOJOM_GEOLOCATION_MOJOM_BLINK_TEST_UTILS_H_