Lines Matching refs:lines

236     std::vector<stats_line> lines;  in TEST_F()  local
241 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID1, in TEST_F()
243 ASSERT_EQ((unsigned long)2, lines.size()); in TEST_F()
244 lines.clear(); in TEST_F()
245 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID2, in TEST_F()
247 ASSERT_EQ((unsigned long)1, lines.size()); in TEST_F()
248 expectStatsLineEqual(value1, IFACE_NAME3, TEST_UID2, TEST_COUNTERSET1, 0, lines.front()); in TEST_F()
312 std::vector<stats_line> lines; in TEST_F() local
314 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, UID_ALL, mFakeStatsMap, in TEST_F()
316 ASSERT_EQ((unsigned long)4, lines.size()); in TEST_F()
317 lines.clear(); in TEST_F()
318 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID1, in TEST_F()
320 ASSERT_EQ((unsigned long)3, lines.size()); in TEST_F()
321 lines.clear(); in TEST_F()
322 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TEST_TAG, TEST_UID1, in TEST_F()
324 ASSERT_EQ((unsigned long)2, lines.size()); in TEST_F()
325 lines.clear(); in TEST_F()
327 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TEST_TAG, TEST_UID1, in TEST_F()
329 ASSERT_EQ((unsigned long)1, lines.size()); in TEST_F()
330 expectStatsLineEqual(value1, IFACE_NAME1, TEST_UID1, TEST_COUNTERSET0, TEST_TAG, lines.front()); in TEST_F()
349 std::vector<stats_line> lines; in TEST_F() local
351 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, UID_ALL, mFakeStatsMap, in TEST_F()
353 ASSERT_EQ((unsigned long)4, lines.size()); in TEST_F()
354 lines.clear(); in TEST_F()
355 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID1, in TEST_F()
357 ASSERT_EQ((unsigned long)3, lines.size()); in TEST_F()
358 lines.clear(); in TEST_F()
359 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID2, in TEST_F()
361 ASSERT_EQ((unsigned long)1, lines.size()); in TEST_F()
362 expectStatsLineEqual(value1, IFACE_NAME1, TEST_UID2, TEST_COUNTERSET0, 0, lines.front()); in TEST_F()
363 lines.clear(); in TEST_F()
365 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, TEST_UID1, in TEST_F()
367 ASSERT_EQ((unsigned long)2, lines.size()); in TEST_F()
405 std::vector<stats_line> lines; in TEST_F() local
408 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, UID_ALL, mFakeStatsMap, in TEST_F()
410 ASSERT_EQ((unsigned long)1, lines.size()); in TEST_F()
411 expectStatsLineEqual(value1, IFACE_NAME1, TEST_UID1, TEST_COUNTERSET0, 0, lines.front()); in TEST_F()
441 std::vector<stats_line> lines; in TEST_F() local
443 parseBpfNetworkStatsDevInternal(&lines, mFakeIfaceStatsMap, mFakeIfaceIndexNameMap)); in TEST_F()
444 ASSERT_EQ((unsigned long)4, lines.size()); in TEST_F()
446 expectStatsLineEqual(value1, IFACE_NAME1, UID_ALL, SET_ALL, TAG_NONE, lines[0]); in TEST_F()
447 expectStatsLineEqual(value1, IFACE_NAME3, UID_ALL, SET_ALL, TAG_NONE, lines[1]); in TEST_F()
448 expectStatsLineEqual(value2, IFACE_NAME2, UID_ALL, SET_ALL, TAG_NONE, lines[2]); in TEST_F()
449 ASSERT_EQ(0, strcmp(TRUNCATED_IFACE_NAME, lines[3].iface)); in TEST_F()
450 expectStatsLineEqual(value2, TRUNCATED_IFACE_NAME, UID_ALL, SET_ALL, TAG_NONE, lines[3]); in TEST_F()
480 std::vector<stats_line> lines; in TEST_F() local
484 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, UID_ALL, mFakeStatsMap, in TEST_F()
486 ASSERT_EQ((size_t) 0, lines.size()); in TEST_F()
487 lines.clear(); in TEST_F()
491 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, UID_ALL, mFakeStatsMap, in TEST_F()
493 ASSERT_EQ((size_t) 1, lines.size()); in TEST_F()
494 expectStatsLineEqual(value1, IFACE_NAME1, TEST_UID1, TEST_COUNTERSET0, TEST_TAG, lines[0]); in TEST_F()
495 lines.clear(); in TEST_F()
503 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, UID_ALL, mFakeStatsMap, in TEST_F()
505 ASSERT_EQ((size_t) 5, lines.size()); in TEST_F()
506 lines.clear(); in TEST_F()
512 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, UID_ALL, mFakeStatsMap, in TEST_F()
514 ASSERT_EQ((size_t) 5, lines.size()); in TEST_F()
517 expectStatsLineEqual(value3, IFACE_NAME1, TEST_UID1, TEST_COUNTERSET0, TEST_TAG, lines[0]); in TEST_F()
518 expectStatsLineEqual(value2, IFACE_NAME1, TEST_UID1, TEST_COUNTERSET1, TEST_TAG, lines[1]); in TEST_F()
519 expectStatsLineEqual(value2, IFACE_NAME1, TEST_UID1, TEST_COUNTERSET0, TEST_TAG + 1, lines[2]); in TEST_F()
520 expectStatsLineEqual(value3, IFACE_NAME1, TEST_UID2, TEST_COUNTERSET0, TEST_TAG, lines[3]); in TEST_F()
521 expectStatsLineEqual(value2, IFACE_NAME2, TEST_UID1, TEST_COUNTERSET0, TEST_TAG, lines[4]); in TEST_F()
522 lines.clear(); in TEST_F()
535 parseBpfNetworkStatsDevInternal(&lines, mFakeIfaceStatsMap, mFakeIfaceIndexNameMap)); in TEST_F()
536 ASSERT_EQ((size_t) 2, lines.size()); in TEST_F()
538 expectStatsLineEqual(value3, IFACE_NAME1, UID_ALL, SET_ALL, TAG_NONE, lines[0]); in TEST_F()
539 expectStatsLineEqual(value2, IFACE_NAME2, UID_ALL, SET_ALL, TAG_NONE, lines[1]); in TEST_F()
540 lines.clear(); in TEST_F()
571 std::vector<stats_line> lines; in TEST_F() local
573 ASSERT_EQ(0, parseBpfNetworkStatsDetailInternal(&lines, ifaces, TAG_ALL, UID_ALL, mFakeStatsMap, in TEST_F()
575 ASSERT_EQ((size_t) 8, lines.size()); in TEST_F()
578 expectStatsLineEqual(value1, IFACE_NAME1, 0, TEST_COUNTERSET0, TEST_TAG, lines[0]); in TEST_F()
581 expectStatsLineEqual(value1, IFACE_NAME1, TEST_UID1, TEST_COUNTERSET0, 0, lines[1]); in TEST_F()
582 expectStatsLineEqual(value1, IFACE_NAME1, TEST_UID1, TEST_COUNTERSET0, INT_MAX, lines[2]); in TEST_F()
583 expectStatsLineEqual(value1, IFACE_NAME1, TEST_UID1, TEST_COUNTERSET0, INT_MIN, lines[3]); in TEST_F()
584 expectStatsLineEqual(value1, IFACE_NAME1, TEST_UID1, TEST_COUNTERSET0, UINT_MAX, lines[4]); in TEST_F()
587 expectStatsLineEqual(value1, IFACE_NAME1, INT_MAX, TEST_COUNTERSET0, TEST_TAG, lines[5]); in TEST_F()
588 expectStatsLineEqual(value1, IFACE_NAME1, INT_MIN, TEST_COUNTERSET0, TEST_TAG, lines[6]); in TEST_F()
589 expectStatsLineEqual(value1, IFACE_NAME1, UINT_MAX, TEST_COUNTERSET0, TEST_TAG, lines[7]); in TEST_F()
590 lines.clear(); in TEST_F()