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

Unified Diff: content/browser/geolocation/wifi_data_provider_unittest.cc

Issue 10535157: [WIP] attempt to allow chrome OS to inject its wifi data provider (Closed) Base URL: http://git.chromium.org/chromium/src.git@remove_radio
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/geolocation/wifi_data_provider_unittest.cc
diff --git a/content/browser/geolocation/device_data_provider_unittest.cc b/content/browser/geolocation/wifi_data_provider_unittest.cc
similarity index 82%
rename from content/browser/geolocation/device_data_provider_unittest.cc
rename to content/browser/geolocation/wifi_data_provider_unittest.cc
index 640a8fc32c219c3250843cb29a05f0f158777c74..9a4655e90fcc181d66be747e54ad5fb05ef79a0a 100644
--- a/content/browser/geolocation/device_data_provider_unittest.cc
+++ b/content/browser/geolocation/wifi_data_provider_unittest.cc
@@ -3,8 +3,8 @@
// found in the LICENSE file.
#include "base/threading/platform_thread.h"
-#include "content/browser/geolocation/device_data_provider.h"
#include "content/browser/geolocation/wifi_data_provider_common.h"
+#include "content/browser/geolocation/wifi_data_provider.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
@@ -13,8 +13,7 @@ class NullWifiDataListenerInterface
: public WifiDataProviderCommon::ListenerInterface {
public:
// ListenerInterface
- virtual void DeviceDataUpdateAvailable(
- DeviceDataProvider<WifiData>* provider) {}
+ virtual void DeviceDataUpdateAvailable(WifiDataProvider* provider) {}
};
TEST(GeolocationDeviceDataProviderWifiData, CreateDestroy) {
@@ -25,12 +24,12 @@ TEST(GeolocationDeviceDataProviderWifiData, CreateDestroy) {
MessageLoopForUI main_message_loop;
NullWifiDataListenerInterface listener;
for (int i = 0; i < 10; i++) {
- DeviceDataProvider<WifiData>::Register(&listener);
+ WifiDataProvider::Register(&listener);
for (int j = 0; j < 10; j++) {
base::PlatformThread::Sleep(base::TimeDelta());
main_message_loop.RunAllPending(); // See comment above
}
- DeviceDataProvider<WifiData>::Unregister(&listener);
+ WifiDataProvider::Unregister(&listener);
for (int j = 0; j < 10; j++) {
base::PlatformThread::Sleep(base::TimeDelta());
main_message_loop.RunAllPending(); // See comment above
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_mac.cc ('k') | content/browser/geolocation/wifi_data_provider_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698