blob: 3249fe55c658b2702248628ea7a0a2895d76cfc8 [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::result<> Start() override { return zx::ok(); }
zx::result<> ShutDown() override { return zx::ok(); }
zx::result<> Track(OperationTracker* tracker) override { return zx::ok(); }
zx::result<> 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