20 using namespace folly;
32 return mockClose(ctx).move();
57 Mock::VerifyAndClear(&subscriber0);
58 Mock::VerifyAndClear(&subscriber1);
85 data = buf->moveToFbString().toStdString();
111 EXPECT_CALL(subscriber0, onNext(
"data3")).Times(1);
112 EXPECT_CALL(subscriber1, onNext(
"data3")).Times(1);
150 if (bufQueue.chainLength() < 5) {
153 auto buf = bufQueue.move();
155 data = buf->moveToFbString().toStdString();
164 EXPECT_CALL(subscriber0, onNext(
"data1")).Times(1);
186 EXPECT_CALL(subscriber0, onNext(
"data3data4")).Times(1);
187 EXPECT_CALL(subscriber1, onNext(
"data3data4")).Times(1);
195 EXPECT_CALL(subscriber0, onNext(
"data2")).Times(1);
196 EXPECT_CALL(subscriber1, onNext(
"data2")).Times(1);
225 data = buf->moveToFbString().toStdString();
236 EXPECT_CALL(subscriber0, onNext(
"data1")).Times(1);
247 EXPECT_CALL(subscriber0, onNext(
"data2")).Times(1);
248 EXPECT_CALL(subscriber1, onNext(
"data2")).Times(1);
281 data = buf->moveToFbString().toStdString();
292 EXPECT_CALL(subscriber0, onNext(
"data1")).Times(1);
303 EXPECT_CALL(subscriber0, onNext(
"data2")).Times(1);
304 EXPECT_CALL(subscriber1, onNext(
"data2")).Times(1);
321 handler->readException(
nullptr, make_exception_wrapper<std::exception>());
HandlerAdapter< std::string, std::unique_ptr< folly::IOBuf > >::Context Context
void append(std::unique_ptr< folly::IOBuf > &&buf, bool pack=false)
internal::EqMatcher< T > Eq(T x)
#define EXPECT_EQ(val1, val2)
TokenBindingMessage decode(folly::io::Cursor &cursor)
std::unique_ptr< folly::IOBuf > move()
—— Concurrent Priority Queue Implementation ——
PolymorphicAction< internal::InvokeWithoutArgsAction< FunctionImpl > > InvokeWithoutArgs(FunctionImpl function_impl)
void handler(int, siginfo_t *, void *)
static Options cacheChainLength()
PolymorphicAction< internal::InvokeAction< FunctionImpl > > Invoke(FunctionImpl function_impl)
size_t read(T &out, folly::io::Cursor &cursor)
ByteToMessageDecoder< T >::Context Context
MoveWrapper< T0 > makeMoveWrapper(T &&t)
StrictMock< MockSubscriber< std::string, std::string > > subscriber0
StrictMock< MockSubscriber< std::string, std::string > > subscriber1
DefaultPipeline::Ptr pipeline
#define MOCK_METHOD1(m,...)
std::shared_ptr< Pipeline > Ptr
#define EXPECT_CALL(obj, call)
const internal::AnythingMatcher _
Handler< R, R, W, W >::Context Context
static std::unique_ptr< IOBuf > copyBuffer(const void *buf, std::size_t size, std::size_t headroom=0, std::size_t minTailroom=0)
static constexpr uint64_t data[1]
Future< typename std::decay< T >::type > makeFuture(T &&t)
folly::Future< folly::Unit > close(Context *ctx) override
TEST_F(AcceptorTest, TestCanAcceptWithNoConnectionCounter)