OEMCrypto and OPK 18.9

This commit is contained in:
Cong Lin
2025-04-02 09:52:51 -07:00
parent f79f9bf998
commit 92146d2468
41 changed files with 656 additions and 124 deletions

View File

@@ -265,10 +265,17 @@ TEST_F(FileTest, ListFiles) {
}
TEST_F(FileTest, ListFiles_NotAPath) {
const std::string not_path("zzz/xxx");
const std::string kTestFilename = "zzz.txt";
const std::string dir_path = wvcdm::test_vectors::kTestDir;
const std::string file_path = PathJoin(dir_path, kTestFilename);
std::unique_ptr<File> file =
file_system_.Open(file_path, FileSystem::kCreate);
ASSERT_TRUE(file) << "Failed to create file: " << kTestFilename;
file.reset(); // Close file
std::vector<std::string> names;
// Ask for non-existent path.
EXPECT_FALSE(file_system_.List(not_path, &names));
EXPECT_FALSE(file_system_.List(file_path, &names));
}
TEST_F(FileTest, ListFiles_NullParameter) {