[Lldb-commits] [lldb] r299613 - Update unittests/Host/SocketTest.cpp to also use the new
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 5 20:16:44 PDT 2017
Author: jmolenda
Date: Wed Apr 5 22:16:44 2017
New Revision: 299613
URL: http://llvm.org/viewvc/llvm-project?rev=299613&view=rev
Log:
Update unittests/Host/SocketTest.cpp to also use the new
one-socket API.
Modified:
lldb/trunk/unittests/Host/SocketTest.cpp
Modified: lldb/trunk/unittests/Host/SocketTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Host/SocketTest.cpp?rev=299613&r1=299612&r2=299613&view=diff
==============================================================================
--- lldb/trunk/unittests/Host/SocketTest.cpp (original)
+++ lldb/trunk/unittests/Host/SocketTest.cpp Wed Apr 5 22:16:44 2017
@@ -196,17 +196,14 @@ TEST_F(SocketTest, TCPGetAddress) {
}
TEST_F(SocketTest, UDPConnect) {
- Socket *socket_a;
- Socket *socket_b;
+ Socket *socket;
bool child_processes_inherit = false;
auto error = UDPSocket::Connect("127.0.0.1:0", child_processes_inherit,
- socket_a, socket_b);
+ socket);
- std::unique_ptr<Socket> a_up(socket_a);
- std::unique_ptr<Socket> b_up(socket_b);
+ std::unique_ptr<Socket> socket_up(socket);
EXPECT_TRUE(error.Success());
- EXPECT_TRUE(a_up->IsValid());
- EXPECT_TRUE(b_up->IsValid());
+ EXPECT_TRUE(socket_up->IsValid());
}
More information about the lldb-commits
mailing list