proxygen
AsyncUDPSocketTest Class Reference
Inheritance diagram for AsyncUDPSocketTest:
testing::Test

Public Member Functions

void SetUp () override
 
- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
virtual ~Test ()
 
virtual ~Test ()
 

Public Attributes

EventBase evb_
 
MockErrMessageCallback err
 
MockUDPReadCallback readCb
 
std::shared_ptr< AsyncUDPSocketsocket_
 
folly::SocketAddress addr_
 

Additional Inherited Members

- Public Types inherited from testing::Test
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef internal::TearDownTestCaseFunc TearDownTestCaseFunc
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void TearDown ()
 
 Test ()
 
virtual void TearDown ()
 

Detailed Description

Definition at line 512 of file AsyncUDPSocketTest.cpp.

Member Function Documentation

void AsyncUDPSocketTest::SetUp ( )
inlineoverridevirtual

Reimplemented from testing::Test.

Definition at line 514 of file AsyncUDPSocketTest.cpp.

References evb_, and socket_.

514  {
515  socket_ = std::make_shared<AsyncUDPSocket>(&evb_);
516  addr_ = folly::SocketAddress("127.0.0.1", 0);
517  socket_->bind(addr_);
518  }
folly::SocketAddress addr_
std::shared_ptr< AsyncUDPSocket > socket_

Member Data Documentation

folly::SocketAddress AsyncUDPSocketTest::addr_

Definition at line 524 of file AsyncUDPSocketTest.cpp.

MockErrMessageCallback AsyncUDPSocketTest::err

Definition at line 521 of file AsyncUDPSocketTest.cpp.

EventBase AsyncUDPSocketTest::evb_

Definition at line 520 of file AsyncUDPSocketTest.cpp.

MockUDPReadCallback AsyncUDPSocketTest::readCb

Definition at line 522 of file AsyncUDPSocketTest.cpp.

std::shared_ptr<AsyncUDPSocket> AsyncUDPSocketTest::socket_

Definition at line 523 of file AsyncUDPSocketTest.cpp.


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