Index: chrome/browser/chromeos/cros/cros_mock.cc |
diff --git a/chrome/browser/chromeos/cros/cros_mock.cc b/chrome/browser/chromeos/cros/cros_mock.cc |
index 6e7844f447574f0e017de3ccf68515b4b3ab7343..25bf9aa9217b9229e5f8a6260c9c30d6bec12511 100644 |
--- a/chrome/browser/chromeos/cros/cros_mock.cc |
+++ b/chrome/browser/chromeos/cros/cros_mock.cc |
@@ -275,7 +275,7 @@ void CrosMock::SetNetworkLibraryStatusAreaExpectations() { |
// NetworkDropdownButton::NetworkChanged() calls: |
EXPECT_CALL(*mock_network_library_, ethernet_connected()) |
- .Times(2) // also called by NetworkMenu::InitMenuItems() |
+ .Times(1) |
.WillRepeatedly((Return(false))) |
.RetiresOnSaturation(); |
EXPECT_CALL(*mock_network_library_, wifi_connected()) |
@@ -295,7 +295,7 @@ void CrosMock::SetNetworkLibraryStatusAreaExpectations() { |
.WillRepeatedly((Return(false))) |
.RetiresOnSaturation(); |
EXPECT_CALL(*mock_network_library_, Connected()) |
- .Times(2) // also called by NetworkMenu::InitMenuItems() |
+ .Times(1) |
.WillRepeatedly((Return(false))) |
.RetiresOnSaturation(); |
EXPECT_CALL(*mock_network_library_, Connecting()) |
@@ -304,29 +304,21 @@ void CrosMock::SetNetworkLibraryStatusAreaExpectations() { |
.RetiresOnSaturation(); |
// NetworkMenu::InitMenuItems() calls: |
- EXPECT_CALL(*mock_network_library_, ethernet_connecting()) |
- .Times(1) |
- .WillRepeatedly((Return(false))) |
- .RetiresOnSaturation(); |
- EXPECT_CALL(*mock_network_library_, wifi_networks()) |
+ EXPECT_CALL(*mock_network_library_, ethernet_available()) |
.Times(1) |
- .WillRepeatedly((ReturnRef(wifi_networks_))) |
+ .WillRepeatedly((Return(true))) |
.RetiresOnSaturation(); |
- EXPECT_CALL(*mock_network_library_, wifi_available()) |
+ EXPECT_CALL(*mock_network_library_, ethernet_connected()) |
.Times(1) |
.WillRepeatedly((Return(false))) |
.RetiresOnSaturation(); |
- EXPECT_CALL(*mock_network_library_, wifi_network()) |
- .Times(1) |
- .WillRepeatedly((ReturnRef(wifi_network_))) |
- .RetiresOnSaturation(); |
- EXPECT_CALL(*mock_network_library_, cellular_networks()) |
+ EXPECT_CALL(*mock_network_library_, ethernet_connecting()) |
.Times(1) |
- .WillRepeatedly((ReturnRef(cellular_networks_))) |
+ .WillRepeatedly((Return(false))) |
.RetiresOnSaturation(); |
- EXPECT_CALL(*mock_network_library_, cellular_network()) |
+ EXPECT_CALL(*mock_network_library_, wifi_available()) |
.Times(1) |
- .WillRepeatedly((ReturnRef(cellular_network_))) |
+ .WillRepeatedly((Return(false))) |
.RetiresOnSaturation(); |
EXPECT_CALL(*mock_network_library_, cellular_available()) |
.Times(1) |