#include "base/profiler/metadata_recorder.h"
#include <optional>
#include "base/ranges/algorithm.h"
#include "base/test/gtest_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
bool operator==(const MetadataRecorder::Item& lhs,
const MetadataRecorder::Item& rhs) { … }
bool operator<(const MetadataRecorder::Item& lhs,
const MetadataRecorder::Item& rhs) { … }
TEST(MetadataRecorderTest, GetItems_Empty) { … }
TEST(MetadataRecorderTest, Set_NewNameHash) { … }
TEST(MetadataRecorderTest, Set_ExistingNameNash) { … }
TEST(MetadataRecorderTest, Set_ReAddRemovedNameNash) { … }
TEST(MetadataRecorderTest, Set_AddPastMaxCount) { … }
TEST(MetadataRecorderTest, Set_NulloptKeyIsIndependentOfNonNulloptKey) { … }
TEST(MetadataRecorderTest, Set_ThreadIdIsScoped) { … }
TEST(MetadataRecorderTest, Set_NulloptThreadAndNonNulloptThread) { … }
TEST(MetadataRecorderTest, Remove) { … }
TEST(MetadataRecorderTest, Remove_DoesntExist) { … }
TEST(MetadataRecorderTest, Remove_NulloptKeyIsIndependentOfNonNulloptKey) { … }
TEST(MetadataRecorderTest,
Remove_NulloptThreadIsIndependentOfNonNulloptThread) { … }
TEST(MetadataRecorderTest, ReclaimInactiveSlots) { … }
}