Skip to content
Snippets Groups Projects
Commit 1648dbf6 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Add E2EResetAuthenticatedChannel functor

parent d6f65882
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
......@@ -14,6 +14,7 @@ public struct E2E {
public var removeService: E2ERemoveService
public var hasAuthenticatedChannel: E2EHasAuthenticatedChannel
public var requestAuthenticatedChannel: E2ERequestAuthenticatedChannel
public var resetAuthenticatedChannel: E2EResetAuthenticatedChannel
public var callAllReceivedRequests: E2ECallAllReceivedRequests
public var send: E2ESend
......@@ -36,6 +37,7 @@ extension E2E {
removeService: .live(bindingsE2E),
hasAuthenticatedChannel: .live(bindingsE2E),
requestAuthenticatedChannel: .live(bindingsE2E),
resetAuthenticatedChannel: .live(bindingsE2E),
callAllReceivedRequests: .live(bindingsE2E),
send: .live(bindingsE2E)
)
......@@ -57,6 +59,7 @@ extension E2E {
removeService: .unimplemented,
hasAuthenticatedChannel: .unimplemented,
requestAuthenticatedChannel: .unimplemented,
resetAuthenticatedChannel: .unimplemented,
callAllReceivedRequests: .unimplemented,
send: .unimplemented
)
......
import Bindings
import XCTestDynamicOverlay
public struct E2EResetAuthenticatedChannel {
public var run: (Data) throws -> Int64
public func callAsFunction(partnerContact: Data) throws -> Int64 {
try run(partnerContact)
}
}
extension E2EResetAuthenticatedChannel {
public static func live(_ bindingsE2E: BindingsE2e) -> E2EResetAuthenticatedChannel {
E2EResetAuthenticatedChannel { partnerContact in
var roundId: Int64 = 0
try bindingsE2E.reset(partnerContact, ret0_: &roundId)
return roundId
}
}
}
extension E2EResetAuthenticatedChannel {
public static let unimplemented = E2EResetAuthenticatedChannel(
run: XCTUnimplemented("\(Self.self)")
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment