// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/stability_report/user_stream_data_source_posix.h" #include "base/files/file_util.h" #include "base/process/process_metrics.h" #include "base/test/test_file_util.h" #include "components/stability_report/test/stability_report_reader.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/crashpad/crashpad/snapshot/test/test_process_snapshot.h" namespace stability_report { namespace { // Tests whether the user stream correctly populates the StabilityReport with // the number of open file descriptors by opening a file in the current // (snapshotted) process. TEST(StabilityReportUserStreamDataSourceTest, GetOpenFDs) { … } } // namespace } // namespace stability_report