Home | History | Annotate | Download | only in geolocation
      1 // Copyright (c) 2010 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 
      5 // Most logic for the platform wifi provider is now factored into
      6 // WifiDataProviderCommon and covered by it's unit tests.
      7 
      8 #include "content/browser/geolocation/wifi_data_provider_win.h"
      9 #include "testing/gtest/include/gtest/gtest.h"
     10 
     11 namespace content {
     12 
     13 TEST(GeolocationWin32WifiDataProviderTest, CreateDestroy) {
     14   // WifiDataProviderCommon requires the client to have a message loop.
     15   base::MessageLoop dummy_loop;
     16   scoped_refptr<Win32WifiDataProvider> instance(new Win32WifiDataProvider);
     17   instance = NULL;
     18   SUCCEED();
     19   // Can't actually call start provider on the Win32WifiDataProvider without
     20   // it accessing hardware and so risking making the test flaky.
     21 }
     22 
     23 }  // namespace content
     24