proxygen
HPACKBufferTests Class Reference
Inheritance diagram for HPACKBufferTests:
testing::Test

Public Member Functions

 HPACKBufferTests ()
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 

Protected Member Functions

void releaseData ()
 
void releaseData (HPACKEncodeBuffer &encoder)
 
void resetDecoder ()
 
void resetDecoder (IOBuf *buf)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Protected Attributes

Cursor cursor_ {nullptr}
 
HPACKEncodeBuffer encoder_
 
HPACKDecodeBuffer decoder_
 
std::unique_ptr< IOBufbuf_ {nullptr}
 
const uint8_tdata_ {nullptr}
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Detailed Description

Definition at line 28 of file HPACKBufferTests.cpp.

Constructor & Destructor Documentation

HPACKBufferTests::HPACKBufferTests ( )
inline

Definition at line 34 of file HPACKBufferTests.cpp.

34  : encoder_(512),
35  decoder_(cursor_, 0, kMaxLiteralSize) {
36  }
HPACKEncodeBuffer encoder_
HPACKDecodeBuffer decoder_

Member Function Documentation

void HPACKBufferTests::releaseData ( )
inlineprotected

Definition at line 40 of file HPACKBufferTests.cpp.

40  {
42  }
HPACKEncodeBuffer encoder_
void HPACKBufferTests::releaseData ( HPACKEncodeBuffer encoder)
inlineprotected

Definition at line 44 of file HPACKBufferTests.cpp.

References folly::Range< Iter >::data(), data_, and proxygen::HPACKEncodeBuffer::release().

44  {
45  buf_ = encoder.release();
46  if (buf_) {
47  data_ = buf_->data();
48  }
49  }
std::unique_ptr< folly::IOBuf > release()
std::unique_ptr< IOBuf > buf_
const uint8_t * data_
void HPACKBufferTests::resetDecoder ( )
inlineprotected

Definition at line 51 of file HPACKBufferTests.cpp.

51  {
52  resetDecoder(buf_.get());
53  }
std::unique_ptr< IOBuf > buf_
void HPACKBufferTests::resetDecoder ( IOBuf buf)
inlineprotected

Definition at line 55 of file HPACKBufferTests.cpp.

55  {
56  cursor_.reset(buf);
58  }
void reset(folly::io::Cursor &cursorVal)
void reset(BufType *buf)
Definition: Cursor.h:87
HPACKDecodeBuffer decoder_

Member Data Documentation

std::unique_ptr<IOBuf> HPACKBufferTests::buf_ {nullptr}
protected

Definition at line 63 of file HPACKBufferTests.cpp.

Cursor HPACKBufferTests::cursor_ {nullptr}
protected

Definition at line 60 of file HPACKBufferTests.cpp.

const uint8_t* HPACKBufferTests::data_ {nullptr}
protected

Definition at line 64 of file HPACKBufferTests.cpp.

HPACKDecodeBuffer HPACKBufferTests::decoder_
protected

Definition at line 62 of file HPACKBufferTests.cpp.

HPACKEncodeBuffer HPACKBufferTests::encoder_
protected

Definition at line 61 of file HPACKBufferTests.cpp.


The documentation for this class was generated from the following file: