Replace flimflam namespace with shill namespace.
BUG=chromium:295425
CQ-DEPEND=CL:170123
TEST=Build and run unit tests.
Change-Id: Id8ec51b6ff7f2802285706203bc831d3f2277ac7
Reviewed-on: https://chromium-review.googlesource.com/170124
Reviewed-by: Paul Stewart <pstew@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
Commit-Queue: Ben Chan <benchan@chromium.org>
diff --git a/connection_manager_unittest.cc b/connection_manager_unittest.cc
index 0c86f03..3b88564 100644
--- a/connection_manager_unittest.cc
+++ b/connection_manager_unittest.cc
@@ -105,9 +105,9 @@
// Set other expectations.
EXPECT_CALL(dbus_iface_,
ProxyNewForNameOwner(kMockSystemBus_,
- StrEq(flimflam::kFlimflamServiceName),
- StrEq(flimflam::kFlimflamServicePath),
- StrEq(flimflam::kFlimflamManagerInterface),
+ StrEq(shill::kFlimflamServiceName),
+ StrEq(shill::kFlimflamServicePath),
+ StrEq(shill::kFlimflamManagerInterface),
_))
.WillOnce(Return(kMockFlimFlamManagerProxy_));
EXPECT_CALL(dbus_iface_, ProxyUnref(kMockFlimFlamManagerProxy_));
@@ -156,9 +156,9 @@
// Set other expectations.
EXPECT_CALL(dbus_iface_,
ProxyNewForNameOwner(kMockSystemBus_,
- StrEq(flimflam::kFlimflamServiceName),
+ StrEq(shill::kFlimflamServiceName),
StrEq(kServicePath_),
- StrEq(flimflam::kFlimflamServiceInterface),
+ StrEq(shill::kFlimflamServiceInterface),
_))
.WillOnce(Return(kMockFlimFlamServiceProxy_));
EXPECT_CALL(dbus_iface_, ProxyUnref(kMockFlimFlamServiceProxy_));
@@ -181,18 +181,18 @@
}
TEST_F(ConnectionManagerTest, SimpleTest) {
- TestWithServiceType(flimflam::kTypeEthernet, NULL, kNetEthernet);
- TestWithServiceType(flimflam::kTypeWifi, NULL, kNetWifi);
- TestWithServiceType(flimflam::kTypeWimax, NULL, kNetWimax);
- TestWithServiceType(flimflam::kTypeBluetooth, NULL, kNetBluetooth);
- TestWithServiceType(flimflam::kTypeCellular, NULL, kNetCellular);
+ TestWithServiceType(shill::kTypeEthernet, NULL, kNetEthernet);
+ TestWithServiceType(shill::kTypeWifi, NULL, kNetWifi);
+ TestWithServiceType(shill::kTypeWimax, NULL, kNetWimax);
+ TestWithServiceType(shill::kTypeBluetooth, NULL, kNetBluetooth);
+ TestWithServiceType(shill::kTypeCellular, NULL, kNetCellular);
}
TEST_F(ConnectionManagerTest, PhysicalTechnologyTest) {
- TestWithServiceType(flimflam::kTypeVPN, NULL, kNetUnknown);
- TestWithServiceType(flimflam::kTypeVPN, flimflam::kTypeVPN, kNetUnknown);
- TestWithServiceType(flimflam::kTypeVPN, flimflam::kTypeWifi, kNetWifi);
- TestWithServiceType(flimflam::kTypeVPN, flimflam::kTypeWimax, kNetWimax);
+ TestWithServiceType(shill::kTypeVPN, NULL, kNetUnknown);
+ TestWithServiceType(shill::kTypeVPN, shill::kTypeVPN, kNetUnknown);
+ TestWithServiceType(shill::kTypeVPN, shill::kTypeWifi, kNetWifi);
+ TestWithServiceType(shill::kTypeVPN, shill::kTypeWimax, kNetWimax);
}
TEST_F(ConnectionManagerTest, UnknownTest) {
@@ -349,15 +349,15 @@
}
TEST_F(ConnectionManagerTest, StringForConnectionTypeTest) {
- EXPECT_STREQ(flimflam::kTypeEthernet,
+ EXPECT_STREQ(shill::kTypeEthernet,
cmut_.StringForConnectionType(kNetEthernet));
- EXPECT_STREQ(flimflam::kTypeWifi,
+ EXPECT_STREQ(shill::kTypeWifi,
cmut_.StringForConnectionType(kNetWifi));
- EXPECT_STREQ(flimflam::kTypeWimax,
+ EXPECT_STREQ(shill::kTypeWimax,
cmut_.StringForConnectionType(kNetWimax));
- EXPECT_STREQ(flimflam::kTypeBluetooth,
+ EXPECT_STREQ(shill::kTypeBluetooth,
cmut_.StringForConnectionType(kNetBluetooth));
- EXPECT_STREQ(flimflam::kTypeCellular,
+ EXPECT_STREQ(shill::kTypeCellular,
cmut_.StringForConnectionType(kNetCellular));
EXPECT_STREQ("Unknown",
cmut_.StringForConnectionType(kNetUnknown));