#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "services/tracing/public/cpp/perfetto/trace_packet_tokenizer.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/perfetto/include/perfetto/ext/tracing/core/trace_packet.h"
#include "third_party/perfetto/protos/perfetto/trace/trace.pb.h"
#include "third_party/perfetto/protos/perfetto/trace/trace_packet.pb.h"
#include <list>
namespace tracing {
namespace {
constexpr char kTestString[] = …;
class TracePacketTokenizerTest : public testing::Test { … };
TEST_F(TracePacketTokenizerTest, Basic) { … }
TEST_F(TracePacketTokenizerTest, PartialParse) { … }
TEST_F(TracePacketTokenizerTest, MultiplePackets) { … }
TEST_F(TracePacketTokenizerTest, Fragmentation) { … }
}
}