Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch fxa_client from using mockiato to using mockall #5890

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,660 changes: 765 additions & 895 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion components/fxa-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ uniffi = { version = "0.24.1", features = ["build"] }

[dev-dependencies]
viaduct-reqwest = { path = "../support/viaduct-reqwest" }
mockiato = "0.9"
mockall = "0.11"
mockito = "0.31"

[features]
Expand Down
3 changes: 1 addition & 2 deletions components/fxa-client/src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
use error_support::handle_error;
use serde::{Deserialize, Serialize};
use sync15::DeviceType;

use crate::{ApiResult, DevicePushSubscription, Error, FirefoxAccount};

impl FirefoxAccount {
/// Create a new device record for this application.
///
Expand All @@ -45,6 +43,7 @@ impl FirefoxAccount {
///
/// - Device registration is only available to applications that have been
/// granted the `https://identity.mozilla.com/apps/oldsync` scope.

#[handle_error(Error)]
pub fn initialize_device(
&self,
Expand Down
Loading