Home
last modified time | relevance | path

Searched refs:FakePacketFragment (Results 1 – 3 of 3) sorted by relevance

/external/perfetto/src/tracing/core/
Dtrace_buffer_unittest.cc73 std::vector<FakePacketFragment> ReadPacket( in ReadPacket()
76 std::vector<FakePacketFragment> fragments; in ReadPacket()
171 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(42, seed))); in TEST_F()
196 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(32 - 16, i))); in TEST_F()
224 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(512 - 16, 'a'))); in TEST_F()
225 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(512 - 16, 'b'))); in TEST_F()
226 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(1024 - 16, 'c'))); in TEST_F()
227 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(2048 - 16, 'd'))); in TEST_F()
268 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(1024 - 16, 'd'))); in TEST_F()
269 ASSERT_THAT(ReadPacket(), ElementsAre(FakePacketFragment(2048 - 16, 'e'))); in TEST_F()
[all …]
/external/perfetto/src/tracing/test/
Dfake_packet.cc31 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()
Dfake_packet.h33 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&);