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