chromium/content/browser/tracing/trace_report/trace_report_database_unittest.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/tracing/trace_report/trace_report_database.h"

#include <optional>
#include <string>

#include "base/files/scoped_file.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/strings/string_util.h"
#include "base/time/time.h"
#include "base/token.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace content {
namespace {

NewTraceReport MakeNewTraceReport(base::Time now = base::Time::Now()) {}

}  // namespace

class TraceReportDatabaseTest : public testing::Test {};

TEST_F(TraceReportDatabaseTest, CreatingAndDroppingLocalTraceTable) {}

// Test without Initializing the database before
TEST(TraceReportDatabaseNoOpenTest, OpenDatabaseIfExists) {}

TEST_F(TraceReportDatabaseTest, AddingNewTraceReport) {}

TEST_F(TraceReportDatabaseTest, AddingNewTraceReportNoContent) {}

TEST_F(TraceReportDatabaseTest, RetrieveTraceContentFromReport) {}

TEST_F(TraceReportDatabaseTest, DeletingSingleTrace) {}

TEST_F(TraceReportDatabaseTest, DeletingAllTraces) {}

TEST_F(TraceReportDatabaseTest, DeleteTracesInDateRange) {}

TEST_F(TraceReportDatabaseTest, DeleteTraceReportsOlderThan) {}

TEST_F(TraceReportDatabaseTest, DeleteOldTraceContent) {}

TEST_F(TraceReportDatabaseTest, AllPendingUploadSkipped) {}

TEST_F(TraceReportDatabaseTest, UserRequestedUpload) {}

TEST_F(TraceReportDatabaseTest, UserRequestedUploadNotAnonymized) {}

TEST_F(TraceReportDatabaseTest, UploadComplete) {}

TEST_F(TraceReportDatabaseTest, UploadSkipped) {}

TEST_F(TraceReportDatabaseTest, GetNextReportPendingUpload) {}

TEST_F(TraceReportDatabaseTest, UploadCountSince) {}

TEST_F(TraceReportDatabaseTest, GetScenarioCounts) {}

}  // namespace content