Home
last modified time | relevance | path

Searched refs:ASSERT_SIZE_T_EQ (Results 1 – 7 of 7) sorted by relevance

/external/openssh/regress/unittests/sshbuf/
Dtest_sshbuf_getput_basic.c81 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 5); in sshbuf_getput_basic_tests()
94 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1); in sshbuf_getput_basic_tests()
101 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1); in sshbuf_getput_basic_tests()
109 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1); in sshbuf_getput_basic_tests()
117 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 10); in sshbuf_getput_basic_tests()
120 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2); in sshbuf_getput_basic_tests()
124 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2); in sshbuf_getput_basic_tests()
127 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2); in sshbuf_getput_basic_tests()
135 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 10); in sshbuf_getput_basic_tests()
138 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 6); in sshbuf_getput_basic_tests()
[all …]
Dtest_sshbuf.c50 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0); in sshbuf_tests()
55 ASSERT_SIZE_T_EQ(sshbuf_max_size(p1), 65536); in sshbuf_tests()
59 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), 65536); in sshbuf_tests()
98 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4); in sshbuf_tests()
111 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4); in sshbuf_tests()
113 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4); in sshbuf_tests()
116 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4); in sshbuf_tests()
118 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 3); in sshbuf_tests()
123 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1); in sshbuf_tests()
129 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1); in sshbuf_tests()
[all …]
Dtest_sshbuf_getput_crypto.c85 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(expbn1) + 2); in sshbuf_getput_crypto_tests()
99 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0); in sshbuf_getput_crypto_tests()
109 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(expbn2) + 2); in sshbuf_getput_crypto_tests()
123 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0); in sshbuf_getput_crypto_tests()
133 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(expbn1) + 4); in sshbuf_getput_crypto_tests()
147 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0); in sshbuf_getput_crypto_tests()
157 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(expbn2) + 4 + 1); /* MSB */ in sshbuf_getput_crypto_tests()
172 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0); in sshbuf_getput_crypto_tests()
183 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2 + sizeof(expbn1)); in sshbuf_getput_crypto_tests()
188 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2); in sshbuf_getput_crypto_tests()
[all …]
Dtest_sshbuf_fuzz.c56 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), sz); in sshbuf_fuzz_tests()
57 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sz2); in sshbuf_fuzz_tests()
61 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), sz - r); in sshbuf_fuzz_tests()
62 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sz2 + r); in sshbuf_fuzz_tests()
80 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), sz); in sshbuf_fuzz_tests()
81 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sz2); in sshbuf_fuzz_tests()
84 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), sz + r); in sshbuf_fuzz_tests()
85 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sz2 - r); in sshbuf_fuzz_tests()
96 ASSERT_SIZE_T_EQ(sshbuf_max_size(p1), sz); in sshbuf_fuzz_tests()
98 ASSERT_SIZE_T_EQ(sshbuf_max_size(p1), r); in sshbuf_fuzz_tests()
Dtest_sshbuf_fixed.c46 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), 0); in sshbuf_fixed()
62 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0); in sshbuf_fixed()
64 ASSERT_SIZE_T_EQ(l, 5); in sshbuf_fixed()
85 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sshbuf_len(p2)); in sshbuf_fixed()
93 ASSERT_SIZE_T_EQ(sshbuf_len(p2), 0); in sshbuf_fixed()
95 ASSERT_SIZE_T_EQ(l, 5); in sshbuf_fixed()
110 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(test_buf) - 1); in sshbuf_fixed()
112 ASSERT_SIZE_T_EQ(sshbuf_len(p2), sizeof(test_buf) + 4 - 1); in sshbuf_fixed()
114 ASSERT_SIZE_T_EQ(sshbuf_len(p2), 0); in sshbuf_fixed()
117 ASSERT_SIZE_T_EQ(sshbuf_len(p3), sizeof(test_buf) - 1); in sshbuf_fixed()
Dtest_sshbuf_misc.c106 ASSERT_SIZE_T_EQ(strlen(p), ((8191 + 2) / 3) * 4); in sshbuf_misc_tests()
115 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1); in sshbuf_misc_tests()
124 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 2); in sshbuf_misc_tests()
133 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 4); in sshbuf_misc_tests()
144 ASSERT_SIZE_T_EQ(strlen(p), 0); in sshbuf_misc_tests()
150 ASSERT_SIZE_T_EQ(strlen(p), strlen("quad1")); in sshbuf_misc_tests()
157 ASSERT_SIZE_T_EQ(strlen(p), strlen("quad1")); in sshbuf_misc_tests()
/external/openssh/regress/unittests/test_helper/
Dtest_helper.h112 #define ASSERT_SIZE_T_EQ(a1, a2) \ macro