#include "src/trace_processor/importers/perf/perf_session.h"
#include <cstdint>
#include <cstring>
#include "perfetto/ext/base/status_or.h"
#include "perfetto/trace_processor/trace_blob.h"
#include "perfetto/trace_processor/trace_blob_view.h"
#include "src/trace_processor/importers/perf/perf_event.h"
#include "src/trace_processor/storage/trace_storage.h"
#include "src/trace_processor/types/trace_processor_context.h"
#include "test/gtest_and_gmock.h"
namespace perfetto::trace_processor::perf_importer {
namespace {
Eq;
NotNull;
MATCHER(IsOk, "is ok") { … }
MATCHER_P(IsOkAndHolds, matcher, "") { … }
TEST(PerfSessionTest, NoAttrBuildFails) { … }
TEST(PerfSessionTest, OneAttrAndNoIdBuildSucceeds) { … }
TEST(PerfSessionTest, MultipleAttrsAndNoIdBuildFails) { … }
TEST(PerfSessionTest, MultipleIdsSameAttrAndNoIdCanExtractAttrFromRecord) { … }
TEST(PerfSessionTest, NoCommonSampleIdAllBuildFails) { … }
TEST(PerfSessionTest, NoCommonOffsetForSampleBuildFails) { … }
TEST(PerfSessionTest, NoCommonOffsetForNonSampleBuildFails) { … }
TEST(PerfSessionTest, NoCommonOffsetForNonSampleAndNoSampleIdAllBuildSucceeds) { … }
TEST(PerfSessionTest, MultiplesessionBuildSucceeds) { … }
TEST(PerfSessionTest, FindAttrInRecordWithId) { … }
TEST(PerfSessionTest, FindAttrInRecordWithIdentifier) { … }
}
}