chromium/base/metrics/histogram_shared_memory_unittest.cc

// 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 "base/metrics/histogram_shared_memory.h"

#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/metrics/persistent_histogram_allocator.h"
#include "base/process/launch.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/test/multiprocess_test.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/test_timeouts.h"
#include "base/unguessable_token.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/multiprocess_func_list.h"

#if BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
#include "base/files/platform_file.h"
#include "base/posix/global_descriptors.h"
#endif

namespace base {
namespace {

constexpr size_t kArbitrarySize =;

#if BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_APPLE)
constexpr GlobalDescriptors::Key kArbitraryDescriptorKey =;
#endif

}  // namespace

TEST(HistogramSharedMemoryTest, Create) {}

TEST(HistogramSharedMemoryTest, PassSharedMemoryRegion_Disabled) {}

MULTIPROCESS_TEST_MAIN(InitFromLaunchParameters) {}

#if !BUILDFLAG(IS_IOS)
HistogramSharedMemoryTest;

INSTANTIATE_TEST_SUITE_P();

TEST_P(HistogramSharedMemoryTest, PassSharedMemoryRegion_Enabled) {}
#endif

}  // namespace base