Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
absl::MockingBitGen Class Reference

#include <mocking_bit_gen.h>

Classes

class  FunctionHolder
 
class  FunctionHolderImpl
 
struct  MockFnCaller
 
struct  MockFnCaller< MockFnType, ResultT, std::tuple< Args... > >
 

Public Types

using result_type = absl::BitGen::result_type
 
using result_type = absl::BitGen::result_type
 

Public Member Functions

 MockingBitGen ()=default
 
 MockingBitGen ()=default
 
result_type operator() ()
 
result_type operator() ()
 
 ~MockingBitGen ()=default
 
 ~MockingBitGen ()=default
 

Static Public Member Functions

static constexpr result_type() max ()
 
static constexpr result_type() max ()
 
static constexpr result_type() min ()
 
static constexpr result_type() min ()
 

Private Member Functions

bool InvokeMock (base_internal::FastTypeIdType type, void *args_tuple, void *result)
 
bool InvokeMock (base_internal::FastTypeIdType type, void *args_tuple, void *result)
 
template<typename ResultT , typename ArgTupleT , typename SelfT >
auto RegisterMock (SelfT &, base_internal::FastTypeIdType type) -> decltype(GetMockFnType(std::declval< ResultT >(), std::declval< ArgTupleT >()))&
 
template<typename ResultT , typename ArgTupleT , typename SelfT >
auto RegisterMock (SelfT &, base_internal::FastTypeIdType type) -> decltype(GetMockFnType(std::declval< ResultT >(), std::declval< ArgTupleT >()))&
 

Static Private Member Functions

template<typename ResultT , typename... Args>
static auto GetMockFnType (ResultT, std::tuple< Args... >) -> ::testing::MockFunction< ResultT(Args...)>
 
template<typename ResultT , typename... Args>
static auto GetMockFnType (ResultT, std::tuple< Args... >) -> ::testing::MockFunction< ResultT(Args...)>
 

Private Attributes

absl::BitGen gen_
 
absl::flat_hash_map< base_internal::FastTypeIdType, std::unique_ptr< FunctionHolder > > mocks_
 

Friends

class ::absl::BitGenRef
 
template<typename >
struct ::absl::random_internal::DistributionCaller
 
class ::absl::random_internal::MockHelpers
 

Detailed Description

Definition at line 104 of file abseil-cpp/absl/random/mocking_bit_gen.h.

Member Typedef Documentation

◆ result_type [1/2]

Definition at line 110 of file abseil-cpp/absl/random/mocking_bit_gen.h.

◆ result_type [2/2]

Constructor & Destructor Documentation

◆ MockingBitGen() [1/2]

absl::MockingBitGen::MockingBitGen ( )
default

◆ ~MockingBitGen() [1/2]

absl::MockingBitGen::~MockingBitGen ( )
default

◆ MockingBitGen() [2/2]

absl::MockingBitGen::MockingBitGen ( )
default

◆ ~MockingBitGen() [2/2]

absl::MockingBitGen::~MockingBitGen ( )
default

Member Function Documentation

◆ GetMockFnType() [1/2]

template<typename ResultT , typename... Args>
static auto absl::MockingBitGen::GetMockFnType ( ResultT  ,
std::tuple< Args... >   
) -> ::testing::MockFunction< ResultT(Args...)>
staticprivate

◆ GetMockFnType() [2/2]

template<typename ResultT , typename... Args>
static auto absl::MockingBitGen::GetMockFnType ( ResultT  ,
std::tuple< Args... >   
) -> ::testing::MockFunction< ResultT(Args...)>
staticprivate

◆ InvokeMock() [1/2]

bool absl::MockingBitGen::InvokeMock ( base_internal::FastTypeIdType  type,
void *  args_tuple,
void *  result 
)
inlineprivate

Definition at line 216 of file abseil-cpp/absl/random/mocking_bit_gen.h.

◆ InvokeMock() [2/2]

bool absl::MockingBitGen::InvokeMock ( base_internal::FastTypeIdType  type,
void *  args_tuple,
void *  result 
)
inlineprivate

◆ max() [1/2]

static constexpr result_type() absl::MockingBitGen::max ( )
inlinestaticconstexpr

◆ max() [2/2]

static constexpr result_type() absl::MockingBitGen::max ( )
inlinestaticconstexpr

Definition at line 113 of file abseil-cpp/absl/random/mocking_bit_gen.h.

◆ min() [1/2]

static constexpr result_type() absl::MockingBitGen::min ( )
inlinestaticconstexpr

Definition at line 112 of file abseil-cpp/absl/random/mocking_bit_gen.h.

◆ min() [2/2]

static constexpr result_type() absl::MockingBitGen::min ( )
inlinestaticconstexpr

◆ operator()() [1/2]

result_type absl::MockingBitGen::operator() ( )
inline

◆ operator()() [2/2]

result_type absl::MockingBitGen::operator() ( )
inline

Definition at line 114 of file abseil-cpp/absl/random/mocking_bit_gen.h.

◆ RegisterMock() [1/2]

template<typename ResultT , typename ArgTupleT , typename SelfT >
auto absl::MockingBitGen::RegisterMock ( SelfT &  ,
base_internal::FastTypeIdType  type 
) -> decltype(GetMockFnType(std::declval<ResultT>(), std::declval<ArgTupleT>()))&
inlineprivate

◆ RegisterMock() [2/2]

template<typename ResultT , typename ArgTupleT , typename SelfT >
auto absl::MockingBitGen::RegisterMock ( SelfT &  ,
base_internal::FastTypeIdType  type 
) -> decltype(GetMockFnType(std::declval<ResultT>(), std::declval<ArgTupleT>()))&
inlineprivate

Definition at line 179 of file abseil-cpp/absl/random/mocking_bit_gen.h.

Friends And Related Function Documentation

◆ ::absl::BitGenRef

friend class ::absl::BitGenRef
friend

Definition at line 232 of file abseil-cpp/absl/random/mocking_bit_gen.h.

◆ ::absl::random_internal::DistributionCaller

template<typename >
friend struct ::absl::random_internal::DistributionCaller
friend

Definition at line 231 of file abseil-cpp/absl/random/mocking_bit_gen.h.

◆ ::absl::random_internal::MockHelpers

friend class ::absl::random_internal::MockHelpers
friend

Definition at line 233 of file abseil-cpp/absl/random/mocking_bit_gen.h.

Member Data Documentation

◆ gen_

absl::BitGen absl::MockingBitGen::gen_
private

Definition at line 228 of file abseil-cpp/absl/random/mocking_bit_gen.h.

◆ mocks_

absl::flat_hash_map< base_internal::FastTypeIdType, std::unique_ptr< FunctionHolder > > absl::MockingBitGen::mocks_
private

Definition at line 227 of file abseil-cpp/absl/random/mocking_bit_gen.h.


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


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