|
proxygen
|
#include <gtest/gtest.h>#include <wangle/codec/FixedLengthFrameDecoder.h>#include <wangle/codec/LengthFieldBasedFrameDecoder.h>#include <wangle/codec/LengthFieldPrepender.h>#include <wangle/codec/LineBasedFrameDecoder.h>#include <wangle/codec/test/CodecTestUtils.h>Go to the source code of this file.
Functions | |
| TEST (FixedLengthFrameDecoder, FailWhenLengthFieldEndOffset) | |
| TEST (LengthFieldFramePipeline, SimpleTest) | |
| TEST (LengthFieldFramePipeline, LittleEndian) | |
| TEST (LengthFieldFrameDecoder, Simple) | |
| TEST (LengthFieldFrameDecoder, NoStrip) | |
| TEST (LengthFieldFrameDecoder, Adjustment) | |
| TEST (LengthFieldFrameDecoder, PreHeader) | |
| TEST (LengthFieldFrameDecoder, PostHeader) | |
| TEST (LengthFieldFrameDecoderStrip, PrePostHeader) | |
| TEST (LengthFieldFrameDecoder, StripPrePostHeaderFrameInclHeader) | |
| TEST (LengthFieldFrameDecoder, FailTestLengthFieldEndOffset) | |
| TEST (LengthFieldFrameDecoder, FailTestLengthFieldFrameSize) | |
| TEST (LengthFieldFrameDecoder, FailTestLengthFieldInitialBytes) | |
| TEST (LengthFieldFrameDecoder, FailTestNotEnoughBytes) | |
| TEST (LineBasedFrameDecoder, Simple) | |
| TEST (LineBasedFrameDecoder, SaveDelimiter) | |
| TEST (LineBasedFrameDecoder, Fail) | |
| TEST (LineBasedFrameDecoder, NewLineOnly) | |
| TEST (LineBasedFrameDecoder, CarriageNewLineOnly) | |
| TEST | ( | FixedLengthFrameDecoder | , |
| FailWhenLengthFieldEndOffset | |||
| ) |
Definition at line 38 of file CodecTest.cpp.
References folly::IOBufQueue::append(), folly::IOBufQueue::cacheChainLength(), folly::IOBuf::computeChainDataLength(), EXPECT_EQ, and folly::gen::move.
| TEST | ( | LengthFieldFramePipeline | , |
| SimpleTest | |||
| ) |
Definition at line 70 of file CodecTest.cpp.
References folly::IOBuf::computeChainDataLength(), EXPECT_EQ, and folly::gen::move.
| TEST | ( | LengthFieldFramePipeline | , |
| LittleEndian | |||
| ) |
Definition at line 90 of file CodecTest.cpp.
References folly::IOBuf::computeChainDataLength(), EXPECT_EQ, and folly::gen::move.
| TEST | ( | LengthFieldFrameDecoder | , |
| Simple | |||
| ) |
Definition at line 110 of file CodecTest.cpp.
References folly::IOBufQueue::append(), c, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::computeChainDataLength(), EXPECT_EQ, folly::gen::move, and uint32_t.
| TEST | ( | LengthFieldFrameDecoder | , |
| NoStrip | |||
| ) |
Definition at line 139 of file CodecTest.cpp.
References folly::IOBufQueue::append(), c, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::computeChainDataLength(), EXPECT_EQ, folly::gen::move, and uint16_t.
| TEST | ( | LengthFieldFrameDecoder | , |
| Adjustment | |||
| ) |
Definition at line 168 of file CodecTest.cpp.
References folly::IOBufQueue::append(), c, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::computeChainDataLength(), EXPECT_EQ, folly::gen::move, and uint16_t.
| TEST | ( | LengthFieldFrameDecoder | , |
| PreHeader | |||
| ) |
Definition at line 197 of file CodecTest.cpp.
References folly::IOBufQueue::append(), c, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::computeChainDataLength(), EXPECT_EQ, folly::gen::move, and uint16_t.
| TEST | ( | LengthFieldFrameDecoder | , |
| PostHeader | |||
| ) |
Definition at line 227 of file CodecTest.cpp.
References folly::IOBufQueue::append(), c, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::computeChainDataLength(), EXPECT_EQ, folly::gen::move, and uint16_t.
| TEST | ( | LengthFieldFrameDecoderStrip | , |
| PrePostHeader | |||
| ) |
Definition at line 257 of file CodecTest.cpp.
References folly::IOBufQueue::append(), c, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::computeChainDataLength(), EXPECT_EQ, folly::gen::move, and uint16_t.
| TEST | ( | LengthFieldFrameDecoder | , |
| StripPrePostHeaderFrameInclHeader | |||
| ) |
Definition at line 288 of file CodecTest.cpp.
References folly::IOBufQueue::append(), c, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::computeChainDataLength(), EXPECT_EQ, folly::gen::move, and uint16_t.
| TEST | ( | LengthFieldFrameDecoder | , |
| FailTestLengthFieldEndOffset | |||
| ) |
Definition at line 319 of file CodecTest.cpp.
References folly::IOBufQueue::append(), ASSERT_EQ, c, folly::IOBufQueue::cacheChainLength(), EXPECT_EQ, folly::gen::move, and uint32_t.
| TEST | ( | LengthFieldFrameDecoder | , |
| FailTestLengthFieldFrameSize | |||
| ) |
Definition at line 343 of file CodecTest.cpp.
References folly::IOBufQueue::append(), ASSERT_EQ, c, folly::IOBufQueue::cacheChainLength(), EXPECT_EQ, folly::gen::move, and uint32_t.
| TEST | ( | LengthFieldFrameDecoder | , |
| FailTestLengthFieldInitialBytes | |||
| ) |
Definition at line 369 of file CodecTest.cpp.
References folly::IOBufQueue::append(), ASSERT_EQ, c, folly::IOBufQueue::cacheChainLength(), EXPECT_EQ, folly::gen::move, and uint32_t.
| TEST | ( | LengthFieldFrameDecoder | , |
| FailTestNotEnoughBytes | |||
| ) |
Definition at line 395 of file CodecTest.cpp.
References folly::IOBufQueue::append(), ASSERT_EQ, c, folly::IOBufQueue::cacheChainLength(), EXPECT_EQ, folly::gen::move, and uint32_t.
| TEST | ( | LineBasedFrameDecoder | , |
| Simple | |||
| ) |
Definition at line 421 of file CodecTest.cpp.
References folly::IOBufQueue::append(), c, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::computeChainDataLength(), EXPECT_EQ, folly::gen::move, and folly::io::detail::Writable< Derived >::write().
| TEST | ( | LineBasedFrameDecoder | , |
| SaveDelimiter | |||
| ) |
Definition at line 468 of file CodecTest.cpp.
References folly::IOBufQueue::append(), c, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::computeChainDataLength(), EXPECT_EQ, folly::gen::move, and folly::io::detail::Writable< Derived >::write().
| TEST | ( | LineBasedFrameDecoder | , |
| Fail | |||
| ) |
Definition at line 513 of file CodecTest.cpp.
References folly::IOBufQueue::append(), ASSERT_EQ, c, folly::IOBufQueue::cacheChainLength(), EXPECT_EQ, i, folly::gen::move, and folly::io::detail::Writable< Derived >::write().
| TEST | ( | LineBasedFrameDecoder | , |
| NewLineOnly | |||
| ) |
Definition at line 557 of file CodecTest.cpp.
References c, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::computeChainDataLength(), EXPECT_EQ, and folly::gen::move.
| TEST | ( | LineBasedFrameDecoder | , |
| CarriageNewLineOnly | |||
| ) |
Definition at line 583 of file CodecTest.cpp.
References c, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::computeChainDataLength(), EXPECT_EQ, and folly::gen::move.