Skip to content

Commit

Permalink
[local_auth] Remove use of OCMock
Browse files Browse the repository at this point in the history
Adjusts the iOS implementation of local_auth to use a protocol wrapping
the relevant parts of `LAContext` instead of using `LAContext` directly,
allowing the tests to use a stub implementation instead of OCMock.

The goal is to unblock converting the unit tests to Swift, but even by
itself this actually makes the tests much shorter and easier to
understand.

Part of flutter/flutter#119104
  • Loading branch information
stuartmorgan committed May 17, 2024
1 parent ae4dd32 commit 6518b3a
Show file tree
Hide file tree
Showing 6 changed files with 171 additions and 231 deletions.
4 changes: 4 additions & 0 deletions packages/local_auth/local_auth_darwin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.1

* Adjusts implementation for improved testability, and removes use of OCMock.

## 1.3.0

* Adds Swift Package Manager compatibility.
Expand Down
Loading

0 comments on commit 6518b3a

Please sign in to comment.