proxygen
fizz::test::MockCertificateCompressor Class Reference

#include <Mocks.h>

Inheritance diagram for fizz::test::MockCertificateCompressor:
fizz::CertificateCompressor

Public Member Functions

 MOCK_CONST_METHOD0 (getAlgorithm, CertificateCompressionAlgorithm())
 
 MOCK_METHOD1 (compress, CompressedCertificate(const CertificateMsg &))
 
void setDefaults ()
 
- Public Member Functions inherited from fizz::CertificateCompressor
virtual ~CertificateCompressor ()=default
 
virtual CertificateCompressionAlgorithm getAlgorithm () const =0
 
virtual CompressedCertificate compress (const CertificateMsg &)=0
 

Detailed Description

Definition at line 249 of file Mocks.h.

Member Function Documentation

fizz::test::MockCertificateCompressor::MOCK_CONST_METHOD0 ( getAlgorithm  ,
CertificateCompressionAlgorithm()   
)
fizz::test::MockCertificateCompressor::MOCK_METHOD1 ( compress  ,
CompressedCertificate(const CertificateMsg &)   
)
void fizz::test::MockCertificateCompressor::setDefaults ( )
inline

Definition at line 253 of file Mocks.h.

References testing::InvokeWithoutArgs(), and ON_CALL.

253  {
254  ON_CALL(*this, getAlgorithm()).WillByDefault(InvokeWithoutArgs([]() {
256  }));
257  }
PolymorphicAction< internal::InvokeWithoutArgsAction< FunctionImpl > > InvokeWithoutArgs(FunctionImpl function_impl)
virtual CertificateCompressionAlgorithm getAlgorithm() const =0
#define ON_CALL(obj, call)

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