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

Unified Diff: device/geolocation/wifi_data_provider_chromeos_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
« no previous file with comments | « device/geolocation/wifi_data_provider_chromeos.cc ('k') | device/geolocation/wifi_data_provider_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/geolocation/wifi_data_provider_chromeos_unittest.cc
diff --git a/device/geolocation/wifi_data_provider_chromeos_unittest.cc b/device/geolocation/wifi_data_provider_chromeos_unittest.cc
index 70e469e35afb67172316e54710bcd61e9c85f13b..d740b2f1e50ebfd2d9863fba6202991eb7c787cb 100644
--- a/device/geolocation/wifi_data_provider_chromeos_unittest.cc
+++ b/device/geolocation/wifi_data_provider_chromeos_unittest.cc
@@ -18,8 +18,7 @@ namespace device {
class GeolocationChromeOsWifiDataProviderTest : public testing::Test {
protected:
- GeolocationChromeOsWifiDataProviderTest() {
- }
+ GeolocationChromeOsWifiDataProviderTest() {}
void SetUp() override {
chromeos::DBusThreadManager::Initialize();
@@ -37,23 +36,20 @@ class GeolocationChromeOsWifiDataProviderTest : public testing::Test {
chromeos::DBusThreadManager::Shutdown();
}
- bool GetAccessPointData() {
- return provider_->GetAccessPointData(&ap_data_);
- }
+ bool GetAccessPointData() { return provider_->GetAccessPointData(&ap_data_); }
void AddAccessPoints(int ssids, int aps_per_ssid) {
for (int i = 0; i < ssids; ++i) {
for (int j = 0; j < aps_per_ssid; ++j) {
base::DictionaryValue properties;
- std::string mac_address =
- base::StringPrintf("%02X:%02X:%02X:%02X:%02X:%02X",
- i, j, 3, 4, 5, 6);
+ std::string mac_address = base::StringPrintf(
+ "%02X:%02X:%02X:%02X:%02X:%02X", i, j, 3, 4, 5, 6);
std::string channel = base::IntToString(i * 10 + j);
std::string strength = base::IntToString(i * 100 + j);
- properties.SetStringWithoutPathExpansion(
- shill::kGeoMacAddressProperty, mac_address);
- properties.SetStringWithoutPathExpansion(
- shill::kGeoChannelProperty, channel);
+ properties.SetStringWithoutPathExpansion(shill::kGeoMacAddressProperty,
+ mac_address);
+ properties.SetStringWithoutPathExpansion(shill::kGeoChannelProperty,
+ channel);
properties.SetStringWithoutPathExpansion(
shill::kGeoSignalStrengthProperty, strength);
manager_test_->AddGeoNetwork(shill::kTypeWifi, properties);
« no previous file with comments | « device/geolocation/wifi_data_provider_chromeos.cc ('k') | device/geolocation/wifi_data_provider_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698