Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8170)

Unified Diff: chrome/common/net/mock_network_change_observer.h

Issue 2802015: Massively simplify the NetworkChangeNotifier infrastructure:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/net/mock_network_change_observer.h
===================================================================
--- chrome/common/net/mock_network_change_observer.h (revision 50775)
+++ chrome/common/net/mock_network_change_observer.h (working copy)
@@ -1,32 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_COMMON_NET_MOCK_NETWORK_CHANGE_OBSERVER_H_
-#define CHROME_COMMON_NET_MOCK_NETWORK_CHANGE_OBSERVER_H_
-
-#include "base/basictypes.h"
-#include "net/base/network_change_notifier.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-// This class is a mock net::NetworkChangeNotifier::Observer used in
-// unit tests.
-
-namespace chrome_common_net {
-
-class MockNetworkChangeObserver
- : public net::NetworkChangeNotifier::Observer {
- public:
- MockNetworkChangeObserver() {}
-
- virtual ~MockNetworkChangeObserver() {}
-
- MOCK_METHOD0(OnIPAddressChanged, void());
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MockNetworkChangeObserver);
-};
-
-} // namespace chrome_common_net
-
-#endif // CHROME_COMMON_NET_MOCK_NETWORK_CHANGE_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698