#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()) { … }
}
class TraceReportDatabaseTest : public testing::Test { … };
TEST_F(TraceReportDatabaseTest, CreatingAndDroppingLocalTraceTable) { … }
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) { … }
}