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

Unified Diff: chrome/browser/chromeos/net/mock_connectivity_state_helper.h

Issue 22264004: Remove ConnectivityStateHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove redundant IsConnected() check Created 7 years, 4 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/browser/chromeos/net/mock_connectivity_state_helper.h
diff --git a/chrome/browser/chromeos/net/mock_connectivity_state_helper.h b/chrome/browser/chromeos/net/mock_connectivity_state_helper.h
deleted file mode 100644
index cbef21d5b670c2f8c761414706e750545e7c5568..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/net/mock_connectivity_state_helper.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2013 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_BROWSER_CHROMEOS_NET_MOCK_CONNECTIVITY_STATE_HELPER_H_
-#define CHROME_BROWSER_CHROMEOS_NET_MOCK_CONNECTIVITY_STATE_HELPER_H_
-
-#include "chrome/browser/chromeos/net/connectivity_state_helper.h"
-
-#include <string>
-
-#include "chrome/browser/chromeos/net/connectivity_state_helper_observer.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace chromeos {
-
-class MockConnectivityStateHelper : public ConnectivityStateHelper {
- public:
- MockConnectivityStateHelper();
- virtual ~MockConnectivityStateHelper();
- MOCK_METHOD0(IsConnected, bool(void));
- MOCK_METHOD0(IsConnecting, bool(void));
- MOCK_METHOD1(IsConnectedType, bool(const std::string&));
- MOCK_METHOD1(IsConnectingType, bool(const std::string&));
- MOCK_METHOD1(NetworkNameForType, std::string(const std::string&));
- MOCK_METHOD0(DefaultNetworkName, std::string(void));
- MOCK_METHOD0(DefaultNetworkOnline, bool(void));
- MOCK_CONST_METHOD0(RequestScan, void(void));
- MOCK_METHOD1(AddNetworkManagerObserver,
- void(ConnectivityStateHelperObserver*));
- MOCK_METHOD1(RemoveNetworkManagerObserver,
- void(ConnectivityStateHelperObserver*));
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_NET_MOCK_CONNECTIVITY_STATE_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698