summaryrefslogtreecommitdiff
path: root/connection_manager_unittest.cc
diff options
context:
space:
mode:
authorAmin Hassani <ahassani@chromium.org>2019-01-14 16:29:47 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-16 01:46:42 -0800
commit7cc8bb085b6f04cbeca7cb77ddb6798fa9725e2f (patch)
tree55b88a1bafb293b4210bf2de59c8892c0985f8b5 /connection_manager_unittest.cc
parent4b71743b20d0ca155df3414a863a48cb898622c9 (diff)
update_engine: Run clang-format on ./ (root directory)
BUG=none TEST=unittest Change-Id: Ibd075dc7ea9a18e798f612e35725f1c83c112809 Reviewed-on: https://chromium-review.googlesource.com/1409708 Commit-Ready: Amin Hassani <ahassani@chromium.org> Tested-by: Amin Hassani <ahassani@chromium.org> Reviewed-by: Sen Jiang <senj@chromium.org>
Diffstat (limited to 'connection_manager_unittest.cc')
-rw-r--r--connection_manager_unittest.cc24
1 files changed, 10 insertions, 14 deletions
diff --git a/connection_manager_unittest.cc b/connection_manager_unittest.cc
index 7cd858d4..3cdaf4cd 100644
--- a/connection_manager_unittest.cc
+++ b/connection_manager_unittest.cc
@@ -40,9 +40,9 @@ using org::chromium::flimflam::ManagerProxyMock;
using org::chromium::flimflam::ServiceProxyMock;
using std::set;
using std::string;
+using testing::_;
using testing::Return;
using testing::SetArgPointee;
-using testing::_;
namespace chromeos_update_engine {
@@ -71,16 +71,14 @@ class ConnectionManagerTest : public ::testing::Test {
const char* physical_technology,
const char* service_tethering);
- void TestWithServiceType(
- const char* service_type,
- const char* physical_technology,
- ConnectionType expected_type);
+ void TestWithServiceType(const char* service_type,
+ const char* physical_technology,
+ ConnectionType expected_type);
void TestWithServiceDisconnected(ConnectionType expected_type);
- void TestWithServiceTethering(
- const char* service_tethering,
- ConnectionTethering expected_tethering);
+ void TestWithServiceTethering(const char* service_tethering,
+ ConnectionTethering expected_tethering);
brillo::FakeMessageLoop loop_{nullptr};
FakeSystemState fake_system_state_;
@@ -140,10 +138,9 @@ void ConnectionManagerTest::SetServiceReply(const string& service_path,
std::move(service_proxy_mock));
}
-void ConnectionManagerTest::TestWithServiceType(
- const char* service_type,
- const char* physical_technology,
- ConnectionType expected_type) {
+void ConnectionManagerTest::TestWithServiceType(const char* service_type,
+ const char* physical_technology,
+ ConnectionType expected_type) {
SetManagerReply("/service/guest/network", true);
SetServiceReply("/service/guest/network",
service_type,
@@ -159,8 +156,7 @@ void ConnectionManagerTest::TestWithServiceType(
}
void ConnectionManagerTest::TestWithServiceTethering(
- const char* service_tethering,
- ConnectionTethering expected_tethering) {
+ const char* service_tethering, ConnectionTethering expected_tethering) {
SetManagerReply("/service/guest/network", true);
SetServiceReply(
"/service/guest/network", shill::kTypeWifi, nullptr, service_tethering);