Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Side by Side Diff: content/browser/geolocation/wifi_data_provider_unittest_win.cc

Issue 476133003: Rename platform specific wifi data provider classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up the test as well. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
timvolodine 2014/08/18 14:52:54 I think it much more common to have win_unittest.c
Michael van Ouwerkerk 2014/08/18 15:09:08 Agreed, done.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Most logic for the platform wifi provider is now factored into 5 // Most logic for the platform wifi provider is now factored into
6 // WifiDataProviderCommon and covered by it's unit tests. 6 // WifiDataProviderCommon and covered by it's unit tests.
7 7
8 #include "content/browser/geolocation/wifi_data_provider_win.h" 8 #include "content/browser/geolocation/wifi_data_provider_win.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 TEST(GeolocationWin32WifiDataProviderTest, CreateDestroy) { 13 TEST(GeolocationWifiDataProviderWinTest, CreateDestroy) {
14 // WifiDataProviderCommon requires the client to have a message loop. 14 // WifiDataProviderCommon requires the client to have a message loop.
15 base::MessageLoop dummy_loop; 15 base::MessageLoop dummy_loop;
16 scoped_refptr<Win32WifiDataProvider> instance(new Win32WifiDataProvider); 16 scoped_refptr<WifiDataProviderWin> instance(new WifiDataProviderWin);
17 instance = NULL; 17 instance = NULL;
18 SUCCEED(); 18 SUCCEED();
19 // Can't actually call start provider on the Win32WifiDataProvider without 19 // Can't actually call start provider on the WifiDataProviderWin without
20 // it accessing hardware and so risking making the test flaky. 20 // it accessing hardware and so risking making the test flaky.
21 } 21 }
22 22
23 } // namespace content 23 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_mac.cc ('k') | content/browser/geolocation/wifi_data_provider_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698