Home
last modified time | relevance | path

Searched refs:file_contents (Results 1 – 2 of 2) sorted by relevance

/trusty/user/base/lib/storage/rust/src/
Dtest.rs34 let file_contents = "Hello, world!"; in read_write() localVariable
37 session.write(file_name, file_contents.as_bytes()).unwrap(); in read_write()
44 assert_eq!(data.len(), file_contents.len(), "Incorrect number of bytes read"); in read_write()
45 assert_eq!(data, file_contents.as_bytes(), "Incorrect file contents returned"); in read_write()
55 let file_contents = "Hello, world!"; in read_all_buf_too_small() localVariable
58 session.write(file_name, file_contents.as_bytes()).unwrap(); in read_all_buf_too_small()
75 let file_contents = b"Hello, world!"; in read_at() localVariable
78 session.write(file_name, file_contents).unwrap(); in read_at()
87 assert_eq!(Ok(&file_contents[3..8]), result); in read_at()
95 assert_eq!(Ok(&file_contents[10..]), result); in read_at()
[all …]
/trusty/user/app/keymint/
Dsecure_storage_manager.rs328 Ok(Some(file_contents)) => file_contents, in read_attestation_ids()