Lines Matching refs:transport

40   ThriftTransport *transport;  in test_open_and_close()  local
55 transport = THRIFT_TRANSPORT (g_object_new (THRIFT_TYPE_FD_TRANSPORT, in test_open_and_close()
58 klass = THRIFT_TRANSPORT_GET_CLASS (transport); in test_open_and_close()
61 g_assert (klass->is_open (transport)); in test_open_and_close()
62 g_assert (klass->peek (transport, &error)); in test_open_and_close()
63 g_assert (klass->open (transport, &error)); in test_open_and_close()
64 g_assert (klass->is_open (transport)); in test_open_and_close()
65 g_assert (klass->peek (transport, &error)); in test_open_and_close()
67 g_assert (klass->close (transport, &error)); in test_open_and_close()
68 g_assert (! klass->open (transport, &error)); in test_open_and_close()
69 g_assert (! klass->is_open (transport)); in test_open_and_close()
70 g_assert (! klass->peek (transport, &error)); in test_open_and_close()
76 g_object_unref (transport); in test_open_and_close()
83 transport = THRIFT_TRANSPORT (g_object_new (THRIFT_TYPE_FD_TRANSPORT, in test_open_and_close()
86 klass = THRIFT_TRANSPORT_GET_CLASS (transport); in test_open_and_close()
88 g_assert (! klass->is_open (transport)); in test_open_and_close()
90 g_assert (! klass->peek (transport, &error)); in test_open_and_close()
92 g_assert (! klass->open (transport, &error)); in test_open_and_close()
94 g_assert (! klass->close (transport, &error)); in test_open_and_close()
96 g_object_unref (transport); in test_open_and_close()
106 ThriftTransport *transport; in test_read_and_write() local
121 transport = THRIFT_TRANSPORT (g_object_new (THRIFT_TYPE_FD_TRANSPORT, in test_read_and_write()
124 klass = THRIFT_TRANSPORT_GET_CLASS (transport); in test_read_and_write()
125 g_assert (klass->is_open (transport)); in test_read_and_write()
126 g_assert (klass->write (transport, (gpointer) TEST_DATA, 11, &error)); in test_read_and_write()
127 g_assert (klass->flush (transport, &error)); in test_read_and_write()
128 g_assert (klass->close (transport, &error)); in test_read_and_write()
129 g_object_unref (transport); in test_read_and_write()
135 transport = THRIFT_TRANSPORT (g_object_new (THRIFT_TYPE_FD_TRANSPORT, in test_read_and_write()
140 klass = THRIFT_TRANSPORT_GET_CLASS (transport); in test_read_and_write()
146 got = klass->read (transport, (gpointer) b, want, &error); in test_read_and_write()
156 got = klass->read (transport, (gpointer) b, want, &error); in test_read_and_write()
159 g_assert (klass->close (transport, &error)); in test_read_and_write()
160 g_object_unref (transport); in test_read_and_write()