Lines Matching refs:packed

41   std::vector<uint8_t> packed;  in DoPackNoAddend()  local
55 packed.clear(); in DoPackNoAddend()
56 packer.PackRelocations(relocations, &packed); in DoPackNoAddend()
58 ASSERT_EQ(18U, packed.size()); in DoPackNoAddend()
61 EXPECT_EQ('A', packed[ndx++]); in DoPackNoAddend()
62 EXPECT_EQ('P', packed[ndx++]); in DoPackNoAddend()
63 EXPECT_EQ('S', packed[ndx++]); in DoPackNoAddend()
64 EXPECT_EQ('2', packed[ndx++]); in DoPackNoAddend()
66 EXPECT_EQ(6, packed[ndx++]); in DoPackNoAddend()
68 EXPECT_EQ(0xfc, packed[ndx++]); in DoPackNoAddend()
69 EXPECT_EQ(0xff, packed[ndx++]); in DoPackNoAddend()
70 EXPECT_EQ(0xb7, packed[ndx++]); in DoPackNoAddend()
71 EXPECT_EQ(0x8e, packed[ndx++]); in DoPackNoAddend()
72 EXPECT_EQ(is_32 ? 0x7d : 0x0d, packed[ndx++]); in DoPackNoAddend()
74 EXPECT_EQ(3, packed[ndx++]); // size in DoPackNoAddend()
75 EXPECT_EQ(3, packed[ndx++]); // flags in DoPackNoAddend()
76 EXPECT_EQ(4, packed[ndx++]); // r_offset_delta in DoPackNoAddend()
77 EXPECT_EQ(0x11, packed[ndx++]); // r_info in DoPackNoAddend()
79 EXPECT_EQ(3, packed[ndx++]); // size in DoPackNoAddend()
80 EXPECT_EQ(3, packed[ndx++]); // flags in DoPackNoAddend()
81 EXPECT_EQ(8, packed[ndx++]); // r_offset_delta in DoPackNoAddend()
82 EXPECT_EQ(0x11, packed[ndx++]); // r_info in DoPackNoAddend()
84 EXPECT_EQ(ndx, packed.size()); in DoPackNoAddend()
98 std::vector<uint8_t> packed; in DoUnpackNoAddend() local
100 packed.push_back('A'); in DoUnpackNoAddend()
101 packed.push_back('P'); in DoUnpackNoAddend()
102 packed.push_back('S'); in DoUnpackNoAddend()
103 packed.push_back('2'); in DoUnpackNoAddend()
105 packed.push_back(6); in DoUnpackNoAddend()
107 packed.push_back(0xfc); in DoUnpackNoAddend()
108 packed.push_back(0xff); in DoUnpackNoAddend()
109 packed.push_back(0xb7); in DoUnpackNoAddend()
110 packed.push_back(0x8e); in DoUnpackNoAddend()
111 packed.push_back(is_32 ? 0x7d : 0x0d); in DoUnpackNoAddend()
113 packed.push_back(3); // size in DoUnpackNoAddend()
114 packed.push_back(3); // flags in DoUnpackNoAddend()
115 packed.push_back(4); // r_offset_delta in DoUnpackNoAddend()
116 packed.push_back(0x11); // r_info in DoUnpackNoAddend()
118 packed.push_back(3); // size in DoUnpackNoAddend()
119 packed.push_back(3); // flags in DoUnpackNoAddend()
120 packed.push_back(8); // r_offset_delta in DoUnpackNoAddend()
121 packed.push_back(0x11); // r_info in DoUnpackNoAddend()
124 packer.UnpackRelocations(packed, &relocations); in DoUnpackNoAddend()
161 std::vector<uint8_t> packed; in DoPackWithAddend() local
165 packed.clear(); in DoPackWithAddend()
166 packer.PackRelocations(relocations, &packed); in DoPackWithAddend()
168 EXPECT_EQ(26U, packed.size()); in DoPackWithAddend()
171 EXPECT_EQ('A', packed[ndx++]); in DoPackWithAddend()
172 EXPECT_EQ('P', packed[ndx++]); in DoPackWithAddend()
173 EXPECT_EQ('S', packed[ndx++]); in DoPackWithAddend()
174 EXPECT_EQ('2', packed[ndx++]); in DoPackWithAddend()
176 EXPECT_EQ(6U, packed[ndx++]); in DoPackWithAddend()
178 EXPECT_EQ(0xfc, packed[ndx++]); in DoPackWithAddend()
179 EXPECT_EQ(0xff, packed[ndx++]); in DoPackWithAddend()
180 EXPECT_EQ(0xb7, packed[ndx++]); in DoPackWithAddend()
181 EXPECT_EQ(0x8e, packed[ndx++]); in DoPackWithAddend()
184 EXPECT_EQ(0x0d, packed[ndx++]); in DoPackWithAddend()
187 EXPECT_EQ(0x7d, packed[ndx++]); in DoPackWithAddend()
190 EXPECT_EQ(0x03, packed[ndx++]); // size in DoPackWithAddend()
191 EXPECT_EQ(0x0b, packed[ndx++]); // flags in DoPackWithAddend()
192 EXPECT_EQ(0x04, packed[ndx++]); // r_offset_delta in DoPackWithAddend()
193 EXPECT_EQ(0x01, packed[ndx++]); // r_info in DoPackWithAddend()
195 EXPECT_EQ(0xa8, packed[ndx++]); in DoPackWithAddend()
196 EXPECT_EQ(0xce, packed[ndx++]); in DoPackWithAddend()
197 EXPECT_EQ(0x00, packed[ndx++]); in DoPackWithAddend()
199 EXPECT_EQ(0x74, packed[ndx++]); in DoPackWithAddend()
201 EXPECT_EQ(0x0c, packed[ndx++]); in DoPackWithAddend()
204 EXPECT_EQ(0x03, packed[ndx++]); // size in DoPackWithAddend()
205 EXPECT_EQ(0x0b, packed[ndx++]); // flags in DoPackWithAddend()
206 EXPECT_EQ(0x08, packed[ndx++]); // r_offset_delta in DoPackWithAddend()
207 EXPECT_EQ(0x01, packed[ndx++]); // r_info in DoPackWithAddend()
210 EXPECT_EQ(0x68, packed[ndx++]); in DoPackWithAddend()
212 EXPECT_EQ(0x68, packed[ndx++]); in DoPackWithAddend()
214 EXPECT_EQ(0x68, packed[ndx++]); in DoPackWithAddend()
216 EXPECT_EQ(ndx, packed.size()); in DoPackWithAddend()
226 std::vector<uint8_t> packed; in DoUnpackWithAddend() local
228 packed.push_back('A'); in DoUnpackWithAddend()
229 packed.push_back('P'); in DoUnpackWithAddend()
230 packed.push_back('S'); in DoUnpackWithAddend()
231 packed.push_back('2'); in DoUnpackWithAddend()
233 packed.push_back(6U); in DoUnpackWithAddend()
235 packed.push_back(0xfc); in DoUnpackWithAddend()
236 packed.push_back(0xff); in DoUnpackWithAddend()
237 packed.push_back(0xb7); in DoUnpackWithAddend()
238 packed.push_back(0x8e); in DoUnpackWithAddend()
241 packed.push_back(0x0d); in DoUnpackWithAddend()
244 packed.push_back(0x7d); in DoUnpackWithAddend()
247 packed.push_back(0x03); // size in DoUnpackWithAddend()
248 packed.push_back(0x0b); // flags in DoUnpackWithAddend()
249 packed.push_back(0x04); // r_offset_delta in DoUnpackWithAddend()
250 packed.push_back(0x01); // r_info in DoUnpackWithAddend()
252 packed.push_back(0xa8); in DoUnpackWithAddend()
253 packed.push_back(0xce); in DoUnpackWithAddend()
254 packed.push_back(0x00); in DoUnpackWithAddend()
256 packed.push_back(0x74); in DoUnpackWithAddend()
258 packed.push_back(0x0c); in DoUnpackWithAddend()
261 packed.push_back(0x03); // size in DoUnpackWithAddend()
262 packed.push_back(0x0b); // flags in DoUnpackWithAddend()
263 packed.push_back(0x08); // r_offset_delta in DoUnpackWithAddend()
264 packed.push_back(0x01); // r_info in DoUnpackWithAddend()
267 packed.push_back(0x68); in DoUnpackWithAddend()
269 packed.push_back(0x68); in DoUnpackWithAddend()
271 packed.push_back(0x68); in DoUnpackWithAddend()
278 packer.UnpackRelocations(packed, &relocations); in DoUnpackWithAddend()