diff options
author | saturneric <[email protected]> | 2025-04-16 18:05:00 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-16 18:05:00 +0000 |
commit | 272cf34f21ab1741d24673a7e3b7c95567a74cec (patch) | |
tree | 4497435e41a8bbdd7560cee57b2c8c4171099951 /src/test/core/GpgCoreTestKeyModel.cpp | |
parent | fix: found bugs (diff) | |
download | GpgFrontend-272cf34f21ab1741d24673a7e3b7c95567a74cec.tar.gz GpgFrontend-272cf34f21ab1741d24673a7e3b7c95567a74cec.zip |
fix: testing and solve bugs found
Diffstat (limited to 'src/test/core/GpgCoreTestKeyModel.cpp')
-rw-r--r-- | src/test/core/GpgCoreTestKeyModel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/core/GpgCoreTestKeyModel.cpp b/src/test/core/GpgCoreTestKeyModel.cpp index 878ea953..1fa7454a 100644 --- a/src/test/core/GpgCoreTestKeyModel.cpp +++ b/src/test/core/GpgCoreTestKeyModel.cpp @@ -183,9 +183,9 @@ TEST_F(GpgCoreTest, GpgKeySignatureTest) { TEST_F(GpgCoreTest, GpgKeyGetterTest) { auto key = GpgKeyGetter::GetInstance(kGpgFrontendDefaultChannel) - .GetKey("9490795B78F8AFE9F93BD09281704859182661FB"); - ASSERT_TRUE(key.IsGood()); - auto keys = GpgKeyGetter::GetInstance(kGpgFrontendDefaultChannel).FetchKey(); + .GetKeyPtr("9490795B78F8AFE9F93BD09281704859182661FB"); + ASSERT_TRUE(key != nullptr); + auto keys = GpgKeyGetter::GetInstance(kGpgFrontendDefaultChannel).Fetch(); EXPECT_GT(keys.size(), 0); ASSERT_TRUE(std::find(keys.begin(), keys.end(), key) != keys.end()); |