Lines Matching refs:as_bytes
73 tmp.write_all(body.as_bytes()).unwrap(); in test_sendfile_freebsd()
77 header_strings.iter().map(|s| s.as_bytes()).collect(); in test_sendfile_freebsd()
79 trailer_strings.iter().map(|s| s.as_bytes()).collect(); in test_sendfile_freebsd()
104 assert_eq!(bytes_written as usize, expected_string.as_bytes().len()); in test_sendfile_freebsd()
124 tmp.write_all(body.as_bytes()).unwrap(); in test_sendfile_dragonfly()
128 header_strings.iter().map(|s| s.as_bytes()).collect(); in test_sendfile_dragonfly()
130 trailer_strings.iter().map(|s| s.as_bytes()).collect(); in test_sendfile_dragonfly()
153 assert_eq!(bytes_written as usize, expected_string.as_bytes().len()); in test_sendfile_dragonfly()
173 tmp.write_all(body.as_bytes()).unwrap(); in test_sendfile_darwin()
177 header_strings.iter().map(|s| s.as_bytes()).collect(); in test_sendfile_darwin()
179 trailer_strings.iter().map(|s| s.as_bytes()).collect(); in test_sendfile_darwin()
202 assert_eq!(bytes_written as usize, expected_string.as_bytes().len()); in test_sendfile_darwin()