proxygen
HTTPSessionTest.h File Reference

Go to the source code of this file.

Functions

template<class MyCodec , class Version >
std::enable_if< std::is_enum< Version >::value, std::unique_ptr< MyCodec > >::type makeClientCodec (Version version)
 
template<class MyCodec , class Version >
std::enable_if< std::is_same< MyCodec, proxygen::HTTP1xCodec >::value, std::unique_ptr< MyCodec > >::type makeClientCodec (Version)
 
template<class MyCodec , class Version >
std::enable_if< std::is_same< MyCodec, proxygen::HTTP2Codec >::value, std::unique_ptr< MyCodec > >::type makeClientCodec (Version)
 
template<class MyCodec , class Version >
std::enable_if< std::is_same< MyCodec, proxygen::MockHTTPCodec >::value, std::unique_ptr< MyCodec > >::type makeClientCodec (Version)
 
template<class MyCodec , class Version >
std::enable_if< std::is_enum< Version >::value, std::unique_ptr< MyCodec > >::type makeServerCodec (Version version)
 
template<class MyCodec , class Version >
std::enable_if< std::is_same< MyCodec, proxygen::HTTP1xCodec >::value, std::unique_ptr< MyCodec > >::type makeServerCodec (Version)
 
template<class MyCodec , class Version >
std::enable_if< std::is_same< MyCodec, proxygen::HTTP2Codec >::value, std::unique_ptr< MyCodec > >::type makeServerCodec (Version)
 
template<class MyCodec , class Version >
std::enable_if< std::is_same< MyCodec, proxygen::MockHTTPCodec >::value, std::unique_ptr< MyCodec > >::type makeServerCodec (Version)
 

Function Documentation

template<class MyCodec , class Version >
std::enable_if< std::is_enum<Version>::value, std::unique_ptr<MyCodec> >::type makeClientCodec ( Version  version)

Definition at line 24 of file HTTPSessionTest.h.

References type, proxygen::UPSTREAM, value, and version.

24  {
25  return std::make_unique<MyCodec>(
27 }
ProtocolVersion version
template<class MyCodec , class Version >
std::enable_if<std::is_same<MyCodec, proxygen::HTTP1xCodec>::value, std::unique_ptr<MyCodec> >::type makeClientCodec ( Version  )

Definition at line 32 of file HTTPSessionTest.h.

References type, proxygen::UPSTREAM, and value.

32  {
33  return std::make_unique<MyCodec>(
35 }
template<class MyCodec , class Version >
std::enable_if<std::is_same<MyCodec, proxygen::HTTP2Codec>::value, std::unique_ptr<MyCodec> >::type makeClientCodec ( Version  )

Definition at line 40 of file HTTPSessionTest.h.

References type, proxygen::UPSTREAM, and value.

40  {
41  return std::make_unique<MyCodec>(
43 }
template<class MyCodec , class Version >
std::enable_if<std::is_same<MyCodec, proxygen::MockHTTPCodec>::value, std::unique_ptr<MyCodec> >::type makeClientCodec ( Version  )

Definition at line 48 of file HTTPSessionTest.h.

References type, and value.

48  {
49  return std::make_unique<MyCodec>();
50 }
template<class MyCodec , class Version >
std::enable_if< std::is_enum<Version>::value, std::unique_ptr<MyCodec> >::type makeServerCodec ( Version  version)

Definition at line 56 of file HTTPSessionTest.h.

References proxygen::DOWNSTREAM, type, and value.

Referenced by TEST_F().

56  {
57  return std::make_unique<MyCodec>(
59  (Version)version);
60 }
ProtocolVersion version
template<class MyCodec , class Version >
std::enable_if<std::is_same<MyCodec, proxygen::HTTP1xCodec>::value, std::unique_ptr<MyCodec> >::type makeServerCodec ( Version  )

Definition at line 65 of file HTTPSessionTest.h.

References proxygen::DOWNSTREAM, type, and value.

65  {
66  return std::make_unique<MyCodec>(
68 }
template<class MyCodec , class Version >
std::enable_if<std::is_same<MyCodec, proxygen::HTTP2Codec>::value, std::unique_ptr<MyCodec> >::type makeServerCodec ( Version  )

Definition at line 73 of file HTTPSessionTest.h.

References proxygen::DOWNSTREAM, type, and value.

73  {
74  return std::make_unique<MyCodec>(
76 }
template<class MyCodec , class Version >
std::enable_if<std::is_same<MyCodec, proxygen::MockHTTPCodec>::value, std::unique_ptr<MyCodec> >::type makeServerCodec ( Version  )

Definition at line 81 of file HTTPSessionTest.h.

81  {
82  return std::make_unique<MyCodec>();
83 }