OEMCrypto and OPK 19.5
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user