diff --git a/Signal.xcodeproj/project.pbxproj b/Signal.xcodeproj/project.pbxproj index 44752a1f7..035209148 100644 --- a/Signal.xcodeproj/project.pbxproj +++ b/Signal.xcodeproj/project.pbxproj @@ -2960,8 +2960,8 @@ files = ( ); inputPaths = ( - "$(SRCROOT)/Carthage/Build/iOS/WebRTC.framework", - "$(SRCROOT)/Carthage/Build/iOS/ZXingObjC.framework", + "$(SRCROOT)/ThirdParty/WebRTC/Build/WebRTC.framework", + "$(SRCROOT)/ThirdParty/Carthage/Build/iOS/ZXingObjC.framework", ); name = "[Carthage] Copy Frameworks"; outputPaths = ( diff --git a/Signal/test/mocks/MockEnvironment.m b/Signal/test/mocks/MockEnvironment.m index 97dd723a4..ac1bf215a 100644 --- a/Signal/test/mocks/MockEnvironment.m +++ b/Signal/test/mocks/MockEnvironment.m @@ -8,6 +8,7 @@ #import #import #import +#import NS_ASSUME_NONNULL_BEGIN @@ -26,15 +27,20 @@ NS_ASSUME_NONNULL_BEGIN OWSAssertDebug(primaryStorage); // TODO: We should probably mock this out. + OWSAudioSession *audioSession = [OWSAudioSession new]; + LockInteractionController *lockInteractionController = [[LockInteractionController alloc] initDefault]; OWSPreferences *preferences = [OWSPreferences new]; OWSSounds *sounds = [[OWSSounds alloc] initWithPrimaryStorage:primaryStorage]; - LockInteractionController *lockInteractionController = [[LockInteractionController alloc] initDefault]; + id proximityMonitoringManager = [OWSProximityMonitoringManagerImpl new]; OWSWindowManager *windowManager = [[OWSWindowManager alloc] initDefault]; - self = [super initWithPreferences:preferences - sounds:sounds - lockInteractionController:lockInteractionController - windowManager:windowManager]; + self = [super initWithAudioSession:audioSession + lockInteractionController:lockInteractionController + preferences:preferences + proximityMonitoringManager:proximityMonitoringManager + sounds:sounds + windowManager:windowManager]; + OWSAssertDebug(self); return self; } diff --git a/Signal/test/util/SearcherTest.swift b/Signal/test/util/SearcherTest.swift index c2bcf8914..fcfc405aa 100644 --- a/Signal/test/util/SearcherTest.swift +++ b/Signal/test/util/SearcherTest.swift @@ -9,6 +9,9 @@ import XCTest // TODO: We might be able to merge this with OWSFakeContactsManager. @objc class ConversationSearcherContactsManager: NSObject, ContactsManagerProtocol { + func displayName(forPhoneIdentifier recipientId: String?, transaction: YapDatabaseReadTransaction) -> String { + return self.displayName(forPhoneIdentifier: recipientId) + } func displayName(forPhoneIdentifier phoneNumber: String?) -> String { if phoneNumber == aliceRecipientId {