#include "src/tracing/test/fake_packet.h"
#include <ostream>
#include "perfetto/base/logging.h"
#include "perfetto/ext/tracing/core/shared_memory_abi.h"
#include "perfetto/protozero/proto_utils.h"
#include "src/tracing/service/trace_buffer.h"
ParseVarInt;
WriteVarInt;
namespace perfetto {
FakePacketFragment::FakePacketFragment(size_t size, char prefix) { … }
FakePacketFragment::FakePacketFragment(const void* payload,
size_t payload_size) { … }
void FakePacketFragment::CopyInto(std::vector<uint8_t>* data) const { … }
size_t FakePacketFragment::GetSizeHeader() const { … }
bool FakePacketFragment::operator==(const FakePacketFragment& o) const { … }
std::ostream& operator<<(std::ostream& os, const FakePacketFragment& packet) { … }
FakeChunk::FakeChunk(TraceBuffer* t, ProducerID p, WriterID w, ChunkID c)
: … { … }
FakeChunk& FakeChunk::AddPacket(size_t size, char seed, uint8_t packet_flag) { … }
FakeChunk& FakeChunk::AddPacket(std::initializer_list<uint8_t> raw) { … }
FakeChunk& FakeChunk::IncrementNumPackets() { … }
FakeChunk& FakeChunk::SetFlags(uint8_t flags_to_set) { … }
FakeChunk& FakeChunk::ClearBytes(size_t offset, size_t len) { … }
FakeChunk& FakeChunk::SetUID(uid_t u) { … }
FakeChunk& FakeChunk::PadTo(size_t chunk_size) { … }
size_t FakeChunk::CopyIntoTraceBuffer(bool chunk_complete) { … }
}