From 682464b0c98e82bee9986e771abe6af3c0f34390 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Mon, 29 Jul 2024 19:41:07 +0000 Subject: [PATCH] Restyled by whitespace --- .../clusters/scenes-server/scenes-server.cpp | 7 ++++--- .../suites/certification/Test_TC_S_2_2.yaml | 18 +++++++++--------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/app/clusters/scenes-server/scenes-server.cpp b/src/app/clusters/scenes-server/scenes-server.cpp index ef23a8e8bd9c7b..7c215c20446948 100644 --- a/src/app/clusters/scenes-server/scenes-server.cpp +++ b/src/app/clusters/scenes-server/scenes-server.cpp @@ -364,7 +364,7 @@ void AddSceneParse(CommandHandlerInterface::HandlerContext & ctx, const CommandD { ResponseType response; uint16_t endpointTableSize = 0; - + ReturnOnFailure( AddResponseOnError(ctx, response, Attributes::SceneTableSize::Get(ctx.mRequestPath.mEndpointId, &endpointTableSize))); @@ -376,7 +376,8 @@ void AddSceneParse(CommandHandlerInterface::HandlerContext & ctx, const CommandD response.sceneID = req.sceneID; // Verify the attributes are respecting constraints - if (req.transitionTime > scenes::kScenesMaxTransitionTime || req.sceneName.size() > scenes::kSceneNameMaxLength || req.sceneID == scenes::kUndefinedSceneId) + if (req.transitionTime > scenes::kScenesMaxTransitionTime || req.sceneName.size() > scenes::kSceneNameMaxLength || + req.sceneID == scenes::kUndefinedSceneId) { response.status = to_underlying(Protocols::InteractionModel::Status::ConstraintError); ctx.mCommandHandler.AddResponse(ctx.mRequestPath, response); @@ -555,7 +556,7 @@ CHIP_ERROR StoreSceneParse(const FabricIndex & fabricIdx, const EndpointId & end // Get Scene Table Instance SceneTable * sceneTable = scenes::GetSceneTableImpl(endpointID, endpointTableSize); - + // Verify Endpoint in group VerifyOrReturnError(nullptr != groupProvider, CHIP_ERROR_INTERNAL); if (0 != groupID && !groupProvider->HasEndpoint(fabricIdx, groupID, endpointID)) diff --git a/src/app/tests/suites/certification/Test_TC_S_2_2.yaml b/src/app/tests/suites/certification/Test_TC_S_2_2.yaml index c87d37eb1ed4ab..bdb3d2b8ad90db 100644 --- a/src/app/tests/suites/certification/Test_TC_S_2_2.yaml +++ b/src/app/tests/suites/certification/Test_TC_S_2_2.yaml @@ -301,10 +301,10 @@ tests: value: GI - name: "SceneID" value: 0x01 - + - label: "Step 2d: TH sends a StoreScene command to DUT with the GroupID field - set to G1 and the SceneID field set to 0xFF, which is outside of the + set to G1 and the SceneID field set to 0xFF, which is outside of the constraints for a SceneID." PICS: S.S.C04.Rsp command: "StoreScene" @@ -467,7 +467,7 @@ tests: - label: "Step 4e: TH sends a RecallScene command to DUT with the GroupID field - set to G1 and the SceneID field set to 0xFF, which is outside of the + set to G1 and the SceneID field set to 0xFF, which is outside of the constraints for a SceneID." PICS: S.S.C05.Rsp command: "RecallScene" @@ -593,7 +593,7 @@ tests: - label: "Step 5d: TH sends a ViewScene command to DUT with the GroupID field - set to G1 and the SceneID field set to 0xFF, which is outside of the + set to G1 and the SceneID field set to 0xFF, which is outside of the constraints for a SceneID." PICS: S.S.C01.Rsp command: "ViewScene" @@ -845,10 +845,10 @@ tests: - label: "Step 8f: TH sends a AddScene command to DUT with the GroupID field - set to G1, the SceneID field set to 0xFF, which is outside of the - constraints for a SceneID, the TransitionTime field set - to 1000 (1s) and no extension field sets. This should - fail and return a status of 0x87 (CONSTRAINT_ERROR)." + set to G1, the SceneID field set to 0xFF, which is outside of the + constraints for a SceneID, the TransitionTime field set to 1000 (1s) + and no extension field sets. This should fail and return a status of + 0x87 (CONSTRAINT_ERROR)." PICS: S.S.C00.Rsp command: "AddScene" arguments: @@ -935,7 +935,7 @@ tests: - label: "Step 9d: TH sends a RemoveScene command to DUT with the GroupID field - set to G1 and the SceneID field set to 0xFF, which is outside of the + set to G1 and the SceneID field set to 0xFF, which is outside of the constraints for a SceneID." PICS: S.S.C02.Rsp command: "RemoveScene"