Lines Matching defs:expect
40 lws_unit_test_packet_t *expect;
98 while (priv->expect->flags & LWS_AUT_EXPECT_RX &&
100 int f = priv->expect->flags & LWS_AUT_EXPECT_LOCAL_CLOSE, s;
102 if (priv->expect->pre)
103 priv->expect->pre(priv->abs);
106 lwsl_hexdump_debug(priv->expect->buffer, priv->expect->len);
107 s = priv->abs->ap->rx(priv->abs->api, priv->expect->buffer,
108 priv->expect->len);
118 if (priv->expect->flags & LWS_AUT_EXPECT_TEST_END) {
123 priv->expect++;
172 if (priv->expect->flags & LWS_AUT_EXPECT_SHOULD_TIMEOUT) {
233 if (!(priv->expect->flags & LWS_AUT_EXPECT_LOCAL_CLOSE)) {
252 if (!(priv->expect->flags & LWS_AUT_EXPECT_SHOULD_TIMEOUT)) {
264 priv->expect++;
265 if (!priv->expect->buffer) {
301 if (priv->expect->pre)
302 priv->expect->pre(priv->abs);
304 if (!(priv->expect->flags & LWS_AUT_EXPECT_TX)) {
312 if (len != priv->expect->len) {
314 __func__, len, priv->expect->len);
321 if (memcmp(buf, priv->expect->buffer, len)) {
323 lwsl_hexdump_debug(priv->expect->buffer, len);
331 if (priv->expect->flags & LWS_AUT_EXPECT_TEST_END) {
337 priv->expect++;
380 priv->expect = priv->current_test->expect_array;