From 626465477825e3b675d6f4df6339dd4c153ddea1 Mon Sep 17 00:00:00 2001 From: Emily Dixon Date: Mon, 6 May 2024 10:42:41 -0700 Subject: [PATCH] some comments --- .../FairPlay/FairPlaySessionManagerTests.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Tests/MuxPlayerSwift/FairPlay/FairPlaySessionManagerTests.swift b/Tests/MuxPlayerSwift/FairPlay/FairPlaySessionManagerTests.swift index b0b607bb..f824292a 100644 --- a/Tests/MuxPlayerSwift/FairPlay/FairPlaySessionManagerTests.swift +++ b/Tests/MuxPlayerSwift/FairPlay/FairPlaySessionManagerTests.swift @@ -132,7 +132,7 @@ class FairPlaySessionManagerTests : XCTestCase { let fakeRootDomain = "custom.domain.com" let fakePlaybackId = "fake_playback_id" let fakeDrmToken = "fake_drm_token" - // real app certs are opaque binary to us, the fake one can be whatever + // real SPC's are opaque binary to us, the fake one can be whatever let fakeSpcData = "fake-SPC-binary-data".data(using: .utf8)! var urlRequest: URLRequest! @@ -233,7 +233,6 @@ class FairPlaySessionManagerTests : XCTestCase { let fakePlaybackId = "fake_playback_id" let fakeDrmToken = "fake_drm_token" let fakeHTTPStatus = 500 // all codes are handled the same way, by failing - // real app certs are opaque binary to us, the fake one can be whatever let requestFails = XCTestExpectation(description: "request certificate successfully") MockURLProtocol.requestHandler = { request in @@ -414,7 +413,7 @@ class FairPlaySessionManagerTests : XCTestCase { let fakePlaybackId = "fake_playback_id" let fakeDrmToken = "fake_drm_token" let fakeHTTPStatus = 500 // all codes are handled the same way, by failing - // real app certs are opaque binary to us, the fake one can be whatever + // real SPC's are opaque binary to us, the fake one can be whatever let fakeSpcData = "fake-spc-data".data(using: .utf8)! let requestFails = XCTestExpectation(description: "request certificate successfully") @@ -428,7 +427,7 @@ class FairPlaySessionManagerTests : XCTestCase { // failed requests proxied from our drm vendor have response bodies with // base64 text, which we should treat as opaque (not parse or decode), - // since can't do anything with them and Cast logs them on the backend + // since we can't do anything with them and Cast logs them on the backend let errorBody = "failed request source text" let errorData = errorBody.data(using: .utf8) // crashes if processed probably return (