Skip to content

Commit

Permalink
rename file, fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pohhsu committed Sep 26, 2023
1 parent 4ec18ac commit 7054e4f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public async Task<ActionResult> PostAsync([FromBody] KeyRequest keyRequest,
var key = t.Item2;
logger.LogDebug($"Get key for kid {kid} " + (key != null ? "success" : "failed"));
return key != null;
}).Select(t => new ClearKey() { KeyId = ToDashKeyOrKeyId(t.Item1), Key = ToDashKeyOrKeyId(t.Item2) }).ToArray();
}).Select(t => new ClearKey() { KeyId = ToDashKeyOrKeyId(t.Item1), Key = ToDashKeyOrKeyId(t.Item2!) }).ToArray();

// All done.
var result = new JsonResult(new KeyRequestResponse()
Expand Down
4 changes: 2 additions & 2 deletions tools/PlaybackService/test/KeyDeliverControllerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public async Task ClearKeyShouldBeDeliveredForHlsKeyRequest()
using var output = new MemoryStream();
string? contentType = null;
long? contentLength = null;
httpResponseMock.SetupSet(c => c.ContentType).Callback(c => contentType = c);
httpResponseMock.SetupSet(c => c.ContentLength).Callback(c => contentLength = c);
httpResponseMock.SetupSet(c => c.ContentType = It.IsAny<string?>()).Callback<string?>(c => contentType = c);
httpResponseMock.SetupSet(c => c.ContentLength = It.IsAny<long?>()).Callback<long?>(c => contentLength = c);
httpResponseMock.Setup(c => c.Body).Returns(output);

// Create controller.
Expand Down
4 changes: 2 additions & 2 deletions tools/PlaybackService/test/PlaybackControllerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public async Task DashManifestShouldBeInjected()
// Hook HttpResponseMock.
using var output = new MemoryStream();
string? contentType = null;
httpResponseMock.SetupSet(c => c.ContentType).Callback(c => contentType = c);
httpResponseMock.SetupSet(c => c.ContentType = It.IsAny<string?>()).Callback<string?>(c => contentType = c);
httpResponseMock.Setup(c => c.Body).Returns(output);

// Create controller
Expand Down Expand Up @@ -67,7 +67,7 @@ public async Task HlsManifestShouldBeInjected()
// Hook HttpResponseMock.
using var output = new MemoryStream();
string? contentType = null;
httpResponseMock.SetupSet(c => c.ContentType).Callback(c => contentType = c);
httpResponseMock.SetupSet(c => c.ContentType = It.IsAny<string?>()).Callback<string?>(c => contentType = c);
httpResponseMock.Setup(c => c.Body).Returns(output);

// Create controller
Expand Down

0 comments on commit 7054e4f

Please sign in to comment.