Go to the source code of this file.
TEST_F |
( |
AsyncPipeTest |
, |
|
|
simple |
|
|
) |
| |
Definition at line 129 of file AsyncPipeTest.cpp.
References EXPECT_EQ, and EXPECT_FALSE.
130 for (
int pass = 0; pass < 2; ++pass) {
131 reset(pass % 2 != 0);
132 reader_->setReadCB(&readCallback_);
133 writer_->write(getBuf(
"hello"), &writeCallback_);
134 writer_->closeOnEmpty();
136 EXPECT_EQ(readCallback_.getData(),
"hello");
#define EXPECT_EQ(val1, val2)
#define EXPECT_FALSE(condition)
TEST_F |
( |
AsyncPipeTest |
, |
|
|
blocked_writes |
|
|
) |
| |
Definition at line 143 of file AsyncPipeTest.cpp.
References EXPECT_EQ, EXPECT_FALSE, i, string, and uint32_t.
144 for (
int pass = 0; pass < 2; ++pass) {
145 reset(pass % 2 != 0);
149 writer_->write(getBuf(
"hello"), &writeCallback_);
150 }
while (writeCallback_.writes_ == writeAttempts);
152 writer_->closeOnEmpty();
154 reader_->setReadCB(&readCallback_);
161 EXPECT_EQ(readCallback_.getData(), expected);
163 EXPECT_EQ(writeCallback_.writes_, writeAttempts);
#define EXPECT_EQ(val1, val2)
#define EXPECT_FALSE(condition)
TEST_F |
( |
AsyncPipeTest |
, |
|
|
writeOnClose |
|
|
) |
| |
Definition at line 168 of file AsyncPipeTest.cpp.
References EXPECT_EQ, EXPECT_FALSE, and EXPECT_TRUE.
169 for (
int pass = 0; pass < 2; ++pass) {
170 reset(pass % 2 != 0);
171 reader_->setReadCB(&readCallback_);
172 writer_->write(getBuf(
"hello"), &writeCallback_);
173 writer_->closeOnEmpty();
174 writer_->write(getBuf(
"hello"), &writeCallback_);
176 EXPECT_EQ(readCallback_.getData(),
"hello");
#define EXPECT_EQ(val1, val2)
#define EXPECT_TRUE(condition)
#define EXPECT_FALSE(condition)