blob: ffbd7982ee2b745e1ea71894f95a03e1269bb8ad [file] [log] [blame]
// Copyright 2020 The Fuchsia 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 <lib/watchdog/watchdog.h>
#include <zircon/assert.h>
namespace fs_watchdog {
namespace {
class Watchdog : public WatchdogInterface {
zx::status<> Start() override { return zx::ok(); }
zx::status<> ShutDown() override { return zx::ok(); }
zx::status<> Track(OperationTracker* tracker) override { return zx::ok(); }
zx::status<> Untrack(OperationTrackerId id) override { return zx::ok(); }
~Watchdog() override { ZX_DEBUG_ASSERT(ShutDown().is_ok()); }
};
} // namespace
std::unique_ptr<WatchdogInterface> CreateWatchdog(const Options& options) {
auto watchdog = new Watchdog();
std::unique_ptr<WatchdogInterface> ret(watchdog);
return ret;
}
} // namespace fs_watchdog