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

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

Issue 6591034: Move core pieces of geolocation from chrome to content.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix Linux build Created 9 years, 9 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.
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 #include "chrome/browser/geolocation/device_data_provider.h"
6
7 #include "base/threading/platform_thread.h" 5 #include "base/threading/platform_thread.h"
8 #include "chrome/browser/geolocation/wifi_data_provider_common.h" 6 #include "content/browser/geolocation/device_data_provider.h"
7 #include "content/browser/geolocation/wifi_data_provider_common.h"
9 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
10 9
11 namespace { 10 namespace {
12 11
13 class NullWifiDataListenerInterface 12 class NullWifiDataListenerInterface
14 : public WifiDataProviderCommon::ListenerInterface { 13 : public WifiDataProviderCommon::ListenerInterface {
15 public: 14 public:
16 // ListenerInterface 15 // ListenerInterface
17 virtual void DeviceDataUpdateAvailable( 16 virtual void DeviceDataUpdateAvailable(
18 DeviceDataProvider<WifiData>* provider) {} 17 DeviceDataProvider<WifiData>* provider) {}
(...skipping 14 matching lines...) Expand all
33 } 32 }
34 DeviceDataProvider<WifiData>::Unregister(&listener); 33 DeviceDataProvider<WifiData>::Unregister(&listener);
35 for (int j = 0; j < 10; j++) { 34 for (int j = 0; j < 10; j++) {
36 base::PlatformThread::Sleep(0); 35 base::PlatformThread::Sleep(0);
37 main_message_loop.RunAllPending(); // See comment above 36 main_message_loop.RunAllPending(); // See comment above
38 } 37 }
39 } 38 }
40 } 39 }
41 40
42 } // namespace 41 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698