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

Side by Side Diff: chromecast/net/fake_connectivity_checker.cc

Issue 2647323010: [Chromecast] Add proxy server support to chromecast (Closed)
Patch Set: Fix unittest failure Created 3 years, 10 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromecast/net/fake_connectivity_checker.h" 5 #include "chromecast/net/fake_connectivity_checker.h"
6 6
7 namespace chromecast { 7 namespace chromecast {
8 8
9 FakeConnectivityChecker::FakeConnectivityChecker() 9 FakeConnectivityChecker::FakeConnectivityChecker()
10 : ConnectivityChecker(), 10 : ConnectivityChecker(),
11 connected_(true) { 11 connected_(true) {
12 } 12 }
13 13
14 FakeConnectivityChecker::~FakeConnectivityChecker() {} 14 FakeConnectivityChecker::~FakeConnectivityChecker() {}
15 15
16 bool FakeConnectivityChecker::Connected() const { 16 bool FakeConnectivityChecker::Connected() const {
17 return connected_; 17 return connected_;
18 } 18 }
19 19
20 void FakeConnectivityChecker::Check() { 20 void FakeConnectivityChecker::Check() {
21 } 21 }
22 22
23 void FakeConnectivityChecker::DetachFromPrefService() {}
24
23 void FakeConnectivityChecker::SetConnectedForTest(bool connected) { 25 void FakeConnectivityChecker::SetConnectedForTest(bool connected) {
24 if (connected_ == connected) 26 if (connected_ == connected)
25 return; 27 return;
26 28
27 connected_ = connected; 29 connected_ = connected;
28 Notify(connected); 30 Notify(connected);
29 } 31 }
30 32
31 } // namespace chromecast 33 } // namespace chromecast
OLDNEW
« chromecast/net/connectivity_checker_impl.h ('K') | « chromecast/net/fake_connectivity_checker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698