wifi_data_provider_win_unittest.cc 981 B

1234567891011121314151617181920212223242526
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // Most logic for the platform wifi provider is now factored into
  5. // WifiDataProviderCommon and covered by it's unit tests.
  6. #include "services/device/geolocation/wifi_data_provider_win.h"
  7. #include "base/test/task_environment.h"
  8. #include "testing/gtest/include/gtest/gtest.h"
  9. namespace device {
  10. TEST(GeolocationWifiDataProviderWinTest, CreateDestroy) {
  11. // WifiDataProvider requires a task runner to be present.
  12. base::test::SingleThreadTaskEnvironment task_environment(
  13. base::test::SingleThreadTaskEnvironment::MainThreadType::UI);
  14. scoped_refptr<WifiDataProviderWin> instance(new WifiDataProviderWin);
  15. instance.reset();
  16. SUCCEED();
  17. // Can't actually call start provider on the WifiDataProviderWin without
  18. // it accessing hardware and so risking making the test flaky.
  19. }
  20. } // namespace device