| Index: net/base/network_change_notifier_win_unittest.cc
|
| diff --git a/net/base/network_change_notifier_win_unittest.cc b/net/base/network_change_notifier_win_unittest.cc
|
| index 25873c37f2003300c666690877517b8e70bae205..69a740c84b39576f0326a9803a0b08daf4d582e8 100644
|
| --- a/net/base/network_change_notifier_win_unittest.cc
|
| +++ b/net/base/network_change_notifier_win_unittest.cc
|
| @@ -31,8 +31,8 @@ class TestNetworkChangeNotifierWin : public NetworkChangeNotifierWin {
|
| }
|
|
|
| // From NetworkChangeNotifierWin.
|
| - virtual NetworkChangeNotifier::ConnectionType
|
| - RecomputeCurrentConnectionType() const override {
|
| + virtual NetworkChangeNotifier::ConnectionType RecomputeCurrentConnectionType()
|
| + const override {
|
| return NetworkChangeNotifier::CONNECTION_UNKNOWN;
|
| }
|
|
|
| @@ -46,9 +46,7 @@ class TestNetworkChangeNotifierWin : public NetworkChangeNotifierWin {
|
| class TestIPAddressObserver
|
| : public net::NetworkChangeNotifier::IPAddressObserver {
|
| public:
|
| - TestIPAddressObserver() {
|
| - NetworkChangeNotifier::AddIPAddressObserver(this);
|
| - }
|
| + TestIPAddressObserver() { NetworkChangeNotifier::AddIPAddressObserver(this); }
|
|
|
| ~TestIPAddressObserver() {
|
| NetworkChangeNotifier::RemoveIPAddressObserver(this);
|
| @@ -165,11 +163,13 @@ class NetworkChangeNotifierWinTest : public testing::Test {
|
| EXPECT_FALSE(network_change_notifier_.is_watching());
|
| EXPECT_LT(0, network_change_notifier_.sequential_failures());
|
|
|
| - EXPECT_CALL(test_ip_address_observer_, OnIPAddressChanged()).Times(1)
|
| + EXPECT_CALL(test_ip_address_observer_, OnIPAddressChanged())
|
| + .Times(1)
|
| .WillOnce(
|
| Invoke(base::MessageLoop::current(), &base::MessageLoop::Quit));
|
| EXPECT_CALL(network_change_notifier_, WatchForAddressChangeInternal())
|
| - .Times(1).WillOnce(Return(true));
|
| + .Times(1)
|
| + .WillOnce(Return(true));
|
|
|
| base::MessageLoop::current()->Run();
|
|
|
|
|