#include "src/trace_processor/sorter/trace_sorter.h"
#include <map>
#include <random>
#include <vector>
#include "perfetto/trace_processor/basic_types.h"
#include "perfetto/trace_processor/trace_blob.h"
#include "perfetto/trace_processor/trace_blob_view.h"
#include "src/trace_processor/importers/common/parser_types.h"
#include "src/trace_processor/importers/proto/packet_sequence_state_generation.h"
#include "src/trace_processor/importers/proto/proto_trace_parser_impl.h"
#include "src/trace_processor/types/trace_processor_context.h"
#include "test/gtest_and_gmock.h"
namespace perfetto {
namespace trace_processor {
namespace {
_;
InSequence;
Invoke;
MockFunction;
NiceMock;
constexpr std::optional<MachineId> kNullMachineId = …;
class MockTraceParser : public ProtoTraceParserImpl { … };
class MockTraceStorage : public TraceStorage { … };
class TraceSorterTest : public ::testing::Test { … };
TEST_F(TraceSorterTest, TestFtrace) { … }
TEST_F(TraceSorterTest, TestTracePacket) { … }
TEST_F(TraceSorterTest, Ordering) { … }
TEST_F(TraceSorterTest, IncrementalExtraction) { … }
TEST_F(TraceSorterTest, OutOfOrder) { … }
TEST_F(TraceSorterTest, MultiQueueSorting) { … }
TEST_F(TraceSorterTest, MultiMachineSorting) { … }
}
}
}