chromium/base/metrics/sample_vector_unittest.cc

// Copyright 2012 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/sample_vector.h"

#include <limits.h>
#include <stddef.h>

#include <atomic>
#include <memory>
#include <vector>

#include "base/metrics/bucket_ranges.h"
#include "base/metrics/histogram.h"
#include "base/metrics/persistent_memory_allocator.h"
#include "base/test/gtest_util.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace base {

// This framework class has "friend" access to the SampleVector for accessing
// non-public methods and fields.
class SampleVectorTest : public testing::Test {};

TEST_F(SampleVectorTest, Accumulate) {}

TEST_F(SampleVectorTest, Accumulate_LargeValuesDontOverflow) {}

TEST_F(SampleVectorTest, AddSubtract) {}

TEST_F(SampleVectorTest, BucketIndexDeath) {}

// TODO(crbug.com/363154866)
TEST_F(SampleVectorTest, DISABLED_AddSubtractBucketNotMatchDeath) {}

TEST_F(SampleVectorTest, Iterate) {}

TEST_F(SampleVectorTest, Iterator_InvalidSingleSample) {}

TEST_F(SampleVectorTest, ExtractingIterator_InvalidSingleSample) {}

TEST_F(SampleVectorTest, IterateDoneDeath) {}

TEST_F(SampleVectorTest, SingleSample) {}

TEST_F(SampleVectorTest, PersistentSampleVector) {}

TEST_F(SampleVectorTest, PersistentSampleVectorTestWithOutsideAlloc) {}

// Tests GetPeakBucketSize() returns accurate max bucket size.
TEST_F(SampleVectorTest, GetPeakBucketSize) {}

}  // namespace base