Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc::testing::Verifier Class Reference

#include <interceptors_util.h>

Classes

struct  MaybeExpect
 

Public Member Functions

template<typename T >
CompletionQueue::NextStatus DoOnceThenAsyncNext (CompletionQueue *cq, void **got_tag, bool *ok, T deadline, std::function< void(void)> lambda)
 
Verifier & Expect (int i, bool expect_ok)
 
Verifier & ExpectMaybe (int i, bool expect_ok, bool *seen)
 
Verifier & ExpectUnless (int i, bool expect_ok, bool seen)
 
int Next (CompletionQueue *cq, bool ignore_ok)
 
 Verifier ()
 
void Verify (CompletionQueue *cq)
 
void Verify (CompletionQueue *cq, bool ignore_ok)
 
void Verify (CompletionQueue *cq, std::chrono::system_clock::time_point deadline, const std::function< void(void)> &lambda)
 

Private Member Functions

void GotTag (void *got_tag, bool ok, bool ignore_ok)
 

Private Attributes

std::map< void *, boolexpectations_
 
bool lambda_run_
 
std::map< void *, MaybeExpectmaybe_expectations_
 

Detailed Description

Definition at line 236 of file interceptors_util.h.

Constructor & Destructor Documentation

◆ Verifier()

grpc::testing::Verifier::Verifier ( )
inline

Definition at line 238 of file interceptors_util.h.

Member Function Documentation

◆ DoOnceThenAsyncNext()

template<typename T >
CompletionQueue::NextStatus grpc::testing::Verifier::DoOnceThenAsyncNext ( CompletionQueue cq,
void **  got_tag,
bool ok,
T  deadline,
std::function< void(void)>  lambda 
)
inline

Definition at line 272 of file interceptors_util.h.

◆ Expect()

Verifier& grpc::testing::Verifier::Expect ( int  i,
bool  expect_ok 
)
inline

Definition at line 240 of file interceptors_util.h.

◆ ExpectMaybe()

Verifier& grpc::testing::Verifier::ExpectMaybe ( int  i,
bool  expect_ok,
bool seen 
)
inline

Definition at line 254 of file interceptors_util.h.

◆ ExpectUnless()

Verifier& grpc::testing::Verifier::ExpectUnless ( int  i,
bool  expect_ok,
bool  seen 
)
inline

Definition at line 245 of file interceptors_util.h.

◆ GotTag()

void grpc::testing::Verifier::GotTag ( void *  got_tag,
bool  ok,
bool  ignore_ok 
)
inlineprivate

Definition at line 319 of file interceptors_util.h.

◆ Next()

int grpc::testing::Verifier::Next ( CompletionQueue cq,
bool  ignore_ok 
)
inline

Definition at line 263 of file interceptors_util.h.

◆ Verify() [1/3]

void grpc::testing::Verifier::Verify ( CompletionQueue cq)
inline

Definition at line 285 of file interceptors_util.h.

◆ Verify() [2/3]

void grpc::testing::Verifier::Verify ( CompletionQueue cq,
bool  ignore_ok 
)
inline

Definition at line 289 of file interceptors_util.h.

◆ Verify() [3/3]

void grpc::testing::Verifier::Verify ( CompletionQueue cq,
std::chrono::system_clock::time_point  deadline,
const std::function< void(void)> &  lambda 
)
inline

Definition at line 299 of file interceptors_util.h.

Member Data Documentation

◆ expectations_

std::map<void*, bool> grpc::testing::Verifier::expectations_
private

Definition at line 348 of file interceptors_util.h.

◆ lambda_run_

bool grpc::testing::Verifier::lambda_run_
private

Definition at line 350 of file interceptors_util.h.

◆ maybe_expectations_

std::map<void*, MaybeExpect> grpc::testing::Verifier::maybe_expectations_
private

Definition at line 349 of file interceptors_util.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:34