diff options
author | Kazu Hirata <kazu@google.com> | 2022-07-15 20:03:13 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-07-15 20:03:13 -0700 |
commit | 5cff5142a894a184d5eef05339e1a5b41fb4c144 (patch) | |
tree | 1c2122c14f7f9c7dc33b866dd8eeba2470fff9f3 /lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | |
parent | 3b0dce5b8b1596c50360952a8fb031d52562ccf6 (diff) | |
download | llvm-5cff5142a894a184d5eef05339e1a5b41fb4c144.zip llvm-5cff5142a894a184d5eef05339e1a5b41fb4c144.tar.gz llvm-5cff5142a894a184d5eef05339e1a5b41fb4c144.tar.bz2 |
Use value instead of getValue (NFC)
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp')
-rw-r--r-- | lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp index a57890c..b80c44d 100644 --- a/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp +++ b/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp @@ -192,12 +192,12 @@ TEST_F(GDBRemoteCommunicationClientTest, GetModulesInfo) { auto result = async_result.get(); ASSERT_TRUE(result.has_value()); ASSERT_EQ(1u, result->size()); - EXPECT_EQ("/foo/bar.so", result.getValue()[0].GetFileSpec().GetPath()); - EXPECT_EQ(triple, result.getValue()[0].GetArchitecture().GetTriple()); + EXPECT_EQ("/foo/bar.so", result.value()[0].GetFileSpec().GetPath()); + EXPECT_EQ(triple, result.value()[0].GetArchitecture().GetTriple()); EXPECT_EQ(UUID::fromData("@ABCDEFGHIJKLMNO", 16), - result.getValue()[0].GetUUID()); - EXPECT_EQ(0u, result.getValue()[0].GetObjectOffset()); - EXPECT_EQ(1234u, result.getValue()[0].GetObjectSize()); + result.value()[0].GetUUID()); + EXPECT_EQ(0u, result.value()[0].GetObjectOffset()); + EXPECT_EQ(1234u, result.value()[0].GetObjectSize()); } TEST_F(GDBRemoteCommunicationClientTest, GetModulesInfo_UUID20) { @@ -217,12 +217,12 @@ TEST_F(GDBRemoteCommunicationClientTest, GetModulesInfo_UUID20) { auto result = async_result.get(); ASSERT_TRUE(result.has_value()); ASSERT_EQ(1u, result->size()); - EXPECT_EQ("/foo/bar.so", result.getValue()[0].GetFileSpec().GetPath()); - EXPECT_EQ(triple, result.getValue()[0].GetArchitecture().GetTriple()); + EXPECT_EQ("/foo/bar.so", result.value()[0].GetFileSpec().GetPath()); + EXPECT_EQ(triple, result.value()[0].GetArchitecture().GetTriple()); EXPECT_EQ(UUID::fromData("@ABCDEFGHIJKLMNOPQRS", 20), - result.getValue()[0].GetUUID()); - EXPECT_EQ(0u, result.getValue()[0].GetObjectOffset()); - EXPECT_EQ(1234u, result.getValue()[0].GetObjectSize()); + result.value()[0].GetUUID()); + EXPECT_EQ(0u, result.value()[0].GetObjectOffset()); + EXPECT_EQ(1234u, result.value()[0].GetObjectSize()); } TEST_F(GDBRemoteCommunicationClientTest, GetModulesInfoInvalidResponse) { |