update_engine: Convert NetworkConnectionType to enum class.
This patch simply converts the old NetworkConnectionType enum to an
enum class and updates all the callsites and formatting.
BUG=None
TEST=emerge-link update_engine.
Change-Id: I29a281f1648e2d8ef74b1046d01a212022280461
Reviewed-on: https://chromium-review.googlesource.com/289585
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Trybot-Ready: Alex Deymo <deymo@chromium.org>
Tested-by: Alex Deymo <deymo@chromium.org>
Trybot-Ready: Prathmesh Prabhu <pprabhu@chromium.org>
diff --git a/omaha_request_action_unittest.cc b/omaha_request_action_unittest.cc
index 1131c9c..8f4dc87 100644
--- a/omaha_request_action_unittest.cc
+++ b/omaha_request_action_unittest.cc
@@ -448,13 +448,14 @@
MockConnectionManager mock_cm(nullptr);
fake_system_state_.set_connection_manager(&mock_cm);
- EXPECT_CALL(mock_cm, GetConnectionProperties(_, _, _))
- .WillRepeatedly(DoAll(SetArgumentPointee<1>(kNetEthernet),
- SetArgumentPointee<2>(NetworkTethering::kUnknown),
- Return(true)));
- EXPECT_CALL(mock_cm, IsUpdateAllowedOver(kNetEthernet, _))
+ EXPECT_CALL(mock_cm, GetConnectionProperties(_, _, _)).WillRepeatedly(
+ DoAll(SetArgumentPointee<1>(NetworkConnectionType::kEthernet),
+ SetArgumentPointee<2>(NetworkTethering::kUnknown),
+ Return(true)));
+ EXPECT_CALL(mock_cm, IsUpdateAllowedOver(NetworkConnectionType::kEthernet, _))
.WillRepeatedly(Return(false));
- EXPECT_CALL(mock_cm, StringForConnectionType(kNetEthernet))
+ EXPECT_CALL(mock_cm,
+ StringForConnectionType(NetworkConnectionType::kEthernet))
.WillRepeatedly(Return(shill::kTypeEthernet));
ASSERT_FALSE(