Lines Matching refs:download_content
1265 let download_content: Vec<u8> = in test_download() localVariable
1270 let (first, second) = download_content.as_slice().split_at(download_content.len() / 2); in test_download()
1271 transport.add_input(format!("download:{:#x}", download_content.len()).as_bytes()); in test_download()
1279 assert_eq!(download_buffer, download_content); in test_download()
1329 let download_content: Vec<u8> = vec![0u8; download_buffer.len()]; in test_download_more_than_expected() localVariable
1332 transport.add_input(format!("download:{:#x}", download_content.len() - 1).as_bytes()); in test_download_more_than_expected()
1333 transport.add_input(&download_content[..]); in test_download_more_than_expected()
1352 let download_content: Vec<u8> = (0..1024).into_iter().map(|v| v as u8).collect(); in test_oem_cmd() localVariable
1355 transport.add_input(format!("download:{:#x}", download_content.len()).as_bytes()); in test_oem_cmd()
1356 transport.add_input(&download_content[..]); in test_oem_cmd()
1362 assert_eq!(utils.download_data().to_vec(), download_content); in test_oem_cmd()
1386 let download_content: Vec<u8> = (0..1024).into_iter().map(|v| v as u8).collect(); in test_flash() localVariable
1389 transport.add_input(format!("download:{:#x}", download_content.len()).as_bytes()); in test_flash()
1390 transport.add_input(&download_content[..]); in test_flash()
1395 assert_eq!(utils.download_data().to_vec(), download_content); in test_flash()
1423 let download_content: Vec<u8> = (0..1024).into_iter().map(|v| v as u8).collect(); in test_upload() localVariable
1426 transport.add_input(format!("download:{:#x}", download_content.len()).as_bytes()); in test_upload()
1427 transport.add_input(&download_content[..]); in test_upload()
1432 assert_eq!(utils.download_data().to_vec(), download_content); in test_upload()
1450 download_content[..download_content.len() / 2].to_vec(), in test_upload()
1451 download_content[download_content.len() / 2..].to_vec(), in test_upload()
1548 let download_content: Vec<u8> = in test_fastboot_tcp() localVariable
1556 format!("download:{:#x}", download_content.len()).as_bytes(), in test_fastboot_tcp()
1558 tcp_stream.add_length_prefixed_input(&download_content[..]); in test_fastboot_tcp()
1567 assert_eq!(download_buffer, download_content); in test_fastboot_tcp()