blob: fc6a9453cf50b464a0a2cdcc6f44d9e541cda2c4 [file] [log] [blame]
// Copyright 2017 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 "chromeos/components/tether/fake_synchronous_shutdown_object_container.h"
namespace chromeos {
namespace tether {
FakeSynchronousShutdownObjectContainer::FakeSynchronousShutdownObjectContainer(
const base::Closure& deletion_callback)
: deletion_callback_(deletion_callback) {}
FakeSynchronousShutdownObjectContainer::
~FakeSynchronousShutdownObjectContainer() {
deletion_callback_.Run();
}
ActiveHost* FakeSynchronousShutdownObjectContainer::active_host() {
return active_host_;
}
HostScanCache* FakeSynchronousShutdownObjectContainer::host_scan_cache() {
return host_scan_cache_;
}
HostScanScheduler*
FakeSynchronousShutdownObjectContainer::host_scan_scheduler() {
return host_scan_scheduler_;
}
TetherDisconnector*
FakeSynchronousShutdownObjectContainer::tether_disconnector() {
return tether_disconnector_;
}
} // namespace tether
} // namespace chromeos