#include "src/tracing/service/packet_stream_validator.h"
#include <string>
#include "protos/perfetto/trace/ftrace/ftrace_event.gen.h"
#include "protos/perfetto/trace/ftrace/ftrace_event_bundle.gen.h"
#include "protos/perfetto/trace/ftrace/sched.gen.h"
#include "protos/perfetto/trace/test_event.gen.h"
#include "protos/perfetto/trace/trace_packet.gen.h"
#include "test/gtest_and_gmock.h"
namespace perfetto {
namespace {
TEST(PacketStreamValidatorTest, NullPacket) { … }
TEST(PacketStreamValidatorTest, SimplePacket) { … }
TEST(PacketStreamValidatorTest, ComplexPacket) { … }
TEST(PacketStreamValidatorTest, SimplePacketWithUid) { … }
TEST(PacketStreamValidatorTest, SimplePacketWithZeroUid) { … }
TEST(PacketStreamValidatorTest, SimplePacketWithNegativeOneUid) { … }
TEST(PacketStreamValidatorTest, ComplexPacketWithUid) { … }
TEST(PacketStreamValidatorTest, FragmentedPacket) { … }
TEST(PacketStreamValidatorTest, FragmentedPacketWithUid) { … }
TEST(PacketStreamValidatorTest, SimplePacketWithPid) { … }
TEST(PacketStreamValidatorTest, SimplePacketWithZeroPid) { … }
TEST(PacketStreamValidatorTest, SimplePacketWithNegativeOnePid) { … }
TEST(PacketStreamValidatorTest, SimplePacketWithMachineID) { … }
TEST(PacketStreamValidatorTest, SimplePacketWithZeroMachineID) { … }
TEST(PacketStreamValidatorTest, ComplexPacketWithPid) { … }
TEST(PacketStreamValidatorTest, FragmentedPacketWithPid) { … }
TEST(PacketStreamValidatorTest, TruncatedPacket) { … }
TEST(PacketStreamValidatorTest, TrailingGarbage) { … }
}
}