diff options
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp')
-rw-r--r-- | lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp index a279038..f3eea28 100644 --- a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp +++ b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp @@ -179,7 +179,7 @@ TEST_F(GDBRemoteCommunicationClientTest, GetModulesInfo) { // the FileSpecs they create. FileSpec("/foo/baw.so", FileSpec::Style::windows), }; - std::future<llvm::Optional<std::vector<ModuleSpec>>> async_result = + std::future<std::optional<std::vector<ModuleSpec>>> async_result = std::async(std::launch::async, [&] { return client.GetModulesInfo(file_specs, triple); }); HandlePacket( @@ -204,7 +204,7 @@ TEST_F(GDBRemoteCommunicationClientTest, GetModulesInfo_UUID20) { llvm::Triple triple("i386-pc-linux"); FileSpec file_spec("/foo/bar.so", FileSpec::Style::posix); - std::future<llvm::Optional<std::vector<ModuleSpec>>> async_result = + std::future<std::optional<std::vector<ModuleSpec>>> async_result = std::async(std::launch::async, [&] { return client.GetModulesInfo(file_spec, triple); }); HandlePacket( @@ -250,7 +250,7 @@ TEST_F(GDBRemoteCommunicationClientTest, GetModulesInfoInvalidResponse) { }; for (const char *response : invalid_responses) { - std::future<llvm::Optional<std::vector<ModuleSpec>>> async_result = + std::future<std::optional<std::vector<ModuleSpec>>> async_result = std::async(std::launch::async, [&] { return client.GetModulesInfo(file_spec, triple); }); HandlePacket( @@ -443,8 +443,8 @@ TEST_F(GDBRemoteCommunicationClientTest, SendTraceSupportedPacket) { TEST_F(GDBRemoteCommunicationClientTest, GetQOffsets) { const auto &GetQOffsets = [&](llvm::StringRef response) { - std::future<Optional<QOffsets>> result = std::async( - std::launch::async, [&] { return client.GetQOffsets(); }); + std::future<std::optional<QOffsets>> result = + std::async(std::launch::async, [&] { return client.GetQOffsets(); }); HandlePacket(server, "qOffsets", response); return result.get(); @@ -470,7 +470,7 @@ TEST_F(GDBRemoteCommunicationClientTest, GetQOffsets) { static void check_qmemtags(TestClient &client, MockServer &server, size_t read_len, int32_t type, const char *packet, llvm::StringRef response, - llvm::Optional<std::vector<uint8_t>> expected_tag_data) { + std::optional<std::vector<uint8_t>> expected_tag_data) { const auto &ReadMemoryTags = [&]() { std::future<DataBufferSP> result = std::async(std::launch::async, [&] { return client.ReadMemoryTags(0xDEF0, read_len, type); |