-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
maint: Add Unit Tests for FairPlaySessionManager + good DRM errors + …
…small testability changes (#40) * Ok here we go * different URLSessions * Fairplay -> FairPlay * move helpers out of the protocol * root domain testable * file for fpssm tests * warnings * there we go. one test * Rename FairPlaySessionManagerImpl to DefaultFPSMangaer * Ok that's the trivial tests * do the URLProtcol thing * Mock URLSession * Test success case for requestLicense * Errors * Error * ok there's license almost done * some tests * Tests added * So far so good * now throw the right errors * Added tests, need to update license error returns * Ok now that's some good error handling * Finished Cert and license tests * test app cert request * no more warnings * Ok removed TempError * cleanup a little * little note * Cleanup more * Oops forgot ckc request headers * refactor: redirect singleton calls to injected dependencies refactor: place AVContentKeySession behind a protocol build: fix build issues and tests test setup fix test inject correctly remove empty extension and avoid docc style comments for internal methods remove optionals * Rename abbreviated identifiers and split apart protocols * Remove test session delegate * turns out we do not need this * refactor: minimize implicit singleton calls * test: validate DRM registration when drm token provided * Non-public API, use extension to initialize URL * avoid tripping up docc for internal extensions * cleaner test * route calls to one chokepoint for simplicity * We can use generics instead I think * add a few comments * some comments * some comments * Need to set ContentKeyDelegate * Tests for ContentKeySessionDelegate + Testability Tweaks (#44) * Extract AVContentKeyRequest protocol * remove ContentKeyDelegate methods we're not using * Hook in KeyRequest * record some mocks * ok this is what we can do * here is something * Something more * now we are somewhere * lol * setting up * now we have something goin * errors * there we go * tests * more error * more tests * Content key path * happy path * more * Now that works * now we are somewhere * PR Comment: back to one SessionManager * PR Comments: back to SessionMangaer * And the tests * PR comments: make some stuff optional * nit --------- Co-authored-by: AJ Lauer Barinov <abarinov@mux.com>
- Loading branch information
1 parent
7dc2608
commit b709995
Showing
16 changed files
with
1,650 additions
and
310 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
Oops, something went wrong.