30 EXPECT_EQ(0u, buffer.GetSize());
31 EXPECT_EQ(0u, buffer.GetLength());
32 EXPECT_TRUE(buffer
.GetSpan().empty());
35 EXPECT_EQ(1u, buffer2.GetSize());
36 EXPECT_EQ(1u, buffer2.GetLength());
37 EXPECT_EQ(65u, buffer2.GetSpan()[0]);
44 buffer2 =
std::move(buffer);
47 EXPECT_EQ(0u, buffer.GetSize());
48 EXPECT_EQ(0u, buffer.GetLength());
49 EXPECT_TRUE(buffer
.GetSpan().empty());
52 EXPECT_EQ(1u, buffer2.GetSize());
53 ASSERT_EQ(1u, buffer2.GetLength());
54 EXPECT_EQ(65u, buffer2.GetSpan()[0]);
69 std::vector<uint8_t> aaa(3, 65u);
70 std::vector<uint8_t> bbb(3, 66u);
74 EXPECT_EQ(6u, buffer.GetSize());
75 EXPECT_EQ(6u, buffer.GetLength());
76 EXPECT_EQ(65u, buffer.GetSpan()[0]);
77 EXPECT_EQ(65u, buffer.GetSpan()[1]);
78 EXPECT_EQ(65u, buffer.GetSpan()[2]);
79 EXPECT_EQ(66u, buffer.GetSpan()[3]);
80 EXPECT_EQ(66u, buffer.GetSpan()[4]);
81 EXPECT_EQ(66u, buffer.GetSpan()[5]);
86 std::vector<uint8_t> aaa(3, 65u);
87 std::vector<uint8_t> bbb(3, 66u);
90 EXPECT_EQ(6u, buffer.GetSize());
91 EXPECT_EQ(6u, buffer.GetLength());
92 EXPECT_EQ(65u, buffer.GetSpan()[0]);
93 EXPECT_EQ(65u, buffer.GetSpan()[1]);
94 EXPECT_EQ(65u, buffer.GetSpan()[2]);
95 EXPECT_EQ(66u, buffer.GetSpan()[3]);
96 EXPECT_EQ(66u, buffer.GetSpan()[4]);
97 EXPECT_EQ(66u, buffer.GetSpan()[5]);
104 EXPECT_EQ(4u, buffer.GetSize());
105 EXPECT_EQ(4u, buffer.GetLength());
106 EXPECT_EQ(65u, buffer.GetSpan()[0]);
107 EXPECT_EQ(65u, buffer.GetSpan()[1]);
108 EXPECT_EQ(66u, buffer.GetSpan()[2]);
109 EXPECT_EQ(66u, buffer.GetSpan()[3]);
136 EXPECT_EQ(4u, buffer.GetSize());
137 EXPECT_EQ(4u, buffer.GetLength());
138 EXPECT_EQ(0x21u, buffer.GetSpan()[0]);
139 EXPECT_EQ(0x43u, buffer.GetSpan()[1]);
140 EXPECT_EQ(0x65u, buffer.GetSpan()[2]);
141 EXPECT_EQ(0x87u, buffer.GetSpan()[3]);