blob: fc3caed6ae3e9396a796c2659150d7e84f1ec253 [file] [log] [blame]
// Copyright 2015 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.
#include "chromecast/net/fake_connectivity_checker.h"
namespace chromecast {
FakeConnectivityChecker::FakeConnectivityChecker()
: ConnectivityChecker(),
connected_(true) {
}
FakeConnectivityChecker::~FakeConnectivityChecker() {}
bool FakeConnectivityChecker::Connected() const {
return connected_;
}
void FakeConnectivityChecker::Check() {
}
void FakeConnectivityChecker::SetConnectedForTest(bool connected) {
if (connected_ == connected)
return;
connected_ = connected;
Notify(connected);
}
} // namespace chromecast