pub struct MockObjectController { /* private fields */ }Implementations§
Source§impl MockObjectController
impl MockObjectController
Sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Validate that all current expectations for all methods have been satisfied, and discard them.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new method can still be called
like <MockX as TraitY>::new
Source§impl MockObjectController
impl MockObjectController
Sourcepub fn expect_TEE_CloseObject(&mut self) -> &mut Expectation
pub fn expect_TEE_CloseObject(&mut self) -> &mut Expectation
Create an Expectation for mocking the TEE_CloseObject method
Sourcepub fn expect_TEE_AllocateTransientObject(&mut self) -> &mut Expectation
pub fn expect_TEE_AllocateTransientObject(&mut self) -> &mut Expectation
Create an Expectation for mocking the TEE_AllocateTransientObject method
Sourcepub fn expect_TEE_OpenPersistentObject(&mut self) -> &mut Expectation
pub fn expect_TEE_OpenPersistentObject(&mut self) -> &mut Expectation
Create an Expectation for mocking the TEE_OpenPersistentObject method
Sourcepub fn expect_TEE_CreatePersistentObject(&mut self) -> &mut Expectation
pub fn expect_TEE_CreatePersistentObject(&mut self) -> &mut Expectation
Create an Expectation for mocking the TEE_CreatePersistentObject method
Sourcepub fn expect_TEE_CloseAndDeletePersistentObject1(&mut self) -> &mut Expectation
pub fn expect_TEE_CloseAndDeletePersistentObject1(&mut self) -> &mut Expectation
Create an Expectation for mocking the TEE_CloseAndDeletePersistentObject1 method
Source§impl MockObjectController
impl MockObjectController
pub fn new_valid_test_handle_struct() -> __TEE_ObjectHandle
pub fn new_valid_test_handle( handle: &mut __TEE_ObjectHandle, ) -> Arc<UnsafeCell<TEE_ObjectHandle>> ⓘ
pub fn expect_TEE_AllocateTransientObject_success_once( &mut self, handle: Arc<UnsafeCell<TEE_ObjectHandle>>, )
pub fn expect_TEE_AllocateTransientObject_fail_once(&mut self, code: TEE_Result)
pub fn expect_TEE_CreatePersistentObject_success_once( &mut self, handle: Arc<UnsafeCell<TEE_ObjectHandle>>, )
pub fn expect_TEE_CreatePersistentObject_fail_once(&mut self, code: TEE_Result)
pub fn expect_TEE_OpenPersistentObject_success_once( &mut self, handle: Arc<UnsafeCell<TEE_ObjectHandle>>, )
pub fn expect_TEE_OpenPersistentObject_fail_once(&mut self, code: TEE_Result)
pub fn expect_TEE_CloseAndDeletePersistentObject1_success_once( &mut self, exp_handle: Arc<UnsafeCell<TEE_ObjectHandle>>, )
pub fn expect_TEE_CloseAndDeletePersistentObject1_fail_once( &mut self, code: TEE_Result, )
pub fn expect_TEE_CloseObject_once( &mut self, exp_handle: Arc<UnsafeCell<TEE_ObjectHandle>>, )
Trait Implementations§
Source§impl Debug for MockObjectController
impl Debug for MockObjectController
Source§impl Default for MockObjectController
impl Default for MockObjectController
Source§impl ObjectController for MockObjectController
impl ObjectController for MockObjectController
fn TEE_CloseObject(&self, object: TEE_ObjectHandle)
fn TEE_AllocateTransientObject( &self, objectType: TEE_ObjectType, maxObjectSize: u32, object: *mut TEE_ObjectHandle, ) -> TEE_Result
fn TEE_OpenPersistentObject( &self, storageID: u32, objectID: *const c_void, objectIDLen: usize, flags: u32, object: *mut TEE_ObjectHandle, ) -> TEE_Result
fn TEE_CreatePersistentObject( &self, storageID: u32, objectID: *const c_void, objectIDLen: usize, flags: u32, attributes: TEE_ObjectHandle, initialData: *const c_void, initialDataLen: usize, object: *mut TEE_ObjectHandle, ) -> TEE_Result
fn TEE_CloseAndDeletePersistentObject1( &self, object: TEE_ObjectHandle, ) -> TEE_Result
Auto Trait Implementations§
impl Freeze for MockObjectController
impl RefUnwindSafe for MockObjectController
impl Send for MockObjectController
impl Sync for MockObjectController
impl Unpin for MockObjectController
impl UnsafeUnpin for MockObjectController
impl UnwindSafe for MockObjectController
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