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

iOS tv-casting-app: Apply StackLocks and sequence callbacks #26817

Merged
merged 2 commits into from
May 25, 2023
Merged
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
@@ -1,6 +1,6 @@
/**
*
* Copyright (c) 2020-2022 Project CHIP Authors
* Copyright (c) 2020-2023 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -102,7 +102,7 @@

@return Onboarding payload
*/
- (OnboardingPayload * _Nonnull)getOnboardingPaylod;
- (OnboardingPayload * _Nonnull)getOnboardingPayload;

/*!
@brief Request opening of a basic commissioning window
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CommissionerDiscoveryDelegateImpl : public chip::Controller::DeviceDiscove
public:
void SetUp(dispatch_queue_t _Nonnull clientQueue,
void (^_Nonnull objCDiscoveredCommissionerHandler)(DiscoveredNodeData * _Nonnull),
TargetVideoPlayerInfo * cachedTargetVideoPlayerInfos)
TargetVideoPlayerInfo * _Nullable cachedTargetVideoPlayerInfos)
{
mClientQueue = clientQueue;
mObjCDiscoveredCommissionerHandler = objCDiscoveredCommissionerHandler;
Expand Down Expand Up @@ -59,7 +59,7 @@ class CommissionerDiscoveryDelegateImpl : public chip::Controller::DeviceDiscove
private:
void (^_Nonnull mObjCDiscoveredCommissionerHandler)(DiscoveredNodeData * _Nonnull);
dispatch_queue_t _Nonnull mClientQueue;
TargetVideoPlayerInfo * mCachedTargetVideoPlayerInfos;
TargetVideoPlayerInfo * _Nullable mCachedTargetVideoPlayerInfos;
};

#endif /* CommissionerDiscoveryDelegateImpl_h */
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/**
*
* Copyright (c) 2020-2022 Project CHIP Authors
* Copyright (c) 2020-2023 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,6 +21,7 @@ import SwiftUI
struct CertTestView: View {
@StateObject var viewModel = CertTestViewModel()
@State private var targetContentAppId: String = ""
@State private var parallelizeTests = true

var body: some View {
VStack(alignment: .leading) {
Expand All @@ -46,9 +47,17 @@ struct CertTestView: View {
}
.border(.secondary)
}
HStack() {
Toggle(isOn: $parallelizeTests) {
Text("Parallelize Tests")
}
}

Button("Launch Test") {
viewModel.launchTest(targetContentAppId: targetContentAppId)
viewModel.launchTests(
targetContentAppId: targetContentAppId,
inParallel: parallelizeTests
)
}
.background(Color.blue)
.foregroundColor(Color.white)
Expand Down
Loading