blob: 84433a6bc578b72d4cd663fc372a867128e62114 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// 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_CONFIG_MOJOM_BLINK_TEST_UTILS_H_
#define SERVICES_DEVICE_PUBLIC_MOJOM_GEOLOCATION_CONFIG_MOJOM_BLINK_TEST_UTILS_H_
#include "services/device/public/mojom/geolocation_config.mojom-blink.h"
#include "third_party/blink/public/platform/web_common.h"
namespace device {
namespace mojom {
namespace blink {
class BLINK_PLATFORM_EXPORT GeolocationConfigInterceptorForTesting : public GeolocationConfig {
virtual GeolocationConfig* GetForwardingInterface() = 0;
void IsHighAccuracyLocationBeingCaptured(IsHighAccuracyLocationBeingCapturedCallback callback) override;
};
class BLINK_PLATFORM_EXPORT GeolocationConfigAsyncWaiter {
public:
explicit GeolocationConfigAsyncWaiter(GeolocationConfig* proxy);
~GeolocationConfigAsyncWaiter();
void IsHighAccuracyLocationBeingCaptured(
bool* out_high_accuracy);
private:
GeolocationConfig* const proxy_;
DISALLOW_COPY_AND_ASSIGN(GeolocationConfigAsyncWaiter);
};
} // namespace blink
} // namespace mojom
} // namespace device
#endif // SERVICES_DEVICE_PUBLIC_MOJOM_GEOLOCATION_CONFIG_MOJOM_BLINK_TEST_UTILS_H_