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

Unified Diff: device/geolocation/wifi_data_provider_common_unittest.cc

Issue 2200483002: Geolocation cleanup: run clang-format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: device/geolocation/wifi_data_provider_common_unittest.cc
diff --git a/device/geolocation/wifi_data_provider_common_unittest.cc b/device/geolocation/wifi_data_provider_common_unittest.cc
index bd8562d922a17e6da8157fca48f7159531ce7866..eb3257e24b24d658227e06a64643acbcb24069f0 100644
--- a/device/geolocation/wifi_data_provider_common_unittest.cc
+++ b/device/geolocation/wifi_data_provider_common_unittest.cc
@@ -49,10 +49,8 @@ class MockWlanApi : public WifiDataProviderCommon::WlanApiInterface {
class MockPollingPolicy : public WifiPollingPolicy {
public:
MockPollingPolicy() {
- ON_CALL(*this,PollingInterval())
- .WillByDefault(Return(1));
- ON_CALL(*this,NoWifiInterval())
- .WillByDefault(Return(1));
+ ON_CALL(*this, PollingInterval()).WillByDefault(Return(1));
+ ON_CALL(*this, NoWifiInterval()).WillByDefault(Return(1));
}
MOCK_METHOD0(PollingInterval, int());
@@ -141,29 +139,23 @@ TEST_F(GeolocationWifiDataProviderCommonTest, CreateDestroy) {
}
TEST_F(GeolocationWifiDataProviderCommonTest, RunNormal) {
- EXPECT_CALL(*wlan_api_, GetAccessPointData(_))
- .Times(AtLeast(1));
- EXPECT_CALL(*polling_policy_, PollingInterval())
- .Times(AtLeast(1));
+ EXPECT_CALL(*wlan_api_, GetAccessPointData(_)).Times(AtLeast(1));
+ EXPECT_CALL(*polling_policy_, PollingInterval()).Times(AtLeast(1));
provider_->StartDataProvider();
RunLoop();
SUCCEED();
}
TEST_F(GeolocationWifiDataProviderCommonTest, NoWifi) {
- EXPECT_CALL(*polling_policy_, NoWifiInterval())
- .Times(AtLeast(1));
- EXPECT_CALL(*wlan_api_, GetAccessPointData(_))
- .WillRepeatedly(Return(false));
+ EXPECT_CALL(*polling_policy_, NoWifiInterval()).Times(AtLeast(1));
+ EXPECT_CALL(*wlan_api_, GetAccessPointData(_)).WillRepeatedly(Return(false));
provider_->StartDataProvider();
RunLoop();
}
TEST_F(GeolocationWifiDataProviderCommonTest, IntermittentWifi) {
- EXPECT_CALL(*polling_policy_, PollingInterval())
- .Times(AtLeast(1));
- EXPECT_CALL(*polling_policy_, NoWifiInterval())
- .Times(1);
+ EXPECT_CALL(*polling_policy_, PollingInterval()).Times(AtLeast(1));
+ EXPECT_CALL(*polling_policy_, NoWifiInterval()).Times(1);
EXPECT_CALL(*wlan_api_, GetAccessPointData(_))
.WillOnce(Return(true))
.WillOnce(Return(false))
@@ -188,10 +180,8 @@ TEST_F(GeolocationWifiDataProviderCommonTest, IntermittentWifi) {
#define MAYBE_DoAnEmptyScan DoAnEmptyScan
#endif
TEST_F(GeolocationWifiDataProviderCommonTest, MAYBE_DoAnEmptyScan) {
- EXPECT_CALL(*wlan_api_, GetAccessPointData(_))
- .Times(AtLeast(1));
- EXPECT_CALL(*polling_policy_, PollingInterval())
- .Times(AtLeast(1));
+ EXPECT_CALL(*wlan_api_, GetAccessPointData(_)).Times(AtLeast(1));
+ EXPECT_CALL(*polling_policy_, PollingInterval()).Times(AtLeast(1));
provider_->StartDataProvider();
RunLoop();
EXPECT_EQ(wlan_api_->calls_, 1);
@@ -206,10 +196,8 @@ TEST_F(GeolocationWifiDataProviderCommonTest, MAYBE_DoAnEmptyScan) {
#define MAYBE_DoScanWithResults DoScanWithResults
#endif
TEST_F(GeolocationWifiDataProviderCommonTest, MAYBE_DoScanWithResults) {
- EXPECT_CALL(*wlan_api_, GetAccessPointData(_))
- .Times(AtLeast(1));
- EXPECT_CALL(*polling_policy_, PollingInterval())
- .Times(AtLeast(1));
+ EXPECT_CALL(*wlan_api_, GetAccessPointData(_)).Times(AtLeast(1));
+ EXPECT_CALL(*polling_policy_, PollingInterval()).Times(AtLeast(1));
AccessPointData single_access_point;
single_access_point.channel = 2;
single_access_point.mac_address = 3;
« no previous file with comments | « device/geolocation/wifi_data_provider_common.cc ('k') | device/geolocation/wifi_data_provider_common_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698