From f3a4b8adc85e655ccc37d88e0d1fc5289ab7df40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Ruaudel?= Date: Wed, 27 Nov 2019 16:23:26 +0100 Subject: [PATCH] Add `sendMessage` to the FCMProvider protocol so it can be mocked in tests (#13) --- Sources/FCM/FCM.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/FCM/FCM.swift b/Sources/FCM/FCM.swift index 76d49d5..b350d08 100644 --- a/Sources/FCM/FCM.swift +++ b/Sources/FCM/FCM.swift @@ -5,7 +5,9 @@ import Crypto // MARK: Service -public protocol FCMProvider: Service {} +public protocol FCMProvider: Service { + func sendMessage(_ client: Client, message: FCMMessageDefault) throws -> Future +} // MARK: Engine