| 1 | //===-- GDBRemoteTestUtils.cpp --------------------------------------------===// |
|---|---|
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include "GDBRemoteTestUtils.h" |
| 10 | #include "lldb/Host/Socket.h" |
| 11 | #include "llvm/Testing/Support/Error.h" |
| 12 | |
| 13 | namespace lldb_private { |
| 14 | namespace process_gdb_remote { |
| 15 | |
| 16 | void GDBRemoteTest::SetUpTestCase() { |
| 17 | ASSERT_THAT_ERROR(Socket::Initialize(), llvm::Succeeded()); |
| 18 | } |
| 19 | |
| 20 | void GDBRemoteTest::TearDownTestCase() { Socket::Terminate(); } |
| 21 | |
| 22 | } // namespace process_gdb_remote |
| 23 | } // namespace lldb_private |
| 24 |
