Lines Matching refs:EXPECT_EQ

127     EXPECT_EQ(kExpectations.size(), tests_run);  in TEST()
133 EXPECT_EQ(0U, ones.scope_id()); in TEST()
135 EXPECT_EQ(0U, ones22.scope_id()); in TEST()
136 EXPECT_EQ(ones, ones22); in TEST()
138 EXPECT_EQ(0U, ones23.scope_id()); in TEST()
139 EXPECT_EQ(ones22, ones23); in TEST()
141 EXPECT_EQ("fe80::1%22", IPAddress(FE80_1, 22).toString()); in TEST()
142 EXPECT_EQ("fe80::2%23", IPAddress(FE80_2, 23).toString()); in TEST()
147 EXPECT_EQ(22U, fe80_intf22.scope_id()); in TEST()
148 EXPECT_EQ(fe80_intf22, IPAddress(fe80_intf22)); in TEST()
149 EXPECT_EQ(IPAddress(FE80_1), IPAddress(fe80_intf22, 0)); in TEST()
157 EXPECT_EQ(IPAddress(), IPAddress::forString("not_an_ip")); in TEST()
159 EXPECT_EQ(IPAddress(IPV4_ANY), IPAddress::forString("0.0.0.0")); in TEST()
160 EXPECT_EQ(IPAddress(IPV4_ONES), IPAddress::forString("255.255.255.255")); in TEST()
161 EXPECT_EQ(IPAddress(IPV4_LOOPBACK), IPAddress::forString("127.0.0.1")); in TEST()
163 EXPECT_EQ(IPAddress(IPV6_ANY), IPAddress::forString("::")); in TEST()
164 EXPECT_EQ(IPAddress(IPV6_ANY), IPAddress::forString("::0")); in TEST()
165 EXPECT_EQ(IPAddress(IPV6_ANY), IPAddress::forString("0::")); in TEST()
166 EXPECT_EQ(IPAddress(IPV6_LOOPBACK), IPAddress::forString("::1")); in TEST()
167 EXPECT_EQ(IPAddress(IPV6_LOOPBACK), IPAddress::forString("0::1")); in TEST()
168 EXPECT_EQ(IPAddress(FE80_1), IPAddress::forString("fe80::1")); in TEST()
169 EXPECT_EQ(IPAddress(FE80_1, 22), IPAddress::forString("fe80::1%22")); in TEST()
171 EXPECT_EQ(IPAddress(FE80_1, 1), IPAddress::forString("fe80::1%lo")); in TEST()
199 EXPECT_EQ("2001:db8::/32", prefix.toString()); in TEST()
200 EXPECT_EQ(IPPrefix(IPAddress::forString("2001:db8::"), 32), prefix); in TEST()
202 EXPECT_EQ(IPPrefix(), IPPrefix::forString("invalid")); in TEST()
204 EXPECT_EQ("0.0.0.0/0", IPPrefix::forString("0.0.0.0/0").toString()); in TEST()
205 EXPECT_EQ("::/0", IPPrefix::forString("::/0").toString()); in TEST()
206 EXPECT_EQ("192.0.2.128/25", IPPrefix::forString("192.0.2.131/25").toString()); in TEST()
207 EXPECT_EQ("2001:db8:1:2:3:4:5:4/126", in TEST()
216 EXPECT_EQ("0.0.0.0/0", prefixStr(0)); in TEST()
218 EXPECT_EQ("128.0.0.0/1", prefixStr(1)); in TEST()
219 EXPECT_EQ("192.0.0.0/2", prefixStr(2)); in TEST()
220 EXPECT_EQ("224.0.0.0/3", prefixStr(3)); in TEST()
221 EXPECT_EQ("240.0.0.0/4", prefixStr(4)); in TEST()
222 EXPECT_EQ("248.0.0.0/5", prefixStr(5)); in TEST()
223 EXPECT_EQ("252.0.0.0/6", prefixStr(6)); in TEST()
224 EXPECT_EQ("254.0.0.0/7", prefixStr(7)); in TEST()
225 EXPECT_EQ("255.0.0.0/8", prefixStr(8)); in TEST()
227 EXPECT_EQ("255.128.0.0/9", prefixStr(9)); in TEST()
228 EXPECT_EQ("255.192.0.0/10", prefixStr(10)); in TEST()
229 EXPECT_EQ("255.224.0.0/11", prefixStr(11)); in TEST()
230 EXPECT_EQ("255.240.0.0/12", prefixStr(12)); in TEST()
231 EXPECT_EQ("255.248.0.0/13", prefixStr(13)); in TEST()
232 EXPECT_EQ("255.252.0.0/14", prefixStr(14)); in TEST()
233 EXPECT_EQ("255.254.0.0/15", prefixStr(15)); in TEST()
234 EXPECT_EQ("255.255.0.0/16", prefixStr(16)); in TEST()
236 EXPECT_EQ("255.255.128.0/17", prefixStr(17)); in TEST()
237 EXPECT_EQ("255.255.192.0/18", prefixStr(18)); in TEST()
238 EXPECT_EQ("255.255.224.0/19", prefixStr(19)); in TEST()
239 EXPECT_EQ("255.255.240.0/20", prefixStr(20)); in TEST()
240 EXPECT_EQ("255.255.248.0/21", prefixStr(21)); in TEST()
241 EXPECT_EQ("255.255.252.0/22", prefixStr(22)); in TEST()
242 EXPECT_EQ("255.255.254.0/23", prefixStr(23)); in TEST()
243 EXPECT_EQ("255.255.255.0/24", prefixStr(24)); in TEST()
245 EXPECT_EQ("255.255.255.128/25", prefixStr(25)); in TEST()
246 EXPECT_EQ("255.255.255.192/26", prefixStr(26)); in TEST()
247 EXPECT_EQ("255.255.255.224/27", prefixStr(27)); in TEST()
248 EXPECT_EQ("255.255.255.240/28", prefixStr(28)); in TEST()
249 EXPECT_EQ("255.255.255.248/29", prefixStr(29)); in TEST()
250 EXPECT_EQ("255.255.255.252/30", prefixStr(30)); in TEST()
251 EXPECT_EQ("255.255.255.254/31", prefixStr(31)); in TEST()
252 EXPECT_EQ("255.255.255.255/32", prefixStr(32)); in TEST()
260 EXPECT_EQ("::/0", prefixStr(0)); in TEST()
262 EXPECT_EQ("8000::/1", prefixStr(1)); in TEST()
263 EXPECT_EQ("c000::/2", prefixStr(2)); in TEST()
264 EXPECT_EQ("e000::/3", prefixStr(3)); in TEST()
265 EXPECT_EQ("f000::/4", prefixStr(4)); in TEST()
266 EXPECT_EQ("f800::/5", prefixStr(5)); in TEST()
267 EXPECT_EQ("fc00::/6", prefixStr(6)); in TEST()
268 EXPECT_EQ("fe00::/7", prefixStr(7)); in TEST()
269 EXPECT_EQ("ff00::/8", prefixStr(8)); in TEST()
271 EXPECT_EQ("ff80::/9", prefixStr(9)); in TEST()
272 EXPECT_EQ("ffc0::/10", prefixStr(10)); in TEST()
273 EXPECT_EQ("ffe0::/11", prefixStr(11)); in TEST()
274 EXPECT_EQ("fff0::/12", prefixStr(12)); in TEST()
275 EXPECT_EQ("fff8::/13", prefixStr(13)); in TEST()
276 EXPECT_EQ("fffc::/14", prefixStr(14)); in TEST()
277 EXPECT_EQ("fffe::/15", prefixStr(15)); in TEST()
278 EXPECT_EQ("ffff::/16", prefixStr(16)); in TEST()
280 EXPECT_EQ("ffff:8000::/17", prefixStr(17)); in TEST()
281 EXPECT_EQ("ffff:c000::/18", prefixStr(18)); in TEST()
282 EXPECT_EQ("ffff:e000::/19", prefixStr(19)); in TEST()
283 EXPECT_EQ("ffff:f000::/20", prefixStr(20)); in TEST()
284 EXPECT_EQ("ffff:f800::/21", prefixStr(21)); in TEST()
285 EXPECT_EQ("ffff:fc00::/22", prefixStr(22)); in TEST()
286 EXPECT_EQ("ffff:fe00::/23", prefixStr(23)); in TEST()
287 EXPECT_EQ("ffff:ff00::/24", prefixStr(24)); in TEST()
289 EXPECT_EQ("ffff:ff80::/25", prefixStr(25)); in TEST()
290 EXPECT_EQ("ffff:ffc0::/26", prefixStr(26)); in TEST()
291 EXPECT_EQ("ffff:ffe0::/27", prefixStr(27)); in TEST()
292 EXPECT_EQ("ffff:fff0::/28", prefixStr(28)); in TEST()
293 EXPECT_EQ("ffff:fff8::/29", prefixStr(29)); in TEST()
294 EXPECT_EQ("ffff:fffc::/30", prefixStr(30)); in TEST()
295 EXPECT_EQ("ffff:fffe::/31", prefixStr(31)); in TEST()
296 EXPECT_EQ("ffff:ffff::/32", prefixStr(32)); in TEST()
298 EXPECT_EQ("ffff:ffff:8000::/33", prefixStr(33)); in TEST()
299 EXPECT_EQ("ffff:ffff:c000::/34", prefixStr(34)); in TEST()
300 EXPECT_EQ("ffff:ffff:e000::/35", prefixStr(35)); in TEST()
301 EXPECT_EQ("ffff:ffff:f000::/36", prefixStr(36)); in TEST()
302 EXPECT_EQ("ffff:ffff:f800::/37", prefixStr(37)); in TEST()
303 EXPECT_EQ("ffff:ffff:fc00::/38", prefixStr(38)); in TEST()
304 EXPECT_EQ("ffff:ffff:fe00::/39", prefixStr(39)); in TEST()
305 EXPECT_EQ("ffff:ffff:ff00::/40", prefixStr(40)); in TEST()
307 EXPECT_EQ("ffff:ffff:ff80::/41", prefixStr(41)); in TEST()
308 EXPECT_EQ("ffff:ffff:ffc0::/42", prefixStr(42)); in TEST()
309 EXPECT_EQ("ffff:ffff:ffe0::/43", prefixStr(43)); in TEST()
310 EXPECT_EQ("ffff:ffff:fff0::/44", prefixStr(44)); in TEST()
311 EXPECT_EQ("ffff:ffff:fff8::/45", prefixStr(45)); in TEST()
312 EXPECT_EQ("ffff:ffff:fffc::/46", prefixStr(46)); in TEST()
313 EXPECT_EQ("ffff:ffff:fffe::/47", prefixStr(47)); in TEST()
314 EXPECT_EQ("ffff:ffff:ffff::/48", prefixStr(48)); in TEST()
316 EXPECT_EQ("ffff:ffff:ffff:8000::/49", prefixStr(49)); in TEST()
317 EXPECT_EQ("ffff:ffff:ffff:c000::/50", prefixStr(50)); in TEST()
318 EXPECT_EQ("ffff:ffff:ffff:e000::/51", prefixStr(51)); in TEST()
319 EXPECT_EQ("ffff:ffff:ffff:f000::/52", prefixStr(52)); in TEST()
320 EXPECT_EQ("ffff:ffff:ffff:f800::/53", prefixStr(53)); in TEST()
321 EXPECT_EQ("ffff:ffff:ffff:fc00::/54", prefixStr(54)); in TEST()
322 EXPECT_EQ("ffff:ffff:ffff:fe00::/55", prefixStr(55)); in TEST()
323 EXPECT_EQ("ffff:ffff:ffff:ff00::/56", prefixStr(56)); in TEST()
325 EXPECT_EQ("ffff:ffff:ffff:ff80::/57", prefixStr(57)); in TEST()
326 EXPECT_EQ("ffff:ffff:ffff:ffc0::/58", prefixStr(58)); in TEST()
327 EXPECT_EQ("ffff:ffff:ffff:ffe0::/59", prefixStr(59)); in TEST()
328 EXPECT_EQ("ffff:ffff:ffff:fff0::/60", prefixStr(60)); in TEST()
329 EXPECT_EQ("ffff:ffff:ffff:fff8::/61", prefixStr(61)); in TEST()
330 EXPECT_EQ("ffff:ffff:ffff:fffc::/62", prefixStr(62)); in TEST()
331 EXPECT_EQ("ffff:ffff:ffff:fffe::/63", prefixStr(63)); in TEST()
332 EXPECT_EQ("ffff:ffff:ffff:ffff::/64", prefixStr(64)); in TEST()
334 EXPECT_EQ("ffff:ffff:ffff:ffff:8000::/65", prefixStr(65)); in TEST()
335 EXPECT_EQ("ffff:ffff:ffff:ffff:c000::/66", prefixStr(66)); in TEST()
336 EXPECT_EQ("ffff:ffff:ffff:ffff:e000::/67", prefixStr(67)); in TEST()
337 EXPECT_EQ("ffff:ffff:ffff:ffff:f000::/68", prefixStr(68)); in TEST()
338 EXPECT_EQ("ffff:ffff:ffff:ffff:f800::/69", prefixStr(69)); in TEST()
339 EXPECT_EQ("ffff:ffff:ffff:ffff:fc00::/70", prefixStr(70)); in TEST()
340 EXPECT_EQ("ffff:ffff:ffff:ffff:fe00::/71", prefixStr(71)); in TEST()
341 EXPECT_EQ("ffff:ffff:ffff:ffff:ff00::/72", prefixStr(72)); in TEST()
343 EXPECT_EQ("ffff:ffff:ffff:ffff:ff80::/73", prefixStr(73)); in TEST()
344 EXPECT_EQ("ffff:ffff:ffff:ffff:ffc0::/74", prefixStr(74)); in TEST()
345 EXPECT_EQ("ffff:ffff:ffff:ffff:ffe0::/75", prefixStr(75)); in TEST()
346 EXPECT_EQ("ffff:ffff:ffff:ffff:fff0::/76", prefixStr(76)); in TEST()
347 EXPECT_EQ("ffff:ffff:ffff:ffff:fff8::/77", prefixStr(77)); in TEST()
348 EXPECT_EQ("ffff:ffff:ffff:ffff:fffc::/78", prefixStr(78)); in TEST()
349 EXPECT_EQ("ffff:ffff:ffff:ffff:fffe::/79", prefixStr(79)); in TEST()
350 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff::/80", prefixStr(80)); in TEST()
352 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:8000::/81", prefixStr(81)); in TEST()
353 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:c000::/82", prefixStr(82)); in TEST()
354 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:e000::/83", prefixStr(83)); in TEST()
355 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:f000::/84", prefixStr(84)); in TEST()
356 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:f800::/85", prefixStr(85)); in TEST()
357 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:fc00::/86", prefixStr(86)); in TEST()
358 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:fe00::/87", prefixStr(87)); in TEST()
359 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ff00::/88", prefixStr(88)); in TEST()
361 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ff80::/89", prefixStr(89)); in TEST()
362 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffc0::/90", prefixStr(90)); in TEST()
363 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffe0::/91", prefixStr(91)); in TEST()
364 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:fff0::/92", prefixStr(92)); in TEST()
365 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:fff8::/93", prefixStr(93)); in TEST()
366 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:fffc::/94", prefixStr(94)); in TEST()
367 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:fffe::/95", prefixStr(95)); in TEST()
368 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff::/96", prefixStr(96)); in TEST()
370 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:8000:0/97", prefixStr(97)); in TEST()
371 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:c000:0/98", prefixStr(98)); in TEST()
372 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:e000:0/99", prefixStr(99)); in TEST()
373 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:f000:0/100", prefixStr(100)); in TEST()
374 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:f800:0/101", prefixStr(101)); in TEST()
375 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:fc00:0/102", prefixStr(102)); in TEST()
376 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:fe00:0/103", prefixStr(103)); in TEST()
377 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ff00:0/104", prefixStr(104)); in TEST()
379 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ff80:0/105", prefixStr(105)); in TEST()
380 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffc0:0/106", prefixStr(106)); in TEST()
381 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffe0:0/107", prefixStr(107)); in TEST()
382 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:fff0:0/108", prefixStr(108)); in TEST()
383 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:fff8:0/109", prefixStr(109)); in TEST()
384 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:fffc:0/110", prefixStr(110)); in TEST()
385 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:fffe:0/111", prefixStr(111)); in TEST()
386 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:0/112", prefixStr(112)); in TEST()
388 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:8000/113", prefixStr(113)); in TEST()
389 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:c000/114", prefixStr(114)); in TEST()
390 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:e000/115", prefixStr(115)); in TEST()
391 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:f000/116", prefixStr(116)); in TEST()
392 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:f800/117", prefixStr(117)); in TEST()
393 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:fc00/118", prefixStr(118)); in TEST()
394 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:fe00/119", prefixStr(119)); in TEST()
395 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ff00/120", prefixStr(120)); in TEST()
397 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ff80/121", prefixStr(121)); in TEST()
398 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffc0/122", prefixStr(122)); in TEST()
399 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffe0/123", prefixStr(123)); in TEST()
400 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff0/124", prefixStr(124)); in TEST()
401 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff8/125", prefixStr(125)); in TEST()
402 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffc/126", prefixStr(126)); in TEST()
403 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe/127", prefixStr(127)); in TEST()
404 EXPECT_EQ("ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff/128", prefixStr(128)); in TEST()
434 EXPECT_EQ(expectation.cidrLen, prefix.length()) in TEST()
436 EXPECT_EQ(ipTruncated, prefix.ip()) in TEST()
489 EXPECT_EQ(kExpectations.size(), tests_run); in TEST()
514 EXPECT_EQ(kExpectations.size(), tests_run); in TEST()
518 EXPECT_EQ("<unspecified>:0", IPSockAddr().toString()); in TEST()
519 EXPECT_EQ("0.0.0.0:0", IPSockAddr(IPAddress(IPV4_ANY)).toString()); in TEST()
520 EXPECT_EQ("255.255.255.255:67", IPSockAddr(IPAddress(IPV4_ONES), 67).toString()); in TEST()
521 EXPECT_EQ("[::]:0", IPSockAddr(IPAddress(IPV6_ANY)).toString()); in TEST()
522 EXPECT_EQ("[::1]:53", IPSockAddr(IPAddress(IPV6_LOOPBACK), 53).toString()); in TEST()
523 EXPECT_EQ("[fe80::1]:0", IPSockAddr(IPAddress(FE80_1)).toString()); in TEST()
524 EXPECT_EQ("[fe80::2%17]:123", IPSockAddr(IPAddress(FE80_2, 17), 123).toString()); in TEST()
530 EXPECT_EQ(IPAddress(FE80_2, idx), linkLocalNtpSockaddr.ip()); in TEST()
532 EXPECT_EQ(0, IPSockAddr(linkLocalNtpSockaddr.ip()).port()); in TEST()
534 EXPECT_EQ(IPAddress(FE80, idx), linkLocalPrefix.ip()); in TEST()
536 EXPECT_EQ(IPV6_ADDR_BITS, IPPrefix(linkLocalPrefix.ip()).length()); in TEST()