proxygen
|
#include <MockHTTPHeaders.h>
Public Member Functions | |
HasHTTPHeaderMatcherImpl (std::string name) | |
HasHTTPHeaderMatcherImpl (std::string name, std::string value) | |
bool | MatchAndExplain (const HTTPHeaders &headers,::testing::MatchResultListener *) const override |
void | DescribeTo (::std::ostream *os) const override |
void | DescribeNegationTo (::std::ostream *os) const override |
Public Member Functions inherited from testing::MatcherInterface< HTTPHeaders & > | |
virtual bool | MatchAndExplain (HTTPHeaders &x, MatchResultListener *listener) const =0 |
virtual bool | MatchAndExplain (HTTPHeaders &x, MatchResultListener *listener) const =0 |
virtual bool | MatchAndExplain (HTTPHeaders &x, MatchResultListener *listener) const =0 |
Public Member Functions inherited from testing::MatcherDescriberInterface | |
virtual | ~MatcherDescriberInterface () |
virtual | ~MatcherDescriberInterface () |
virtual | ~MatcherDescriberInterface () |
Private Attributes | |
const std::string | name_ |
const folly::Optional< std::string > | value_ |
A gmock matcher for HTTPHeader objects.
This can be used for check for the existence of a header, or for a header with a specific value. To check for multiple headers, or more complicated predicate logic, use testing::AllOf() and friends from gmock.
Use the factory functions below in tests rather than using this class directly.
Definition at line 29 of file MockHTTPHeaders.h.
|
inlineexplicit |
|
inline |
Definition at line 36 of file MockHTTPHeaders.h.
|
inlineoverridevirtual |
Reimplemented from testing::MatcherDescriberInterface.
Definition at line 64 of file MockHTTPHeaders.h.
|
inlineoverridevirtual |
Implements testing::MatcherDescriberInterface.
Definition at line 56 of file MockHTTPHeaders.h.
|
inlineoverride |
Definition at line 41 of file MockHTTPHeaders.h.
References proxygen::HTTPHeaders::forEach(), name, name_, string, value, and value_.
|
private |
Definition at line 74 of file MockHTTPHeaders.h.
Referenced by DescribeNegationTo(), DescribeTo(), and MatchAndExplain().
|
private |
Definition at line 75 of file MockHTTPHeaders.h.
Referenced by DescribeNegationTo(), DescribeTo(), and MatchAndExplain().