proxygen
TestPriorityAdapter Class Reference
Inheritance diagram for TestPriorityAdapter:

Public Member Functions

virtual folly::Optional< const HTTPMessage::HTTPPrioritygetHTTPPriority (uint8_t level) override
 
virtual ~TestPriorityAdapter ()=default
 

Public Attributes

std::map< uint8_t, HTTPMessage::HTTPPrioritypriorityMap_
 
HTTPMessage::HTTPPriority minPriority_ {std::make_tuple(0, false, 0)}
 
HTTPCodec::StreamID parentId_ {0}
 
HTTPCodec::StreamID hiPriId_ {0}
 
HTTPCodec::StreamID loPriId_ {0}
 
HTTPMessage::HTTPPriority hiPri_ {std::make_tuple(0, false, 0)}
 
HTTPMessage::HTTPPriority loPri_ {std::make_tuple(0, false, 0)}
 

Detailed Description

Definition at line 51 of file HTTPUpstreamSessionTest.cpp.

Constructor & Destructor Documentation

virtual TestPriorityAdapter::~TestPriorityAdapter ( )
virtualdefault

Member Function Documentation

virtual folly::Optional<const HTTPMessage::HTTPPriority> TestPriorityAdapter::getHTTPPriority ( uint8_t  level)
inlineoverridevirtual

Definition at line 53 of file HTTPUpstreamSessionTest.cpp.

References folly::none.

54  {
55  if (priorityMap_.empty()) {
56  return folly::none;
57  }
58  auto it = priorityMap_.find(level);
59  if (it == priorityMap_.end()) {
60  return minPriority_;
61  }
62  return it->second;
63  }
HTTPMessage::HTTPPriority minPriority_
constexpr None none
Definition: Optional.h:87
std::map< uint8_t, HTTPMessage::HTTPPriority > priorityMap_

Member Data Documentation

HTTPMessage::HTTPPriority TestPriorityAdapter::hiPri_ {std::make_tuple(0, false, 0)}
HTTPCodec::StreamID TestPriorityAdapter::hiPriId_ {0}
HTTPMessage::HTTPPriority TestPriorityAdapter::loPri_ {std::make_tuple(0, false, 0)}
HTTPCodec::StreamID TestPriorityAdapter::loPriId_ {0}
HTTPMessage::HTTPPriority TestPriorityAdapter::minPriority_ {std::make_tuple(0, false, 0)}
HTTPCodec::StreamID TestPriorityAdapter::parentId_ {0}
std::map<uint8_t, HTTPMessage::HTTPPriority> TestPriorityAdapter::priorityMap_

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