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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_NET_MOCK_CONNECTIVITY_STATE_HELPER_H_
6 #define CHROME_BROWSER_CHROMEOS_NET_MOCK_CONNECTIVITY_STATE_HELPER_H_
7
8 #include "chrome/browser/chromeos/net/connectivity_state_helper.h"
9
10 #include <string>
11
12 #include "chrome/browser/chromeos/net/connectivity_state_helper_observer.h"
13 #include "testing/gmock/include/gmock/gmock.h"
14
15 namespace chromeos {
16
17 class MockConnectivityStateHelper : public ConnectivityStateHelper {
18 public:
19 MockConnectivityStateHelper();
20 virtual ~MockConnectivityStateHelper();
21 MOCK_METHOD0(IsConnected, bool(void));
22 MOCK_METHOD0(IsConnecting, bool(void));
23 MOCK_METHOD1(IsConnectedType, bool(const std::string&));
24 MOCK_METHOD1(IsConnectingType, bool(const std::string&));
25 MOCK_METHOD1(NetworkNameForType, std::string(const std::string&));
26 MOCK_METHOD0(DefaultNetworkName, std::string(void));
27 MOCK_METHOD0(DefaultNetworkOnline, bool(void));
28 MOCK_CONST_METHOD0(RequestScan, void(void));
29 MOCK_METHOD1(AddNetworkManagerObserver,
30 void(ConnectivityStateHelperObserver*));
31 MOCK_METHOD1(RemoveNetworkManagerObserver,
32 void(ConnectivityStateHelperObserver*));
33 };
34
35 } // namespace chromeos
36
37 #endif // CHROME_BROWSER_CHROMEOS_NET_MOCK_CONNECTIVITY_STATE_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698