Lines Matching refs:ASSERT_TRUE
106 ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
109 ASSERT_TRUE(GetTestDataDirectory(&test_data_dir_));
179 ASSERT_TRUE(reader.Open(test_zip_file_));
185 ASSERT_TRUE(reader.OpenFromPlatformFile(zip_fd_wrapper.platform_file()));
203 ASSERT_TRUE(reader.Open(test_zip_file_));
205 ASSERT_TRUE(reader.OpenCurrentEntryInZip());
207 ASSERT_TRUE(reader.AdvanceToNextEntry());
222 ASSERT_TRUE(reader.OpenFromPlatformFile(zip_fd_wrapper.platform_file()));
224 ASSERT_TRUE(reader.OpenCurrentEntryInZip());
226 ASSERT_TRUE(reader.AdvanceToNextEntry());
238 ASSERT_TRUE(reader.Open(test_zip_file_));
240 ASSERT_TRUE(reader.LocateAndOpenEntry(target_path));
247 ASSERT_TRUE(reader.Open(test_zip_file_));
255 ASSERT_TRUE(reader.Open(test_zip_file_));
257 ASSERT_TRUE(reader.LocateAndOpenEntry(target_path));
258 ASSERT_TRUE(reader.ExtractCurrentEntryToFilePath(
262 ASSERT_TRUE(base::ReadFileToString(test_dir_.AppendASCII("quux.txt"),
274 ASSERT_TRUE(reader.OpenFromPlatformFile(zip_fd_wrapper.platform_file()));
276 ASSERT_TRUE(reader.LocateAndOpenEntry(target_path));
277 ASSERT_TRUE(reader.ExtractCurrentEntryToFilePath(
281 ASSERT_TRUE(base::ReadFileToString(test_dir_.AppendASCII("quux.txt"),
294 ASSERT_TRUE(reader.OpenFromPlatformFile(zip_fd_wrapper.platform_file()));
298 ASSERT_TRUE(reader.LocateAndOpenEntry(target_path));
299 ASSERT_TRUE(reader.ExtractCurrentEntryToFd(out_fd_w.platform_file()));
302 ASSERT_TRUE(base::ReadFileToString(test_dir_.AppendASCII("quux.txt"),
314 ASSERT_TRUE(reader.Open(test_zip_file_));
316 ASSERT_TRUE(reader.LocateAndOpenEntry(target_path));
317 ASSERT_TRUE(reader.ExtractCurrentEntryToFilePath(
320 ASSERT_TRUE(base::DirectoryExists(test_dir_.AppendASCII("foo")));
325 ASSERT_TRUE(reader.Open(test_zip_file_));
327 ASSERT_TRUE(reader.LocateAndOpenEntry(target_path));
328 ASSERT_TRUE(reader.ExtractCurrentEntryIntoDirectory(test_dir_));
330 ASSERT_TRUE(base::DirectoryExists(test_dir_.AppendASCII("foo/bar")));
333 ASSERT_TRUE(base::ReadFileToString(
341 ASSERT_TRUE(reader.Open(test_zip_file_));
343 ASSERT_TRUE(reader.LocateAndOpenEntry(target_path));
366 ASSERT_TRUE(reader.Open(evil_zip_file_));
369 ASSERT_TRUE(reader.LocateAndOpenEntry(target_path));
380 ASSERT_TRUE(reader.Open(evil_via_invalid_utf8_zip_file_));
384 ASSERT_TRUE(reader.AdvanceToNextEntry());
385 ASSERT_TRUE(reader.OpenCurrentEntryInZip());
395 ASSERT_TRUE(reader.Open(evil_via_absolute_file_name_zip_file_));
397 ASSERT_TRUE(reader.LocateAndOpenEntry(target_path));
408 ASSERT_TRUE(reader.Open(test_zip_file_));
410 ASSERT_TRUE(reader.LocateAndOpenEntry(target_path));
455 ASSERT_TRUE(reader.OpenFromString(data));
457 ASSERT_TRUE(reader.LocateAndOpenEntry(target_path));
458 ASSERT_TRUE(reader.ExtractCurrentEntryToFilePath(
462 ASSERT_TRUE(base::ReadFileToString(
474 ASSERT_TRUE(reader.Open(test_zip_file_));
475 ASSERT_TRUE(reader.LocateAndOpenEntry(target_path));
496 ASSERT_TRUE(base::ReadFileToString(test_dir_.AppendASCII("quux.txt"),
502 ASSERT_TRUE(base::GetFileSize(target_file, &file_size));
514 ASSERT_TRUE(reader.Open(test_zip_file_));
515 ASSERT_TRUE(reader.LocateAndOpenEntry(target_path));
535 ASSERT_TRUE(base::DirectoryExists(target_file));
547 ASSERT_TRUE(reader.Open(test_zip_file));
554 ASSERT_TRUE(reader.LocateAndOpenEntry(file_name));