pub struct MockBrowserProfileRepository {
BrowserProfileRepository_expectations: MockBrowserProfileRepository_BrowserProfileRepository,
}Expand description
Repository trait defining operations for browser profile data access. Provides methods to retrieve and update browser profile related information.
Fields§
§BrowserProfileRepository_expectations: MockBrowserProfileRepository_BrowserProfileRepositoryImplementations§
source§impl MockBrowserProfileRepository
impl MockBrowserProfileRepository
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 MockBrowserProfileRepository
impl MockBrowserProfileRepository
sourcepub fn expect_get_mini_by_id(&mut self) -> &mut Expectation
pub fn expect_get_mini_by_id(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_mini_by_id method
sourcepub fn expect_get_preliminary_by_id(&mut self) -> &mut Expectation
pub fn expect_get_preliminary_by_id(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_preliminary_by_id method
sourcepub fn expect_get_by_id_with_fingerprint(&mut self) -> &mut Expectation
pub fn expect_get_by_id_with_fingerprint(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_by_id_with_fingerprint method
sourcepub fn expect_get_homepages_by_browser_profile_id(&mut self) -> &mut Expectation
pub fn expect_get_homepages_by_browser_profile_id(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_homepages_by_browser_profile_id method
sourcepub fn expect_get_bookmarks(&mut self) -> &mut Expectation
pub fn expect_get_bookmarks(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_bookmarks method
sourcepub fn expect_get_extensions(&mut self) -> &mut Expectation
pub fn expect_get_extensions(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_extensions method
sourcepub fn expect_update_datadir_hash(&mut self) -> &mut Expectation
pub fn expect_update_datadir_hash(&mut self) -> &mut Expectation
Create an Expectation for mocking the update_datadir_hash method
sourcepub fn expect_is_pending_transfer(&mut self) -> &mut Expectation
pub fn expect_is_pending_transfer(&mut self) -> &mut Expectation
Create an Expectation for mocking the is_pending_transfer method
Trait Implementations§
source§impl BrowserProfileRepository for MockBrowserProfileRepository
impl BrowserProfileRepository for MockBrowserProfileRepository
Repository trait defining operations for browser profile data access. Provides methods to retrieve and update browser profile related information.
source§fn get_mini_by_id<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = Result<MiniBrowserProfile>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_mini_by_id<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = Result<MiniBrowserProfile>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves minimal browser profile information by ID.
source§fn get_preliminary_by_id<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = Result<BrowserProfilePreliminary>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_preliminary_by_id<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = Result<BrowserProfilePreliminary>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves preliminary browser profile data by ID. This includes basic profile information without full fingerprint details.
source§fn get_by_id_with_fingerprint<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = Result<BrowserProfileWithFingerprint>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_by_id_with_fingerprint<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = Result<BrowserProfileWithFingerprint>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves complete browser profile information including fingerprint data by ID.
source§fn get_homepages_by_browser_profile_id<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<Homepage>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_homepages_by_browser_profile_id<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<Homepage>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves all homepages associated with a browser profile ID.
source§fn get_bookmarks<'life0, 'async_trait>(
&'life0 self,
user_id: i64,
team_id: i64,
main_website: MainWebsite,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bookmark>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_bookmarks<'life0, 'async_trait>(
&'life0 self,
user_id: i64,
team_id: i64,
main_website: MainWebsite,
) -> Pin<Box<dyn Future<Output = Result<Vec<Bookmark>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves bookmarks filtered by user ID, team ID and main website.
source§fn get_extensions<'life0, 'async_trait>(
&'life0 self,
user_id: i64,
team_id: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<Extension>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_extensions<'life0, 'async_trait>(
&'life0 self,
user_id: i64,
team_id: i64,
) -> Pin<Box<dyn Future<Output = Result<Vec<Extension>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves extensions available to a user based on user ID and team ID.
source§impl Debug for MockBrowserProfileRepository
impl Debug for MockBrowserProfileRepository
Auto Trait Implementations§
impl Freeze for MockBrowserProfileRepository
impl RefUnwindSafe for MockBrowserProfileRepository
impl Send for MockBrowserProfileRepository
impl Sync for MockBrowserProfileRepository
impl Unpin for MockBrowserProfileRepository
impl UnwindSafe for MockBrowserProfileRepository
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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