Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
ares::test::MockChannelOptsTest Class Reference

#include <ares-test.h>

Inheritance diagram for ares::test::MockChannelOptsTest:
Inheritance graph
[legend]

Public Member Functions

 MockChannelOptsTest (int count, int family, bool force_tcp, struct ares_options *givenopts, int optmask)
 
void Process ()
 
 ~MockChannelOptsTest ()
 
- Public Member Functions inherited from ares::test::LibraryTest
 LibraryTest ()
 
 ~LibraryTest ()
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 

Protected Types

typedef testing::NiceMock< MockServerNiceMockServer
 
typedef std::vector< std::unique_ptr< NiceMockServer > > NiceMockServers
 

Protected Member Functions

std::set< intfds () const
 
void ProcessFD (int fd)
 
- Protected Member Functions inherited from testing::Test
virtual void SetUp ()
 
virtual void SetUp ()
 
virtual void SetUp ()
 
virtual void SetUp ()
 
virtual void SetUp ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 
virtual void TearDown ()
 
virtual void TearDown ()
 
virtual void TearDown ()
 
virtual void TearDown ()
 
virtual void TearDown ()
 
 Test ()
 
 Test ()
 
 Test ()
 
 Test ()
 
 Test ()
 
 Test ()
 

Static Protected Member Functions

static NiceMockServers BuildServers (int count, int family, int base_port)
 

Protected Attributes

ares_channel channel_
 
NiceMockServerserver_
 
NiceMockServers servers_
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Static Public Member Functions inherited from ares::test::LibraryTest
static void afree (void *ptr)
 
static void * amalloc (size_t size)
 
static void * arealloc (void *ptr, size_t size)
 
static void ClearFails ()
 
static void SetAllocFail (int nth)
 
static void SetAllocSizeFail (size_t size)
 
- Static Public Member Functions inherited from testing::Test
static bool HasFailure ()
 
static bool HasFailure ()
 
static bool HasFailure ()
 
static bool HasFailure ()
 
static bool HasFailure ()
 
static bool HasFailure ()
 
static bool HasFatalFailure ()
 
static bool HasFatalFailure ()
 
static bool HasFatalFailure ()
 
static bool HasFatalFailure ()
 
static bool HasFatalFailure ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool IsSkipped ()
 
static bool IsSkipped ()
 
static bool IsSkipped ()
 
static bool IsSkipped ()
 
static bool IsSkipped ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void RecordProperty (const std::string &key, int value)
 
static void RecordProperty (const std::string &key, int value)
 
static void RecordProperty (const std::string &key, int value)
 
static void RecordProperty (const std::string &key, int value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void SetUpTestCase ()
 
static void SetUpTestCase ()
 
static void SetUpTestCase ()
 
static void SetUpTestCase ()
 
static void SetUpTestCase ()
 
static void SetUpTestSuite ()
 
static void SetUpTestSuite ()
 
static void SetUpTestSuite ()
 
static void SetUpTestSuite ()
 
static void SetUpTestSuite ()
 
static void TearDownTestCase ()
 
static void TearDownTestCase ()
 
static void TearDownTestCase ()
 
static void TearDownTestCase ()
 
static void TearDownTestCase ()
 
static void TearDownTestCase ()
 
static void TearDownTestSuite ()
 
static void TearDownTestSuite ()
 
static void TearDownTestSuite ()
 
static void TearDownTestSuite ()
 
static void TearDownTestSuite ()
 

Detailed Description

Definition at line 176 of file ares-test.h.

Member Typedef Documentation

◆ NiceMockServer

Definition at line 186 of file ares-test.h.

◆ NiceMockServers

typedef std::vector< std::unique_ptr<NiceMockServer> > ares::test::MockChannelOptsTest::NiceMockServers
protected

Definition at line 187 of file ares-test.h.

Constructor & Destructor Documentation

◆ MockChannelOptsTest()

ares::test::MockChannelOptsTest::MockChannelOptsTest ( int  count,
int  family,
bool  force_tcp,
struct ares_options givenopts,
int  optmask 
)

Definition at line 424 of file ares-test.cc.

◆ ~MockChannelOptsTest()

ares::test::MockChannelOptsTest::~MockChannelOptsTest ( )

Definition at line 509 of file ares-test.cc.

Member Function Documentation

◆ BuildServers()

MockChannelOptsTest::NiceMockServers ares::test::MockChannelOptsTest::BuildServers ( int  count,
int  family,
int  base_port 
)
staticprotected

Definition at line 413 of file ares-test.cc.

◆ fds()

std::set< int > ares::test::MockChannelOptsTest::fds ( ) const
protected

Definition at line 516 of file ares-test.cc.

◆ Process()

void ares::test::MockChannelOptsTest::Process ( )

Definition at line 531 of file ares-test.cc.

◆ ProcessFD()

void ares::test::MockChannelOptsTest::ProcessFD ( int  fd)
protected

Definition at line 525 of file ares-test.cc.

Member Data Documentation

◆ channel_

ares_channel ares::test::MockChannelOptsTest::channel_
protected

Definition at line 197 of file ares-test.h.

◆ server_

NiceMockServer& ares::test::MockChannelOptsTest::server_
protected

Definition at line 196 of file ares-test.h.

◆ servers_

NiceMockServers ares::test::MockChannelOptsTest::servers_
protected

Definition at line 194 of file ares-test.h.


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


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