Lines Matching refs:file
68 FILE *file = get_fp_from_string(EMPTY_STATUS); in TEST() local
69 ASSERT_EQ(get_free_vhci_port(file, USBIP_SPEED_HIGH), 0); in TEST()
70 fclose(file); in TEST()
74 FILE *file = get_fp_from_string(EMPTY_STATUS); in TEST() local
75 ASSERT_EQ(get_free_vhci_port(file, USBIP_SPEED_SUPER), 4); in TEST()
76 fclose(file); in TEST()
80 FILE *file = get_fp_from_string(PORTS_ALLOCATED); in TEST() local
81 ASSERT_EQ(get_free_vhci_port(file, USBIP_SPEED_HIGH), 1); in TEST()
82 fclose(file); in TEST()
86 FILE *file = get_fp_from_string(PORTS_ALLOCATED); in TEST() local
87 ASSERT_EQ(get_free_vhci_port(file, USBIP_SPEED_SUPER), 5); in TEST()
88 fclose(file); in TEST()
92 FILE *file = get_fp_from_string(NONE_AVAILABLE); in TEST() local
93 ASSERT_EQ(get_free_vhci_port(file, USBIP_SPEED_HIGH), -1); in TEST()
94 fclose(file); in TEST()
98 FILE *file = get_fp_from_string(NONE_AVAILABLE); in TEST() local
99 ASSERT_EQ(get_free_vhci_port(file, USBIP_SPEED_SUPER), -1); in TEST()
100 fclose(file); in TEST()