chromium/components/metrics/serialization/serialization_utils_unittest.cc

// Copyright 2014 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/metrics/serialization/serialization_utils.h"

#include <stddef.h>
#include <stdint.h>

#include "base/check.h"
#include "base/containers/span.h"
#include "base/files/file.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/strings/stringprintf.h"
#include "base/test/metrics/histogram_tester.h"
#include "components/metrics/serialization/metric_sample.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace metrics {
namespace {

IsEmpty;

class SerializationUtilsTest : public testing::Test {};

TEST_F(SerializationUtilsTest, CrashSerializeTest) {}

TEST_F(SerializationUtilsTest, HistogramSerializeTest) {}

TEST_F(SerializationUtilsTest, LinearSerializeTest) {}

TEST_F(SerializationUtilsTest, SparseSerializeTest) {}

TEST_F(SerializationUtilsTest, UserActionSerializeTest) {}

TEST_F(SerializationUtilsTest, InvalidCrashSerialize) {}

TEST_F(SerializationUtilsTest, InvalidHistogramSample) {}

TEST_F(SerializationUtilsTest, InvalidSparseHistogramSample) {}

TEST_F(SerializationUtilsTest, InvalidLinearHistogramSample) {}

TEST_F(SerializationUtilsTest, InvalidUserAction) {}

TEST_F(SerializationUtilsTest, IllegalNameAreFilteredTest) {}

TEST_F(SerializationUtilsTest, BadInputIsCaughtTest) {}

TEST_F(SerializationUtilsTest, MessageSeparatedByZero) {}

TEST_F(SerializationUtilsTest, MessagesTooLongAreDiscardedTest) {}

TEST_F(SerializationUtilsTest, ReadLongMessageTest) {}

TEST_F(SerializationUtilsTest, NegativeLengthTest) {}

TEST_F(SerializationUtilsTest, WriteReadTest_TruncateFile) {}

TEST_F(SerializationUtilsTest, WriteReadTest_DeleteFile) {}

TEST_F(SerializationUtilsTest, TooManyMessagesTest) {}

TEST_F(SerializationUtilsTest, ReadEmptyFile) {}

TEST_F(SerializationUtilsTest, ReadNonExistentFile) {}

TEST_F(SerializationUtilsTest, ParseInvalidType) {}

}  // namespace
}  // namespace metrics