Definition at line 52 of file HTTP2PriorityQueueTest.cpp.
Definition at line 59 of file HTTP2PriorityQueueTest.cpp.
References h.
63 id, pri, pnode ?
nullptr : makeFakeTxn(
id),
false, depth);
64 handles_.insert(std::make_pair(
id, h));
Handle addTransaction(HTTPCodec::StreamID id, http2::PriorityUpdate pri, HTTPTransaction *txn, bool permanent=false, uint64_t *depth=nullptr) override
void signalEgress(HTTPCodec::StreamID id, bool mark)
std::map< HTTPCodec::StreamID, HTTP2PriorityQueue::Handle > handles_
void proxygen::QueueTest::buildSimpleTree |
( |
| ) |
|
|
inlineprotected |
Definition at line 87 of file HTTP2PriorityQueueTest.cpp.
void addTransaction(HTTPCodec::StreamID id, http2::PriorityUpdate pri, bool pnode=false, uint64_t *depth=nullptr)
void proxygen::QueueTest::dump |
( |
| ) |
|
|
inlineprotected |
Definition at line 101 of file HTTP2PriorityQueueTest.cpp.
References folly::netops::bind().
104 [] {
return false; },
true);
bool visitNode(HTTP2PriorityQueue &, HTTPCodec::StreamID id, HTTPTransaction *, double r)
void iterate(const std::function< bool(HTTPCodec::StreamID, HTTPTransaction *, double)> &fn, const std::function< bool()> &stopFn, bool all)
int bind(NetworkSocket s, const sockaddr *name, socklen_t namelen)
void proxygen::QueueTest::dumpBFS |
( |
const std::function< bool()> & |
stopFn | ) |
|
|
inlineprotected |
Definition at line 107 of file HTTP2PriorityQueueTest.cpp.
References folly::netops::bind().
bool visitNode(HTTP2PriorityQueue &, HTTPCodec::StreamID id, HTTPTransaction *, double r)
int bind(NetworkSocket s, const sockaddr *name, socklen_t namelen)
void iterateBFS(const std::function< bool(HTTP2PriorityQueue &, HTTPCodec::StreamID, HTTPTransaction *, double)> &fn, const std::function< bool()> &stopFn, bool all)
void proxygen::QueueTest::nextEgress |
( |
bool |
spdyMode = false | ) |
|
|
inlineprotected |
Definition at line 113 of file HTTP2PriorityQueueTest.cpp.
117 for (
auto p: nextEgressResults) {
118 nodes_.push_back(std::make_pair(getTxnID(p.first), p.second * 100));
std::vector< std::pair< HTTPTransaction *, double >> NextEgressResult
void nextEgress(NextEgressResult &result, bool spdyMode=false)
Definition at line 70 of file HTTP2PriorityQueueTest.cpp.
void removeTransaction(Handle handle) override
std::map< HTTPCodec::StreamID, HTTP2PriorityQueue::Handle > handles_
Definition at line 79 of file HTTP2PriorityQueueTest.cpp.
void clearPendingEgress(Handle h) override
void signalPendingEgress(Handle h) override
std::map< HTTPCodec::StreamID, HTTP2PriorityQueue::Handle > handles_
Definition at line 74 of file HTTP2PriorityQueueTest.cpp.
Handle updatePriority(Handle handle, http2::PriorityUpdate pri, uint64_t *depth=nullptr) override
std::map< HTTPCodec::StreamID, HTTP2PriorityQueue::Handle > handles_
IDList proxygen::QueueTest::nodes_ |
|
protected |
The documentation for this class was generated from the following file: