-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix FXIOS-5382 Prevent presenting FxAWebViewController when unexpe…
…cted QR code is scanned during sync setup (#20678)
- Loading branch information
1 parent
01a4532
commit 25d5e92
Showing
5 changed files
with
80 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...fox-ios/firefox-ios-tests/Tests/ClientTests/FirefoxAccountSignInViewControllerTests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/ | ||
|
||
import XCTest | ||
import Common | ||
|
||
@testable import Client | ||
|
||
final class FirefoxAccountSignInViewControllerTests: XCTestCase { | ||
let windowUUID: WindowUUID = .XCTestDefaultUUID | ||
private var mockProfile: MockProfile! | ||
var deeplinkParams: FxALaunchParams! | ||
|
||
override func setUp() { | ||
super.setUp() | ||
DependencyHelperMock().bootstrapDependencies() | ||
mockProfile = MockProfile() | ||
deeplinkParams = FxALaunchParams(entrypoint: .browserMenu, query: ["test_key": "test_value"]) | ||
} | ||
|
||
override func tearDown() { | ||
super.tearDown() | ||
DependencyHelperMock().reset() | ||
} | ||
|
||
func testFirefoxAccountSignInViewController_simpleCreation_hasNoLeaks() { | ||
let testFirefoxAccountSignInViewController = FirefoxAccountSignInViewController( | ||
profile: mockProfile, | ||
parentType: .appMenu, | ||
deepLinkParams: deeplinkParams, | ||
windowUUID: windowUUID | ||
) | ||
trackForMemoryLeaks(testFirefoxAccountSignInViewController) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters