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

Unified Diff: device/geolocation/wifi_data_provider_common_unittest.cc

Issue 2192683002: Reland 2:Geolocation: move from content/browser to device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ignore size_t_to_int truncation warning Created 4 years, 5 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
« no previous file with comments | « device/geolocation/wifi_data_provider_common.cc ('k') | device/test/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/wifi_data_provider_common_unittest.cc
diff --git a/content/browser/geolocation/wifi_data_provider_common_unittest.cc b/device/geolocation/wifi_data_provider_common_unittest.cc
similarity index 96%
rename from content/browser/geolocation/wifi_data_provider_common_unittest.cc
rename to device/geolocation/wifi_data_provider_common_unittest.cc
index 1c09c4d00c2581b6420eda5410e2ca867882a039..bd8562d922a17e6da8157fca48f7159531ce7866 100644
--- a/content/browser/geolocation/wifi_data_provider_common_unittest.cc
+++ b/device/geolocation/wifi_data_provider_common_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/geolocation/wifi_data_provider_common.h"
+#include "device/geolocation/wifi_data_provider_common.h"
#include <memory>
@@ -12,8 +12,7 @@
#include "base/strings/utf_string_conversions.h"
#include "base/third_party/dynamic_annotations/dynamic_annotations.h"
#include "base/threading/thread_task_runner_handle.h"
-#include "content/browser/geolocation/wifi_data_provider_manager.h"
-#include "content/public/test/test_browser_thread_bundle.h"
+#include "device/geolocation/wifi_data_provider_manager.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -23,7 +22,7 @@ using testing::DoDefault;
using testing::Invoke;
using testing::Return;
-namespace content {
+namespace device {
class MockWlanApi : public WifiDataProviderCommon::WlanApiInterface {
public:
@@ -125,7 +124,7 @@ class GeolocationWifiDataProviderCommonTest : public testing::Test {
}
protected:
- TestBrowserThreadBundle thread_bundle_;
+ base::MessageLoopForUI message_loop_;
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
std::unique_ptr<base::RunLoop> run_loop_;
WifiDataProviderManager::WifiDataUpdateCallback wifi_data_callback_;
@@ -237,4 +236,4 @@ TEST_F(GeolocationWifiDataProviderCommonTest, RegisterUnregister) {
WifiDataProviderManager::ResetFactoryForTesting();
}
-} // namespace content
+} // namespace device
« no previous file with comments | « device/geolocation/wifi_data_provider_common.cc ('k') | device/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698