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

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

Issue 22866005: Remove threading from WifiDataProviderCommon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_common.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/geolocation/wifi_data_provider_common_unittest.cc
diff --git a/content/browser/geolocation/wifi_data_provider_common_unittest.cc b/content/browser/geolocation/wifi_data_provider_common_unittest.cc
index 9d1b9fbcc7b73363e17d1705435718976ce28617..287372051b55a1b16703899541c55c0d93fa4fa2 100644
--- a/content/browser/geolocation/wifi_data_provider_common_unittest.cc
+++ b/content/browser/geolocation/wifi_data_provider_common_unittest.cc
@@ -146,7 +146,7 @@ TEST_F(GeolocationWifiDataProviderCommonTest, StartThread) {
.Times(AtLeast(1));
EXPECT_CALL(*polling_policy_, PollingInterval())
.Times(AtLeast(1));
- EXPECT_TRUE(provider_->StartDataProvider());
+ provider_->StartDataProvider();
main_message_loop_.Run();
SUCCEED();
}
@@ -188,7 +188,7 @@ TEST_F(GeolocationWifiDataProviderCommonTest, DoAnEmptyScan) {
.Times(AtLeast(1));
EXPECT_CALL(*polling_policy_, PollingInterval())
.Times(AtLeast(1));
- EXPECT_TRUE(provider_->StartDataProvider());
+ provider_->StartDataProvider();
main_message_loop_.Run();
// Check we had at least one call. The worker thread may have raced ahead
// and made multiple calls.
@@ -211,7 +211,7 @@ TEST_F(GeolocationWifiDataProviderCommonTest, DoScanWithResults) {
single_access_point.ssid = ASCIIToUTF16("foossid");
wlan_api_->data_out_.insert(single_access_point);
- EXPECT_TRUE(provider_->StartDataProvider());
+ provider_->StartDataProvider();
main_message_loop_.Run();
EXPECT_GT(wlan_api_->calls_, 0);
WifiData data;
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_common.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698