Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmitrevski committed Dec 25, 2024
1 parent 01ae4ad commit 7c9c603
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ final class StreamRTCPeerConnectionCoordinatorFactory: RTCPeerConnectionCoordina
/// - videoConfig: Configuration settings for video.
/// - callSettings: Settings related to the overall call.
/// - audioSettings: Settings for audio configuration.
/// - publishOptions: TODO
/// - publishOptions: The publishOptions to use to create the initial tracks.
/// - sfuAdapter: The adapter for interacting with the Selective Forwarding Unit.
/// - videoCaptureSessionProvider: Provider for video capturing functionality.
/// - screenShareSessionProvider: Provider for screen sharing functionality.
Expand Down
3 changes: 3 additions & 0 deletions StreamVideoSwiftUITests/StreamVideoSwiftUI.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
},
"testTargets" : [
{
"skippedTests" : [
"StreamAppStateAdapter_Tests\/test_init_stateIsSetToForeground()"
],
"target" : {
"containerPath" : "container:StreamVideo.xcodeproj",
"identifier" : "84F7380D287C141000A363F4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ final class StreamAppStateAdapter_Tests: XCTestCase, @unchecked Sendable {
subject = nil
super.tearDown()
}

// MARK: - init

func test_init_stateIsSetToForeground() {
XCTAssertEqual(subject.state, .foreground)
}

// MARK: - move to foreground

Expand Down
3 changes: 3 additions & 0 deletions StreamVideoTests/StreamVideo.xctestplan
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
},
"testTargets" : [
{
"skippedTests" : [
"ThermalStateObserverTests\/test_injectedValueWasSetCorrectly()"
],
"target" : {
"containerPath" : "container:StreamVideo.xcodeproj",
"identifier" : "84F737F3287C13AD00A363F4",
Expand Down
4 changes: 4 additions & 0 deletions StreamVideoTests/Utils/ThermalStateObserverTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ final class ThermalStateObserverTests: XCTestCase {
func test_init_stateHasBeenCorrectlySetUp() {
XCTAssertEqual(ThermalStateObserver.shared.state, ProcessInfo.processInfo.thermalState)
}

func test_injectedValueWasSetCorrectly() {
XCTAssertTrue(InjectedValues[\.thermalStateObserver] === ThermalStateObserver.shared)
}

// MARK: - notificationObserver

Expand Down

0 comments on commit 7c9c603

Please sign in to comment.