Skip to content

Commit

Permalink
some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
daytime-em committed May 6, 2024
1 parent 3252d03 commit 6264654
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand All @@ -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 (
Expand Down

0 comments on commit 6264654

Please sign in to comment.