-
Notifications
You must be signed in to change notification settings - Fork 5
Add MRMediaRemoteRequestNowPlayingPlaybackQueueForPlayerSync
#4
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
base: master
Are you sure you want to change the base?
Add MRMediaRemoteRequestNowPlayingPlaybackQueueForPlayerSync
#4
Conversation
2cf0217 to
1f1c90c
Compare
Tests/TestFunctions.h
Outdated
| if (@available(macOS 10.15, *)) { | ||
| XCTAssertTrue([((NSObject *)client).className isEqualToString:@"MRClient"]); | ||
| } else { | ||
| XCTAssertTrue([((NSObject *)client).className isEqualToString:@"_MRNowPlayingClientProtobuf"]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirm this on Mojave, High Sierra, and Sierra. Also figure out iOS, watchOS, and tvOS versions.
| #import <os/availability.h> | ||
| #import <PrivateProtocolBuffer/PrivateProtocolBuffer.h> | ||
|
|
||
| API_AVAILABLE(macos(10.15)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Figure out iOS, watchOS, and tvOS versions.
MRClient and modify _MRNowPlayingClientProtobufMRMediaRemoteRequestNowPlayingPlaybackQueueForPlayerSync
90780da to
302fbf3
Compare
| XCTestExpectation *expectation = [self expectationWithDescription:@"MRMediaRemoteRequestNowPlayingPlaybackQueueForPlayerSync"]; | ||
| (*func)(nil, nil, dispatch_get_main_queue(), ^(id queue, NSError *error) { | ||
| XCTAssertNotNil(queue, @"`queue` is `nil` when calling `MRMediaRemoteRequestNowPlayingPlaybackQueueForPlayerSync`. Play some music for this test to pass."); | ||
| XCTAssertNil(error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test the error
302fbf3 to
40d5403
Compare
7f8eeef to
d231c7a
Compare
No description provided.