Struct fshost_test_fixture::TestFixture
source · pub struct TestFixture {
pub realm: RealmInstance,
pub ramdisks: Vec<RamdiskClient>,
pub ramdisk_vmo: Option<Vmo>,
pub crash_reports: Receiver<CrashReport>,
/* private fields */
}
Fields§
§realm: RealmInstance
§ramdisks: Vec<RamdiskClient>
§ramdisk_vmo: Option<Vmo>
§crash_reports: Receiver<CrashReport>
Implementations§
source§impl TestFixture
impl TestFixture
pub async fn tear_down(self)
pub async fn into_vmo(self) -> Option<Vmo>
pub async fn set_ramdisk_vmo(&mut self, vmo: Vmo)
pub fn dir(&self, dir: &str, flags: OpenFlags) -> DirectoryProxy
pub async fn check_fs_type(&self, dir: &str, fs_type: u32)
pub async fn check_test_blob(&self, use_fxblob: bool)
sourcepub async fn check_test_data_file(&self)
pub async fn check_test_data_file(&self)
Check for the existence of a well-known set of test files in the data volume. These files are placed by the disk builder if it formats the filesystem beforehand.
sourcepub async fn check_test_data_file_absent(&self)
pub async fn check_test_data_file_absent(&self)
Checks for the absence of the .testdata marker file, indicating the data filesystem was reformatted.
pub fn ramdisk_vmo(&self) -> Option<&Vmo>
pub async fn add_ramdisk(&mut self, vmo: Vmo)
sourcepub async fn wait_for_crash_reports(
&mut self,
count: usize,
expected_program: &str,
expected_signature: &str
)
pub async fn wait_for_crash_reports( &mut self, count: usize, expected_program: &str, expected_signature: &str )
This must be called if any crash reports are expected, since spurious reports will cause a failure in TestFixture::tear_down.
Auto Trait Implementations§
impl Freeze for TestFixture
impl !RefUnwindSafe for TestFixture
impl Send for TestFixture
impl Sync for TestFixture
impl Unpin for TestFixture
impl !UnwindSafe for TestFixture
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more