chromium/services/device/geolocation/fake_location_provider.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file implements a fake location provider and the factory functions for
// various ways of creating it.
// TODO(lethalantidote): Convert location_arbitrator_impl to use actual mock
// instead of FakeLocationProvider.

#include "services/device/geolocation/fake_location_provider.h"

#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/memory/weak_ptr.h"
#include "base/task/single_thread_task_runner.h"

namespace device {

FakeLocationProvider::FakeLocationProvider()
    :{}

FakeLocationProvider::~FakeLocationProvider() = default;

void FakeLocationProvider::HandlePositionChanged(
    mojom::GeopositionResultPtr result) {}

void FakeLocationProvider::FillDiagnostics(
    mojom::GeolocationDiagnostics& diagnostics) {}

void FakeLocationProvider::SetUpdateCallback(
    const LocationProviderUpdateCallback& callback) {}

void FakeLocationProvider::StartProvider(bool high_accuracy) {}

void FakeLocationProvider::StopProvider() {}

const mojom::GeopositionResult* FakeLocationProvider::GetPosition() {}

void FakeLocationProvider::OnPermissionGranted() {}

}  // namespace device