chromium/base/trace_event/memory_usage_estimator_unittest.cc

// Copyright 2016 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/trace_event/memory_usage_estimator.h"

#include <stdlib.h>

#include <string>

#include "base/memory/ptr_util.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"

#if defined(ARCH_CPU_64_BITS)
#define EXPECT_EQ_32_64(_, e, a)
#else
#define EXPECT_EQ_32_64
#endif

namespace base {
namespace trace_event {

namespace {

// Test class with predictable memory usage.
class Data {};

}  // namespace

namespace internal {

// This kills variance of bucket_count across STL implementations.
template <>
size_t HashMapBucketCountForTesting<Data>(size_t) {}
template <>
size_t HashMapBucketCountForTesting<std::pair<const Data, short>>(size_t) {}

}  // namespace internal

TEST(EstimateMemoryUsageTest, String) {}

TEST(EstimateMemoryUsageTest, String16) {}

TEST(EstimateMemoryUsageTest, Arrays) {}

TEST(EstimateMemoryUsageTest, UniquePtr) {}

TEST(EstimateMemoryUsageTest, Vector) {}

TEST(EstimateMemoryUsageTest, Vector_of_Pointers) {}

TEST(EstimateMemoryUsageTest, List) {}

TEST(EstimateMemoryUsageTest, Set) {}

TEST(EstimateMemoryUsageTest, MultiSet) {}

TEST(EstimateMemoryUsageTest, Map) {}

TEST(EstimateMemoryUsageTest, MultiMap) {}

TEST(EstimateMemoryUsageTest, UnorderedSet) {}

TEST(EstimateMemoryUsageTest, UnorderedMultiSet) {}

TEST(EstimateMemoryUsageTest, UnorderedMap) {}

TEST(EstimateMemoryUsageTest, UnorderedMultiMap) {}

TEST(EstimateMemoryUsageTest, Deque) {}

TEST(EstimateMemoryUsageTest, IsStandardContainerComplexIteratorTest) {}

}  // namespace trace_event
}  // namespace base