Home | History | Annotate | Download | only in tests

Lines Matching full:channel

39     // Our purpose here is to verify that the input channel destructor closes the
41 // of a pipe and to check for EPIPE on the other end after the channel is destroyed.
44 sp<InputChannel> inputChannel = new InputChannel(String8("channel name"), pipe.sendFd);
46 EXPECT_STREQ("channel name", inputChannel->getName().string())
47 << "channel should have provided name";
49 << "channel should have provided fd";
51 inputChannel.clear(); // destroys input channel
54 << "channel should have closed fd when destroyed";
63 status_t result = InputChannel::openInputChannelPair(String8("channel name"),
67 << "should have successfully opened a channel pair";
70 EXPECT_STREQ("channel name (server)", serverChannel->getName().string())
71 << "server channel should have suffixed name";
72 EXPECT_STREQ("channel name (client)", clientChannel->getName().string())
73 << "client channel should have suffixed name";
81 << "server channel should be able to send message to client channel";
85 << "client channel should be able to receive message from server channel";
87 << "client channel should receive the correct message from server channel";
89 << "client channel should receive the correct message from server channel";
98 << "client channel should be able to send message to server channel";
102 << "server channel should be able to receive message from client channel";
104 << "server channel should receive the correct message from client channel";
106 << "server channel should receive the correct message from client channel";
108 << "server channel should receive the correct message from client channel";
114 status_t result = InputChannel::openInputChannelPair(String8("channel name"),
118 << "should have successfully opened a channel pair";
128 status_t result = InputChannel::openInputChannelPair(String8("channel name"),
132 << "should have successfully opened a channel pair";
134 serverChannel.clear(); // close server channel
144 status_t result = InputChannel::openInputChannelPair(String8("channel name"),
148 << "should have successfully opened a channel pair";
150 serverChannel.clear(); // close server channel