Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoGiaHieu-dev authored Mar 1, 2025
2 parents 31ae729 + a96509a commit 5cb1f71
Show file tree
Hide file tree
Showing 26 changed files with 918 additions and 928 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,11 @@ extern CMSampleBufferRef FLTCreateTestSampleBuffer(void);
/// @return a test audio sample buffer.
extern CMSampleBufferRef FLTCreateTestAudioSampleBuffer(void);

/// Calls `dispatch_queue_set_specific` with a key that is used to identify the queue.
/// This method is needed for comaptibility of Swift tests with Objective-C code.
/// In Swift, the API for settinng key-value pairs on a queue is different, so Swift tests
/// need to call this method to set the key-value pair on the queue in a way that's
/// compatible withn the existing Objective-C code.
extern void FLTdispatchQueueSetSpecific(dispatch_queue_t queue, const void *key);

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,7 @@ CMSampleBufferRef FLTCreateTestAudioSampleBuffer(void) {
CFRelease(formatDescription);
return sampleBuffer;
}

void FLTdispatchQueueSetSpecific(dispatch_queue_t queue, const void *key) {
dispatch_queue_set_specific(queue, key, (void *)key, NULL);
}

This file was deleted.

Loading

0 comments on commit 5cb1f71

Please sign in to comment.