chromium/services/device/geolocation/wifi_data_provider_common_unittest.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.

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

#include <memory>

#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "services/device/geolocation/wifi_data_provider_handle.h"
#include "services/device/public/mojom/geolocation_internals.mojom.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

_;
AnyNumber;
AtLeast;
DoAll;
Invoke;
InvokeWithoutArgs;
Return;
SetArgPointee;
WithArgs;

namespace device {

class MockWlanApi : public WifiDataProviderCommon::WlanApiInterface {};

class MockPollingPolicy : public WifiPollingPolicy {};

class WifiDataProviderCommonWithMock : public WifiDataProviderCommon {};

// Main test fixture
class GeolocationWifiDataProviderCommonTest : public testing::Test {};

TEST_F(GeolocationWifiDataProviderCommonTest, CreateDestroy) {}

TEST_F(GeolocationWifiDataProviderCommonTest, NoWifi) {}

TEST_F(GeolocationWifiDataProviderCommonTest, IntermittentWifi) {}

// This test runs StartDataProvider() and expects that GetAccessPointData() is
// called. The retrieved WifiData is expected to be empty.
TEST_F(GeolocationWifiDataProviderCommonTest, DoAnEmptyScan) {}

// This test runs StartDataProvider() and expects that GetAccessPointData() is
// called. Some mock WifiData is returned then and expected to be retrieved.
TEST_F(GeolocationWifiDataProviderCommonTest, DoScanWithResults) {}

TEST_F(GeolocationWifiDataProviderCommonTest, DelayedByPolicy) {}

}  // namespace device