-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[application] refactor to decouple Application with InfraLinkSelector (…
…#2574) This commit refactors the `Application` class. In specific: 1. Decouple `Application` with `InfraLinkSelector` by moving `InfraLinkSelector` out of the `Application` class. The current dependency causes that we cannot move the creation of `ThreadHost` instance out of the constructor of the `Application` class. 2. Move `Ncp::ThreadHost::Create` out of the `Application` constructor. This change solves the fuzzer test issue in Android: When we create an `Application` object, we have to initlialize the radio which will cause error in the fuzz environment. With this change, we can pass a FuzzThreadHost object to the `Application`.
- Loading branch information
Showing
3 changed files
with
58 additions
and
50 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