Searched refs:FakePacketFragment (Results 1 – 3 of 3) sorted by relevance
/external/perfetto/src/tracing/core/ |
D | trace_buffer_unittest.cc | 71 std::vector<FakePacketFragment> ReadPacket(uint32_t* uid = nullptr) { in ReadPacket() 72 std::vector<FakePacketFragment> fragments; in ReadPacket() 160 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(42, seed))); in TEST_F() 177 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(32 - 16, i))); in TEST_F() 205 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(512 - 16, 'a'))); in TEST_F() 206 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(512 - 16, 'b'))); in TEST_F() 207 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(1024 - 16, 'c'))); in TEST_F() 208 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(2048 - 16, 'd'))); in TEST_F() 249 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(1024 - 16, 'd'))); in TEST_F() 250 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(2048 - 16, 'e'))); in TEST_F() [all …]
|
/external/perfetto/src/tracing/test/ |
D | fake_packet.cc | 31 FakePacketFragment::FakePacketFragment(size_t size, char prefix) { in FakePacketFragment() function in perfetto::FakePacketFragment 75 FakePacketFragment::FakePacketFragment(const void* payload, in FakePacketFragment() function in perfetto::FakePacketFragment 83 void FakePacketFragment::CopyInto(std::vector<uint8_t>* data) const { in CopyInto() 88 size_t FakePacketFragment::GetSizeHeader() const { in GetSizeHeader() 94 bool FakePacketFragment::operator==(const FakePacketFragment& o) const { in operator ==() 101 std::ostream& operator<<(std::ostream& os, const FakePacketFragment& packet) { in operator <<() 118 FakePacketFragment(size, seed).CopyInto(&data); in AddPacket()
|
D | fake_packet.h | 33 class FakePacketFragment { 37 FakePacketFragment(size_t size, char prefix); 38 FakePacketFragment(const void* payload, size_t payload_size); 41 bool operator==(const FakePacketFragment& other) const; 50 std::ostream& operator<<(std::ostream&, const FakePacketFragment&);
|