blob: 1dea637c4d26b6e4b5b3be06cf10320c4c188267 [file] [log] [blame]
// Copyright 2022 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "diagnostics/bindings/connectivity/data_generator.h"
#include <fcntl.h>
#include <mojo/public/cpp/system/platform_handle.h>
namespace chromeos {
namespace cros_healthd {
namespace connectivity {
constexpr char kDevNull[] = "/dev/null";
::mojo::ScopedHandle HandleDataGenerator::Generate() {
has_next_ = false;
return mojo::WrapPlatformFile(
base::ScopedPlatformFile(open(kDevNull, O_RDONLY)));
}
} // namespace connectivity
} // namespace cros_healthd
} // namespace chromeos