chromium/components/heap_profiling/in_process/heap_profiler_parameters_unittest.cc

// Copyright 2022 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/heap_profiling/in_process/heap_profiler_parameters.h"

#include "base/command_line.h"
#include "base/profiler/process_type.h"
#include "base/test/scoped_feature_list.h"
#include "base/time/time.h"
#include "components/variations/variations_switches.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace heap_profiling {

namespace {

AllOf;
Field;

// Can't define operator== because gmock has a conflicting operator== in an
// internal namespace.
auto MatchesParameters(const HeapProfilerParameters& expected) {}

TEST(HeapProfilerParametersTest, ParseEmptyParameters) {}

TEST(HeapProfilerParametersTest, ParseParameters) {}

TEST(HeapProfilerParametersTest, ParsePartialParameters) {}

TEST(HeapProfilerParametersTest, ParseInvalidParameters) {}

// Test that heap profiling is not supported for any process type when
// --enable-benchmarking is specified on the command line.
TEST(HeapProfilerParametersTest, EnableBenchmarking) {}

TEST(HeapProfilerParametersTest, ApplyParameters) {}

TEST(HeapProfilerParametersTest, ApplyInvalidParameters) {}

}  // namespace

}  // namespace heap_profiling