pub struct TestFixture {
pub realm: RealmInstance,
pub ramdisks: Vec<RamdiskClient>,
pub main_disk: Option<Disk>,
pub crash_reports: Receiver<CrashReport>,
/* private fields */
}
Fields§
§realm: RealmInstance
§ramdisks: Vec<RamdiskClient>
§main_disk: Option<Disk>
§crash_reports: Receiver<CrashReport>
Implementations§
Source§impl TestFixture
impl TestFixture
pub async fn tear_down(self) -> Option<Disk>
pub fn exposed_dir(&self) -> &DirectoryProxy
pub fn dir(&self, dir: &str, flags: Flags) -> 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 async fn setup_starnix_crypt(&self) -> (CryptProxy, CryptManagementProxy)
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more