test/channel_transport/udp_socket_wrapper_unittest.cc
TEST(UdpSocketWrapper, CreateSocket) {
  int32_t id = 42;
  // We can't test deletion of sockets without a socket manager.
  uint8_t threads = 1;
  UdpSocketManager* mgr = UdpSocketManager::Create(id, threads);
  UdpSocketWrapper* socket =
      UdpSocketWrapper::CreateSocket(id,
                                     mgr,
                                     NULL,  // CallbackObj
                                     NULL,  // IncomingSocketCallback
                                     false,  // ipV6Enable
                                     false);  // disableGQOS
  socket->CloseBlocking();
  UdpSocketManager::Return();
}
// Creates a socket using the static constructor method and verifies that
// it's added to the socket manager.
Creates a socket using the static constructor method and verifies that
it's added to the socket manager.
Creates a socket using the static constructor method and verifies that it ' s added to the socket manager .
TEST(UdpSocketWrapper, CreateSocket) {
  int32_t id = 42;
  uint8_t threads = 1;
  UdpSocketManager* mgr = UdpSocketManager::Create(id, threads);
  UdpSocketWrapper* socket =
      UdpSocketWrapper::CreateSocket(id,
                                     mgr,
                                     NULL,  
                                     NULL,  
                                     false,  
                                     false);  
  socket->CloseBlocking();
  UdpSocketManager::Return();
}
TEST ( UdpSocketWrapper , CreateSocket ) { int32_t id = 42 ; uint8_t threads = 1 ; UdpSocketManager * mgr = UdpSocketManager :: Create ( id , threads ) ; UdpSocketWrapper * socket = UdpSocketWrapper :: CreateSocket ( id , mgr , NULL , NULL , false , false ) ; socket -> CloseBlocking ( ) ; UdpSocketManager :: Return ( ) ; }
Creates a socket using the static constructor method and verifies that
it's added to the socket manager.
Creates a socket using the static constructor method and verifies that it ' s added to the socket manager .
// We can't test deletion of sockets without a socket manager. // CallbackObj // IncomingSocketCallback // ipV6Enable // disableGQOS