Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: calling tests - WPB-11936 #2399

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import WireAnalytics

// sourcery: AutoMockable
public protocol SubmitCallQualitySurveyUseCaseProtocol {

func invoke(_ review: CallQualitySurveyReview)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions wire-ios/Wire-iOS Tests/CallControllerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,3 @@ final class ActiveCallRouterProtocolMock: ActiveCallRouterProtocol {
presentUnsupportedVersionAlertIsCalled = true
}
}

// MARK: - MockCallConversationProvider

final class MockCallConversationProvider: CallConversationProvider {
var priorityCallConversation: ZMConversation?
var ongoingCallConversation: ZMConversation?
var ringingCallConversation: ZMConversation?
}
24 changes: 24 additions & 0 deletions wire-ios/Wire-iOS Tests/MockCallConversationProvider.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// Wire
// Copyright (C) 2025 Wire Swiss GmbH
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see http://www.gnu.org/licenses/.
//
@testable import Wire

final class MockCallConversationProvider: CallConversationProvider {
var priorityCallConversation: ZMConversation?
var ongoingCallConversation: ZMConversation?
var ringingCallConversation: ZMConversation?
}
6 changes: 6 additions & 0 deletions wire-ios/Wire-iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
0143895E2BC81DC200EC6920 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 0143895D2BC81DC200EC6920 /* PrivacyInfo.xcprivacy */; };
014389612BC8203100EC6920 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 014389602BC8201700EC6920 /* PrivacyInfo.xcprivacy */; };
014389632BC8203700EC6920 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 0143895F2BC8200600EC6920 /* PrivacyInfo.xcprivacy */; };
014434A92D39A109000EB8ED /* MockCallConversationProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 014434A82D39A109000EB8ED /* MockCallConversationProvider.swift */; };
014434AC2D39A1FF000EB8ED /* CallQualityControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EE115E0204EEC7D002AD6C2 /* CallQualityControllerTests.swift */; };
0145AE992B1156FC0097E3B8 /* WireSyncEngineSupport.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0145AE982B1156FC0097E3B8 /* WireSyncEngineSupport.framework */; };
014A63AC2B234EAB00827558 /* MFMailComposeViewController+Logs.swift in Sources */ = {isa = PBXBuildFile; fileRef = 014A63AB2B234EAB00827558 /* MFMailComposeViewController+Logs.swift */; };
016DB6DE2C261A4900DEB81B /* WireDomain.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 016DB6DD2C261A4900DEB81B /* WireDomain.framework */; };
Expand Down Expand Up @@ -1967,6 +1969,7 @@
0143895D2BC81DC200EC6920 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
0143895F2BC8200600EC6920 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
014389602BC8201700EC6920 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
014434A82D39A109000EB8ED /* MockCallConversationProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockCallConversationProvider.swift; sourceTree = "<group>"; };
0145AE982B1156FC0097E3B8 /* WireSyncEngineSupport.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = WireSyncEngineSupport.framework; sourceTree = BUILT_PRODUCTS_DIR; };
014A63AB2B234EAB00827558 /* MFMailComposeViewController+Logs.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "MFMailComposeViewController+Logs.swift"; sourceTree = "<group>"; };
016BDDEF2AA0AE670054FB04 /* Developer-Flags.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Developer-Flags.xcconfig"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -6922,6 +6925,7 @@
87C39A8F206BF00A008DA100 /* BackupViewControllerTests.swift */,
543F26CC2562AC2F0097F5EB /* CallControllerTests.swift */,
5EE115E0204EEC7D002AD6C2 /* CallQualityControllerTests.swift */,
014434A82D39A109000EB8ED /* MockCallConversationProvider.swift */,
BFE3FEEB20975D1E003D9AB5 /* CallStatusViewTests.swift */,
BF735D001E716816003BC61F /* CallSystemMessageTests.swift */,
873DC9581D4796C100C1C9B0 /* CameraKeyboardViewControllerTests.swift */,
Expand Down Expand Up @@ -10208,6 +10212,7 @@
5E35F78D21870EDB00D3F4FE /* ConversationPingMessageTests.swift in Sources */,
EEF37EE22BE141C80055C9E1 /* SwitchBackendConfirmationViewTests.swift in Sources */,
EF2128EE2056D55400C1673B /* NetworkStatusViewControllerTests.swift in Sources */,
014434AC2D39A1FF000EB8ED /* CallQualityControllerTests.swift in Sources */,
669105C327397E6A00324115 /* NSAttributedString+DownTests.swift in Sources */,
EFDBA24722942FBB00874A15 /* UIAlertViewController+CompanyLoginTests.swift in Sources */,
A9E674DB24F51A5C0058FC72 /* WireEmailTests.swift in Sources */,
Expand Down Expand Up @@ -10400,6 +10405,7 @@
A9561738271875E5009FF376 /* ConversationCellBurstTimestampViewSnapshotTests.swift in Sources */,
5E97C33120F5F17800C806B4 /* ExtensionSettingsTests.swift in Sources */,
8742FB821E8BD23D00D046BC /* ConversationStatusLineTests.swift in Sources */,
014434A92D39A109000EB8ED /* MockCallConversationProvider.swift in Sources */,
6340660925B204B100C0B4BA /* StreamStubProvider.swift in Sources */,
EF5871662166802B00E47E73 /* GroupDetailsViewControllerSnapshotTests.swift in Sources */,
06C1074825B99D1400C099D3 /* PasswordRuleSetTests.swift in Sources */,
Expand Down
Loading