#include "services/device/device_service_test_base.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/memory/ref_counted.h"
#include "base/task/single_thread_task_runner.h"
#include "base/task/thread_pool.h"
#include "build/build_config.h"
#include "services/device/device_service.h"
#include "services/device/public/cpp/geolocation/location_provider.h"
#include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_network_connection_tracker.h"
#if BUILDFLAG(OS_LEVEL_GEOLOCATION_PERMISSION_SUPPORTED)
#include "services/device/public/cpp/geolocation/geolocation_system_permission_manager.h"
#endif
namespace device {
namespace {
std::unique_ptr<LocationProvider> GetCustomLocationProviderForTest() { … }
std::unique_ptr<DeviceService> CreateTestDeviceService(
scoped_refptr<base::SingleThreadTaskRunner> file_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
mojo::PendingReceiver<mojom::DeviceService> receiver) { … }
}
DeviceServiceTestBase::DeviceServiceTestBase()
: … { … }
DeviceServiceTestBase::~DeviceServiceTestBase() = default;
void DeviceServiceTestBase::SetUp() { … }
void DeviceServiceTestBase::DestroyDeviceService() { … }
}