Skip to content

Commit

Permalink
Merge branch 'main' into daniel/duckplayer/8.age.restricted.videos
Browse files Browse the repository at this point in the history
  • Loading branch information
afterxleep committed Jul 19, 2024
2 parents b5416a7 + bc098bb commit 02b7d8d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions DuckDuckGoTests/DuckPlayerMocks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,18 @@ final class MockDuckPlayerSettings: DuckPlayerSettingsProtocol {
}

final class MockDuckPlayer: DuckPlayerProtocol {
var hostView: UIViewController?

func openDuckPlayerSettings(params: Any, message: WKScriptMessage) async -> (any Encodable)? {
nil
}

func openDuckPlayerInfo(params: Any, message: WKScriptMessage) async -> (any Encodable)? {
nil
}

func setHostViewController(_ vc: UIViewController) {}

func initialSetupPlayer(params: Any, message: WKScriptMessage) async -> (any Encodable)? {
nil
}
Expand Down

0 comments on commit 02b7d8d

Please sign in to comment.