From 355717026ac2ee35e9d9207db29722ff5867835b Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Tue, 25 Jan 2022 12:11:04 -0500 Subject: [PATCH] Switch Interaction Model client error reporting to just CHIP_ERROR. (#13888) * Switch Interaction Model client error reporting to just CHIP_ERROR. Now that we can put a StatusIB inside a CHIP_ERROR, we can stop passing both, or passing just EmberAfStatus, and pass a CHIP_ERROR that either contains a StatusIB or contains the actual client-side error we ran into (e.g. failure to decode). * Address review comments. --- .../src/binding-handler.cpp | 2 +- .../commands/common/CommandInvoker.h | 11 +- examples/chip-tool/templates/commands.zapt | 4 +- .../templates/partials/test_cluster.zapt | 16 +- examples/tv-casting-app/linux/main.cpp | 4 +- src/app/CommandSender.cpp | 21 +- src/app/CommandSender.h | 15 +- ...DeviceControllerInteractionModelDelegate.h | 17 +- src/app/MessageDef/StatusIB.h | 15 +- src/app/ReadClient.cpp | 3 +- src/app/ReadClient.h | 3 + src/app/ReadHandler.cpp | 3 +- src/app/StatusResponse.cpp | 23 +- src/app/StatusResponse.h | 2 +- src/app/TimedRequest.cpp | 9 +- src/app/TimedRequest.h | 7 +- src/app/WriteClient.cpp | 14 +- src/app/WriteClient.h | 14 +- .../clusters/ota-requestor/OTARequestor.cpp | 18 +- src/app/clusters/ota-requestor/OTARequestor.h | 6 +- src/app/tests/TestCommandInteraction.cpp | 5 +- src/app/tests/TestTimedHandler.cpp | 15 +- src/app/tests/TestWriteInteraction.cpp | 2 +- .../tests/integration/chip_im_initiator.cpp | 6 +- src/controller/CHIPCluster.h | 47 +- src/controller/CHIPDeviceController.cpp | 9 +- src/controller/CHIPDeviceController.h | 2 +- src/controller/TypedCommandCallback.h | 15 +- src/controller/TypedReadCallback.h | 40 +- src/controller/WriteInteraction.h | 14 +- src/controller/java/CHIPDefaultCallbacks.cpp | 10 +- src/controller/java/CHIPDefaultCallbacks.h | 7 +- .../java/templates/CHIPCallbackTypes.zapt | 2 +- .../java/zap-generated/CHIPCallbackTypes.h | 2 +- .../python/chip/clusters/Command.py | 3 +- .../python/chip/clusters/attribute.cpp | 2 +- .../python/chip/clusters/command.cpp | 18 +- .../chip/interaction_model/Delegate.cpp | 16 +- .../python/chip/interaction_model/Delegate.h | 2 +- .../tests/TestServerCommandDispatch.cpp | 7 +- .../tests/data_model/TestCommands.cpp | 23 +- src/controller/tests/data_model/TestRead.cpp | 28 +- src/controller/tests/data_model/TestWrite.cpp | 8 +- .../CHIP/CHIPCallbackBridgeBase_internal.h | 5 +- src/darwin/Framework/CHIP/CHIPError.mm | 17 +- .../CHIPCallbackBridge_internal.zapt | 1 - .../partials/CHIPCallbackBridge.zapt | 4 +- .../CHIP/zap-generated/CHIPCallbackBridge.mm | 238 +- .../CHIPCallbackBridge_internal.h | 1 - .../zap-generated/cluster/Commands.h | 4 +- .../chip-tool/zap-generated/test/Commands.h | 16395 +++++++++++----- 51 files changed, 11499 insertions(+), 5656 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/src/binding-handler.cpp b/examples/all-clusters-app/all-clusters-common/src/binding-handler.cpp index 020c1210806171..15ec992bdd7789 100644 --- a/examples/all-clusters-app/all-clusters-common/src/binding-handler.cpp +++ b/examples/all-clusters-app/all-clusters-common/src/binding-handler.cpp @@ -82,7 +82,7 @@ static void BoundDeviceChangedHandler(const EmberBindingTableEntry * binding, ch auto onSuccess = [](const ConcreteCommandPath & commandPath, const StatusIB & status, const auto & dataResponse) { ChipLogProgress(NotSpecified, "OnOff command succeeds"); }; - auto onFailure = [](const StatusIB & status, CHIP_ERROR error) { + auto onFailure = [](CHIP_ERROR error) { ChipLogError(NotSpecified, "OnOff command failed: %" CHIP_ERROR_FORMAT, error.Format()); }; diff --git a/examples/chip-tool/commands/common/CommandInvoker.h b/examples/chip-tool/commands/common/CommandInvoker.h index 52dd0dd38d5ed5..1214361198a179 100644 --- a/examples/chip-tool/commands/common/CommandInvoker.h +++ b/examples/chip-tool/commands/common/CommandInvoker.h @@ -33,7 +33,7 @@ class ResponseReceiver : public app::CommandSender::Callback { public: using SuccessCallback = void (*)(void * context, const ResponseType & data); - using FailureCallback = void (*)(void * context, EmberAfStatus status); + using FailureCallback = void (*)(void * context, CHIP_ERROR err); using DoneCallback = void (*)(void * context); virtual ~ResponseReceiver() {} @@ -46,10 +46,7 @@ class ResponseReceiver : public app::CommandSender::Callback inline void OnResponse(app::CommandSender * aCommandSender, const app::ConcreteCommandPath & aPath, const app::StatusIB & aStatus, TLV::TLVReader * aData) override; - void OnError(const app::CommandSender * aCommandSender, const app::StatusIB & aStatus, CHIP_ERROR aError) override - { - mOnError(mContext, app::ToEmberAfStatus(aStatus.mStatus)); - } + void OnError(const app::CommandSender * aCommandSender, CHIP_ERROR aError) override { mOnError(mContext, aError); } void OnDone(app::CommandSender * aCommandSender) override { @@ -164,7 +161,7 @@ void ResponseReceiver::OnResponse(app::CommandSender * aCommandSen exit: if (err != CHIP_NO_ERROR) { - mOnError(mContext, app::ToEmberAfStatus(Protocols::InteractionModel::Status::Failure)); + mOnError(mContext, err); } } @@ -178,7 +175,7 @@ inline void ResponseReceiver::OnResponse(app::Co // if (aData != nullptr) { - mOnError(mContext, app::ToEmberAfStatus(Protocols::InteractionModel::Status::Failure)); + mOnError(mContext, CHIP_ERROR_SCHEMA_MISMATCH); return; } diff --git a/examples/chip-tool/templates/commands.zapt b/examples/chip-tool/templates/commands.zapt index dd0a0f56010061..97cac3485007ca 100644 --- a/examples/chip-tool/templates/commands.zapt +++ b/examples/chip-tool/templates/commands.zapt @@ -203,9 +203,9 @@ static void OnDefaultSuccessResponse(void * context) command->SetCommandExitStatus(CHIP_NO_ERROR); } -static void OnDefaultFailure(void * context, EmberAfStatus status) +static void OnDefaultFailure(void * context, CHIP_ERROR err) { - ChipLogProgress(chipTool, "Default Failure Response: 0x%02x", chip::to_underlying(status)); + ChipLogProgress(chipTool, "Default Failure Response: %" CHIP_ERROR_FORMAT, err.Format()); ModelCommand * command = static_cast(context); command->SetCommandExitStatus(CHIP_ERROR_INTERNAL); diff --git a/examples/chip-tool/templates/partials/test_cluster.zapt b/examples/chip-tool/templates/partials/test_cluster.zapt index 199d48ebc85895..e8dcdf642b7798 100644 --- a/examples/chip-tool/templates/partials/test_cluster.zapt +++ b/examples/chip-tool/templates/partials/test_cluster.zapt @@ -131,7 +131,8 @@ class {{filename}}: public TestCommand {{#*inline "staticDoneResponse"}}OnDoneCallback_{{index}}{{/inline}} {{#*inline "successArguments"}}{{#chip_tests_item_response_parameters}}{{#first}}{{#if ../leadingComma}}, {{/if}}{{/first}} {{zapTypeToDecodableClusterObjectType type ns=parent.cluster isArgument=true}} {{asLowerCamelCase name}}{{#not_last}}, {{/not_last}}{{/chip_tests_item_response_parameters}}{{/inline}} - {{#*inline "failureArguments"}}{{#if leadingComma}}, {{/if}}EmberAfStatus status{{/inline}} + {{! TODO: Temporary if cascade until everything is converted to the new status setup }} + {{#*inline "failureArguments"}}{{#if leadingComma}}, {{/if}}CHIP_ERROR error{{/inline}} {{#*inline "staticSuccessArguments"}}void * context{{> successArguments leadingComma=true}}{{/inline}} {{#*inline "staticFailureArguments"}}void * context{{> failureArguments leadingComma=true}}{{/inline}} {{#*inline "staticDoneArguments"}}void * context{{/inline}} @@ -155,7 +156,7 @@ class {{filename}}: public TestCommand static void {{>staticFailureResponse}}({{>staticFailureArguments}}) { - (static_cast<{{filename}} *>(context))->{{>failureResponse}}(status); + (static_cast<{{filename}} *>(context))->{{>failureResponse}}(error); } static void {{>staticSuccessResponse}}({{> staticSuccessArguments}}) @@ -247,8 +248,8 @@ class {{filename}}: public TestCommand (static_cast<{{filename}} *>(context))->{{>successResponse}}({{#chip_tests_item_response_parameters}}{{#not_first}}, {{/not_first}}data.{{asLowerCamelCase name}}{{/chip_tests_item_response_parameters}}); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast<{{filename}} *>(context))->{{>failureResponse}}(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast<{{filename}} *>(context))->{{>failureResponse}}(error); }; {{#if isGroupCommand}} @@ -305,14 +306,15 @@ class {{filename}}: public TestCommand void {{>failureResponse}}({{>failureArguments}}) { + chip::app::StatusIB status(error); {{#if response.error}} - VerifyOrReturn(CheckValue("status", status, {{response.error}})); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), {{response.error}})); {{#unless async}}NextTest();{{/unless}} {{else if response.errorWrongValue}} - VerifyOrReturn(CheckConstraintNotValue("status", status, 0)); + VerifyOrReturn(CheckConstraintNotValue("status", chip::to_underlying(status.mStatus), 0)); {{#unless async}}NextTest();{{/unless}} {{else}} - {{#if optional}}(status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : {{/if}}ThrowFailureResponse(); + {{#if optional}}(status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : {{/if}}ThrowFailureResponse(); {{/if}} } diff --git a/examples/tv-casting-app/linux/main.cpp b/examples/tv-casting-app/linux/main.cpp index 815b6409de7e53..fd5912d8983768 100644 --- a/examples/tv-casting-app/linux/main.cpp +++ b/examples/tv-casting-app/linux/main.cpp @@ -204,9 +204,9 @@ void OnContentLauncherSuccessResponse(void * context, const LaunchResponse::Deco ChipLogProgress(AppServer, "ContentLauncher: Default Success Response"); } -void OnContentLauncherFailureResponse(void * context, EmberAfStatus status) +void OnContentLauncherFailureResponse(void * context, CHIP_ERROR error) { - ChipLogError(AppServer, "ContentLauncher: Default Failure Response: %" PRIu8, status); + ChipLogError(AppServer, "ContentLauncher: Default Failure Response: %" CHIP_ERROR_FORMAT, error.Format()); } void DeviceEventCallback(const DeviceLayer::ChipDeviceEvent * event, intptr_t arg) diff --git a/src/app/CommandSender.cpp b/src/app/CommandSender.cpp index cfe6717518aa44..80e44e2e73cfb5 100644 --- a/src/app/CommandSender.cpp +++ b/src/app/CommandSender.cpp @@ -121,12 +121,11 @@ CHIP_ERROR CommandSender::OnMessageReceived(Messaging::ExchangeContext * apExcha } CHIP_ERROR err = CHIP_NO_ERROR; - StatusIB status(Protocols::InteractionModel::Status::Failure); VerifyOrExit(apExchangeContext == mpExchangeCtx, err = CHIP_ERROR_INCORRECT_STATE); if (mState == State::AwaitingTimedStatus) { - err = HandleTimedStatus(aPayloadHeader, std::move(aPayload), status); + err = HandleTimedStatus(aPayloadHeader, std::move(aPayload)); // Skip all other processing here (which is for the response to the // invoke request), no matter whether err is success or not. goto exit; @@ -136,11 +135,10 @@ CHIP_ERROR CommandSender::OnMessageReceived(Messaging::ExchangeContext * apExcha { err = ProcessInvokeResponse(std::move(aPayload)); SuccessOrExit(err); - status.mStatus = Protocols::InteractionModel::Status::Success; } else if (aPayloadHeader.HasMessageType(Protocols::InteractionModel::MsgType::StatusResponse)) { - err = StatusResponse::ProcessStatusResponse(std::move(aPayload), status); + err = StatusResponse::ProcessStatusResponse(std::move(aPayload)); SuccessOrExit(err); } else @@ -153,7 +151,7 @@ CHIP_ERROR CommandSender::OnMessageReceived(Messaging::ExchangeContext * apExcha { if (err != CHIP_NO_ERROR) { - mpCallback->OnError(this, status, err); + mpCallback->OnError(this, err); } } @@ -210,9 +208,7 @@ void CommandSender::OnResponseTimeout(Messaging::ExchangeContext * apExchangeCon if (mpCallback != nullptr) { - StatusIB status; - status.mStatus = Protocols::InteractionModel::Status::Failure; - mpCallback->OnError(this, status, CHIP_ERROR_TIMEOUT); + mpCallback->OnError(this, CHIP_ERROR_TIMEOUT); } Close(); @@ -309,14 +305,14 @@ CHIP_ERROR CommandSender::ProcessInvokeResponseIB(InvokeResponseIB::Parser & aIn if (mpCallback != nullptr) { - if (statusIB.mStatus == Protocols::InteractionModel::Status::Success) + if (statusIB.IsSuccess()) { mpCallback->OnResponse(this, ConcreteCommandPath(endpointId, clusterId, commandId), statusIB, hasDataResponse ? &commandDataReader : nullptr); } else { - mpCallback->OnError(this, statusIB, CHIP_ERROR_IM_STATUS_CODE_RECEIVED); + mpCallback->OnError(this, statusIB.ToChipError()); } } } @@ -382,10 +378,9 @@ TLV::TLVWriter * CommandSender::GetCommandDataIBTLVWriter() } } -CHIP_ERROR CommandSender::HandleTimedStatus(const PayloadHeader & aPayloadHeader, System::PacketBufferHandle && aPayload, - StatusIB & aStatusIB) +CHIP_ERROR CommandSender::HandleTimedStatus(const PayloadHeader & aPayloadHeader, System::PacketBufferHandle && aPayload) { - ReturnErrorOnFailure(TimedRequest::HandleResponse(aPayloadHeader, std::move(aPayload), aStatusIB)); + ReturnErrorOnFailure(TimedRequest::HandleResponse(aPayloadHeader, std::move(aPayload))); return SendInvokeRequest(); } diff --git a/src/app/CommandSender.h b/src/app/CommandSender.h index df52c5654fa9d4..6afa76ce7340e1 100644 --- a/src/app/CommandSender.h +++ b/src/app/CommandSender.h @@ -102,9 +102,9 @@ class CommandSender final : public Messaging::ExchangeDelegate * * - CHIP_ERROR_TIMEOUT: A response was not received within the expected response timeout. * - CHIP_ERROR_*TLV*: A malformed, non-compliant response was received from the server. - * - CHIP_ERROR_IM_STATUS_CODE_RECEIVED: An invoke response containing a status code denoting an error was received. - * When the protocol ID in the received status is IM, aInteractionModelStatus will contain the IM status - * code. Otherwise, aInteractionModelStatus will always be set to IM::Status::Failure. + * - CHIP_ERROR encapsulating a StatusIB: If we got a non-path-specific + * status response from the server. In that case, + * StatusIB::InitFromChipError can be used to extract the status. * - CHIP_ERROR*: All other cases. * * The CommandSender object MUST continue to exist after this call is completed. The application shall wait until it @@ -114,7 +114,7 @@ class CommandSender final : public Messaging::ExchangeDelegate * @param[in] aStatusIB The status code including IM status code and optional cluster status code * @param[in] aError A system error code that conveys the overall error code. */ - virtual void OnError(const CommandSender * apCommandSender, const StatusIB & aStatusIB, CHIP_ERROR aError) {} + virtual void OnError(const CommandSender * apCommandSender, CHIP_ERROR aError) {} /** * OnDone will be called when CommandSender has finished all work and is safe to destroy and free the @@ -279,10 +279,9 @@ class CommandSender final : public Messaging::ExchangeDelegate // Timed Request. The caller is assumed to have already checked that our // exchange context member is the one the message came in on. // - // aStatusIB will be populated with the returned status if we can parse it - // successfully. - CHIP_ERROR HandleTimedStatus(const PayloadHeader & aPayloadHeader, System::PacketBufferHandle && aPayload, - StatusIB & aStatusIB); + // If the server returned an error status, that will be returned as an error + // value of CHIP_ERROR. + CHIP_ERROR HandleTimedStatus(const PayloadHeader & aPayloadHeader, System::PacketBufferHandle && aPayload); // Send our queued-up Invoke Request message. Assumes the exchange is ready // and mPendingInvokeData is populated. diff --git a/src/app/DeviceControllerInteractionModelDelegate.h b/src/app/DeviceControllerInteractionModelDelegate.h index 5e5c2f980a1d90..0fa9ba3c52ed4d 100644 --- a/src/app/DeviceControllerInteractionModelDelegate.h +++ b/src/app/DeviceControllerInteractionModelDelegate.h @@ -42,17 +42,17 @@ class DeviceControllerInteractionModelDelegate : public chip::app::CommandSender } } - void OnError(const app::CommandSender * apCommandSender, const chip::app::StatusIB & aStatus, - CHIP_ERROR aProtocolError) override + void OnError(const app::CommandSender * apCommandSender, CHIP_ERROR aError) override { // The IMDefaultResponseCallback started out life as an Ember function, so it only accepted - // Ember status codes. Consequently, let's convert the IM code over to a meaningful Ember status before dispatching. + // Ember status codes. Consequently, let's convert the error over to a meaningful Ember status before dispatching. // - // This however, results in loss (aError is completely discarded). When full cluster-specific status codes are implemented - // as well, this will be an even bigger problem. + // This however, results in loss (non-IM errors and cluster-specific + // status codes are completely discarded). // // For now, #10331 tracks this issue. - IMDefaultResponseCallback(apCommandSender, app::ToEmberAfStatus(aStatus.mStatus)); + app::StatusIB status(aError); + IMDefaultResponseCallback(apCommandSender, app::ToEmberAfStatus(status.mStatus)); } void OnDone(app::CommandSender * apCommandSender) override { return chip::Platform::Delete(apCommandSender); } @@ -63,9 +63,10 @@ class DeviceControllerInteractionModelDelegate : public chip::app::CommandSender IMWriteResponseCallback(apWriteClient, attributeStatus.mStatus); } - void OnError(const app::WriteClient * apWriteClient, const app::StatusIB & aStatus, CHIP_ERROR aError) override + void OnError(const app::WriteClient * apWriteClient, CHIP_ERROR aError) override { - IMWriteResponseCallback(apWriteClient, aStatus.mStatus); + app::StatusIB status(aError); + IMWriteResponseCallback(apWriteClient, status.mStatus); } void OnDone(app::WriteClient * apWriteClient) override {} diff --git a/src/app/MessageDef/StatusIB.h b/src/app/MessageDef/StatusIB.h index 0f9a72bc07d1b6..f2af401c2d8548 100644 --- a/src/app/MessageDef/StatusIB.h +++ b/src/app/MessageDef/StatusIB.h @@ -45,6 +45,7 @@ struct StatusIB StatusIB(Protocols::InteractionModel::Status imStatus, ClusterStatus clusterStatus) : mStatus(imStatus), mClusterStatus(clusterStatus) {} + explicit StatusIB(CHIP_ERROR error) { InitFromChipError(error); } enum class Tag : uint8_t { @@ -104,12 +105,22 @@ struct StatusIB CHIP_ERROR ToChipError() const; /** - * Extract a CHIP_ERROR into this StatusIB. If IsIMStatus is false for the - * error, this might do a best-effort attempt to come up with a + * Extract a CHIP_ERROR into this StatusIB. If IsIMStatus() is false for + * the error, this might do a best-effort attempt to come up with a * corresponding StatusIB, defaulting to a generic Status::Failure. */ void InitFromChipError(CHIP_ERROR aError); + /** + * Test whether this status is a success. + */ + bool IsSuccess() const { return mStatus == Protocols::InteractionModel::Status::Success; } + + /** + * Test whether this status is a failure. + */ + bool IsFailure() const { return !IsSuccess(); } + /** * Register the StatusIB error formatter. */ diff --git a/src/app/ReadClient.cpp b/src/app/ReadClient.cpp index 80fe7740ce7388..3c920d515f04e4 100644 --- a/src/app/ReadClient.cpp +++ b/src/app/ReadClient.cpp @@ -254,9 +254,8 @@ CHIP_ERROR ReadClient::OnMessageReceived(Messaging::ExchangeContext * apExchange } else if (aPayloadHeader.HasMessageType(Protocols::InteractionModel::MsgType::StatusResponse)) { - StatusIB status; VerifyOrExit(apExchangeContext == mpExchangeCtx, err = CHIP_ERROR_INCORRECT_STATE); - err = StatusResponse::ProcessStatusResponse(std::move(aPayload), status); + err = StatusResponse::ProcessStatusResponse(std::move(aPayload)); SuccessOrExit(err); } else diff --git a/src/app/ReadClient.h b/src/app/ReadClient.h index 511e46b83163f2..6bc6939864c9d5 100644 --- a/src/app/ReadClient.h +++ b/src/app/ReadClient.h @@ -138,6 +138,9 @@ class ReadClient : public Messaging::ExchangeDelegate * * - CHIP_ERROR_TIMEOUT: A response was not received within the expected response timeout. * - CHIP_ERROR_*TLV*: A malformed, non-compliant response was received from the server. + * - CHIP_ERROR encapsulating a StatusIB: If we got a non-path-specific + * status response from the server. In that case, + * StatusIB::InitFromChipError can be used to extract the status. * - CHIP_ERROR*: All other cases. * * This object MUST continue to exist after this call is completed. The application shall wait until it diff --git a/src/app/ReadHandler.cpp b/src/app/ReadHandler.cpp index 6bb51df08f7292..724b0607dd772d 100644 --- a/src/app/ReadHandler.cpp +++ b/src/app/ReadHandler.cpp @@ -143,8 +143,7 @@ CHIP_ERROR ReadHandler::OnReadInitialRequest(System::PacketBufferHandle && aPayl CHIP_ERROR ReadHandler::OnStatusResponse(Messaging::ExchangeContext * apExchangeContext, System::PacketBufferHandle && aPayload) { CHIP_ERROR err = CHIP_NO_ERROR; - StatusIB status; - err = StatusResponse::ProcessStatusResponse(std::move(aPayload), status); + err = StatusResponse::ProcessStatusResponse(std::move(aPayload)); SuccessOrExit(err); switch (mState) { diff --git a/src/app/StatusResponse.cpp b/src/app/StatusResponse.cpp index 3ae368137a90a7..135436a4058f7c 100644 --- a/src/app/StatusResponse.cpp +++ b/src/app/StatusResponse.cpp @@ -42,9 +42,8 @@ CHIP_ERROR StatusResponse::Send(Protocols::InteractionModel::Status aStatus, Mes return CHIP_NO_ERROR; } -CHIP_ERROR StatusResponse::ProcessStatusResponse(System::PacketBufferHandle && aPayload, StatusIB & aStatus) +CHIP_ERROR StatusResponse::ProcessStatusResponse(System::PacketBufferHandle && aPayload) { - CHIP_ERROR err = CHIP_NO_ERROR; StatusResponseMessage::Parser response; System::PacketBufferTLVReader reader; reader.Init(std::move(aPayload)); @@ -53,22 +52,16 @@ CHIP_ERROR StatusResponse::ProcessStatusResponse(System::PacketBufferHandle && a #if CHIP_CONFIG_IM_ENABLE_SCHEMA_CHECK ReturnErrorOnFailure(response.CheckSchemaValidity()); #endif - ReturnErrorOnFailure(response.GetStatus(aStatus.mStatus)); - ChipLogProgress(InteractionModel, "Received status response, status is %" PRIu8, to_underlying(aStatus.mStatus)); + StatusIB status; + ReturnErrorOnFailure(response.GetStatus(status.mStatus)); + ChipLogProgress(InteractionModel, "Received status response, status is %" PRIu8, to_underlying(status.mStatus)); - if (aStatus.mStatus == Protocols::InteractionModel::Status::Success) + if (status.mStatus == Protocols::InteractionModel::Status::Success) { - err = CHIP_NO_ERROR; + return CHIP_NO_ERROR; } - else if (aStatus.mStatus == Protocols::InteractionModel::Status::ResourceExhausted) - { - err = CHIP_ERROR_NO_MEMORY; - } - else - { - err = CHIP_ERROR_INCORRECT_STATE; - } - return err; + + return status.ToChipError(); } } // namespace app } // namespace chip diff --git a/src/app/StatusResponse.h b/src/app/StatusResponse.h index eb772a06771116..583cbb3dae8120 100644 --- a/src/app/StatusResponse.h +++ b/src/app/StatusResponse.h @@ -32,7 +32,7 @@ class StatusResponse public: static CHIP_ERROR Send(Protocols::InteractionModel::Status aStatus, Messaging::ExchangeContext * apExchangeContext, bool aExpectResponse); - static CHIP_ERROR ProcessStatusResponse(System::PacketBufferHandle && aPayload, StatusIB & aStatus); + static CHIP_ERROR ProcessStatusResponse(System::PacketBufferHandle && aPayload); }; } // namespace app } // namespace chip diff --git a/src/app/TimedRequest.cpp b/src/app/TimedRequest.cpp index dc4a185a55d39e..fb47a375a2c0ae 100644 --- a/src/app/TimedRequest.cpp +++ b/src/app/TimedRequest.cpp @@ -53,16 +53,11 @@ CHIP_ERROR TimedRequest::Send(ExchangeContext * aExchangeContext, uint16_t aTime return aExchangeContext->SendMessage(MsgType::TimedRequest, std::move(payload), SendMessageFlags::kExpectResponse); } -CHIP_ERROR TimedRequest::HandleResponse(const PayloadHeader & aPayloadHeader, System::PacketBufferHandle && aPayload, - StatusIB & aStatusIB) +CHIP_ERROR TimedRequest::HandleResponse(const PayloadHeader & aPayloadHeader, System::PacketBufferHandle && aPayload) { VerifyOrReturnError(aPayloadHeader.HasMessageType(MsgType::StatusResponse), CHIP_ERROR_INVALID_MESSAGE_TYPE); - ReturnErrorOnFailure(StatusResponse::ProcessStatusResponse(std::move(aPayload), aStatusIB)); - - VerifyOrReturnError(aStatusIB.mStatus == Status::Success, CHIP_ERROR_IM_STATUS_CODE_RECEIVED); - - return CHIP_NO_ERROR; + return StatusResponse::ProcessStatusResponse(std::move(aPayload)); } } // namespace app diff --git a/src/app/TimedRequest.h b/src/app/TimedRequest.h index ef277bf26dd9ef..edfe1d78cf8b6a 100644 --- a/src/app/TimedRequest.h +++ b/src/app/TimedRequest.h @@ -36,8 +36,11 @@ class TimedRequest // Handle a response message (which may not actually be a StatusResponse, // but came in after we sent a timed request). - static CHIP_ERROR HandleResponse(const PayloadHeader & aPayloadHeader, System::PacketBufferHandle && aPayload, - StatusIB & aStatusIB); + // + // If the response is a failure StatusResponse, its status will be + // encapsulated in the CHIP_ERROR this returns. In that case, + // StatusIB::InitFromChipError can be used to extract the status. + static CHIP_ERROR HandleResponse(const PayloadHeader & aPayloadHeader, System::PacketBufferHandle && aPayload); }; } // namespace app diff --git a/src/app/WriteClient.cpp b/src/app/WriteClient.cpp index fcb647adb8922b..90991841ef8c83 100644 --- a/src/app/WriteClient.cpp +++ b/src/app/WriteClient.cpp @@ -304,7 +304,6 @@ CHIP_ERROR WriteClient::OnMessageReceived(Messaging::ExchangeContext * apExchang } CHIP_ERROR err = CHIP_NO_ERROR; - StatusIB status(Protocols::InteractionModel::Status::Failure); // Assert that the exchange context matches the client's current context. // This should never fail because even if SendWriteRequest is called // back-to-back, the second call will call Close() on the first exchange, @@ -313,7 +312,7 @@ CHIP_ERROR WriteClient::OnMessageReceived(Messaging::ExchangeContext * apExchang if (mState == State::AwaitingTimedStatus) { - err = HandleTimedStatus(aPayloadHeader, std::move(aPayload), status); + err = HandleTimedStatus(aPayloadHeader, std::move(aPayload)); // Skip all other processing here (which is for the response to the // write request), no matter whether err is success or not. goto exit; @@ -326,7 +325,7 @@ CHIP_ERROR WriteClient::OnMessageReceived(Messaging::ExchangeContext * apExchang } else if (aPayloadHeader.HasMessageType(Protocols::InteractionModel::MsgType::StatusResponse)) { - err = StatusResponse::ProcessStatusResponse(std::move(aPayload), status); + err = StatusResponse::ProcessStatusResponse(std::move(aPayload)); SuccessOrExit(err); } else @@ -339,7 +338,7 @@ CHIP_ERROR WriteClient::OnMessageReceived(Messaging::ExchangeContext * apExchang { if (err != CHIP_NO_ERROR) { - mpCallback->OnError(this, status, err); + mpCallback->OnError(this, err); } } @@ -359,7 +358,7 @@ void WriteClient::OnResponseTimeout(Messaging::ExchangeContext * apExchangeConte if (mpCallback != nullptr) { - mpCallback->OnError(this, StatusIB(Protocols::InteractionModel::Status::Failure), CHIP_ERROR_TIMEOUT); + mpCallback->OnError(this, CHIP_ERROR_TIMEOUT); } Close(); } @@ -407,10 +406,9 @@ CHIP_ERROR WriteClient::ProcessAttributeStatusIB(AttributeStatusIB::Parser & aAt return err; } -CHIP_ERROR WriteClient::HandleTimedStatus(const PayloadHeader & aPayloadHeader, System::PacketBufferHandle && aPayload, - StatusIB & aStatusIB) +CHIP_ERROR WriteClient::HandleTimedStatus(const PayloadHeader & aPayloadHeader, System::PacketBufferHandle && aPayload) { - ReturnErrorOnFailure(TimedRequest::HandleResponse(aPayloadHeader, std::move(aPayload), aStatusIB)); + ReturnErrorOnFailure(TimedRequest::HandleResponse(aPayloadHeader, std::move(aPayload))); return SendWriteRequest(); } diff --git a/src/app/WriteClient.h b/src/app/WriteClient.h index 90e3307eb875a9..2d62893a88c88a 100644 --- a/src/app/WriteClient.h +++ b/src/app/WriteClient.h @@ -79,16 +79,18 @@ class WriteClient : public Messaging::ExchangeDelegate * * - CHIP_ERROR_TIMEOUT: A response was not received within the expected response timeout. * - CHIP_ERROR_*TLV*: A malformed, non-compliant response was received from the server. + * - CHIP_ERROR encapsulating a StatusIB: If we got a non-path-specific + * status response from the server. In that case, + * StatusIB::InitFromChipError can be used to extract the status. * - CHIP_ERROR*: All other cases. * * The WriteClient object MUST continue to exist after this call is completed. The application shall wait until it * receives an OnDone call before it shuts down the object. * * @param[in] apWriteClient The write client object that initiated the attribute write transaction. - * @param[in] aStatus A status response if we got one; might be Status::Failure if we did not. * @param[in] aError A system error code that conveys the overall error code. */ - virtual void OnError(const WriteClient * apWriteClient, const StatusIB & aStatus, CHIP_ERROR aError) {} + virtual void OnError(const WriteClient * apWriteClient, CHIP_ERROR aError) {} /** * OnDone will be called when WriteClient has finished all work and is reserved for future WriteClient ownership change. @@ -223,10 +225,10 @@ class WriteClient : public Messaging::ExchangeDelegate // Timed Request. The caller is assumed to have already checked that our // exchange context member is the one the message came in on. // - // aStatusIB will be populated with the returned status if we can parse it - // successfully. - CHIP_ERROR HandleTimedStatus(const PayloadHeader & aPayloadHeader, System::PacketBufferHandle && aPayload, - StatusIB & aStatusIB); + // If the server returned an error status response its status will be + // encapsulated in the CHIP_ERROR this returns. In that case, + // StatusIB::InitFromChipError can be used to extract the status. + CHIP_ERROR HandleTimedStatus(const PayloadHeader & aPayloadHeader, System::PacketBufferHandle && aPayload); // Send our queued-up Write Request message. Assumes the exchange is ready // and mPendingWriteData is populated. diff --git a/src/app/clusters/ota-requestor/OTARequestor.cpp b/src/app/clusters/ota-requestor/OTARequestor.cpp index c44d8a1754fb61..9368bf63460159 100644 --- a/src/app/clusters/ota-requestor/OTARequestor.cpp +++ b/src/app/clusters/ota-requestor/OTARequestor.cpp @@ -148,13 +148,13 @@ void OTARequestor::OnQueryImageResponse(void * context, const QueryImageResponse } } -void OTARequestor::OnQueryImageFailure(void * context, EmberAfStatus status) +void OTARequestor::OnQueryImageFailure(void * context, CHIP_ERROR error) { OTARequestor * requestorCore = static_cast(context); VerifyOrDie(requestorCore != nullptr); - ChipLogDetail(SoftwareUpdate, "QueryImage failure response %" PRIu8, status); - requestorCore->RecordErrorUpdateState(UpdateFailureState::kQuerying, CHIP_ERROR_BAD_REQUEST); + ChipLogDetail(SoftwareUpdate, "QueryImage failure response %" CHIP_ERROR_FORMAT, error.Format()); + requestorCore->RecordErrorUpdateState(UpdateFailureState::kQuerying, error); } void OTARequestor::OnApplyUpdateResponse(void * context, const ApplyUpdateResponse::DecodableType & response) @@ -180,24 +180,24 @@ void OTARequestor::OnApplyUpdateResponse(void * context, const ApplyUpdateRespon } } -void OTARequestor::OnApplyUpdateFailure(void * context, EmberAfStatus status) +void OTARequestor::OnApplyUpdateFailure(void * context, CHIP_ERROR error) { OTARequestor * requestorCore = static_cast(context); VerifyOrDie(requestorCore != nullptr); - ChipLogDetail(SoftwareUpdate, "ApplyUpdate failure response %" PRIu8, status); - requestorCore->RecordErrorUpdateState(UpdateFailureState::kApplying, CHIP_ERROR_BAD_REQUEST); + ChipLogDetail(SoftwareUpdate, "ApplyUpdate failure response %" CHIP_ERROR_FORMAT, error.Format()); + requestorCore->RecordErrorUpdateState(UpdateFailureState::kApplying, error); } void OTARequestor::OnNotifyUpdateAppliedResponse(void * context, const app::DataModel::NullObjectType & response) {} -void OTARequestor::OnNotifyUpdateAppliedFailure(void * context, EmberAfStatus status) +void OTARequestor::OnNotifyUpdateAppliedFailure(void * context, CHIP_ERROR error) { OTARequestor * requestorCore = static_cast(context); VerifyOrDie(requestorCore != nullptr); - ChipLogDetail(SoftwareUpdate, "NotifyUpdateApplied failure response %" PRIu8, status); - requestorCore->RecordErrorUpdateState(UpdateFailureState::kNotifying, CHIP_ERROR_BAD_REQUEST); + ChipLogDetail(SoftwareUpdate, "NotifyUpdateApplied failure response %" CHIP_ERROR_FORMAT, error.Format()); + requestorCore->RecordErrorUpdateState(UpdateFailureState::kNotifying, error); } EmberAfStatus OTARequestor::HandleAnnounceOTAProvider(app::CommandHandler * commandObj, diff --git a/src/app/clusters/ota-requestor/OTARequestor.h b/src/app/clusters/ota-requestor/OTARequestor.h index 0f650f78ddd618..8f9f208bb8be22 100644 --- a/src/app/clusters/ota-requestor/OTARequestor.h +++ b/src/app/clusters/ota-requestor/OTARequestor.h @@ -254,19 +254,19 @@ class OTARequestor : public OTARequestorInterface, public BDXDownloader::StateDe * QueryImage callbacks */ static void OnQueryImageResponse(void * context, const QueryImageResponseDecodableType & response); - static void OnQueryImageFailure(void * context, EmberAfStatus status); + static void OnQueryImageFailure(void * context, CHIP_ERROR error); /** * ApplyUpdate callbacks */ static void OnApplyUpdateResponse(void * context, const ApplyUpdateResponseDecodableType & response); - static void OnApplyUpdateFailure(void * context, EmberAfStatus); + static void OnApplyUpdateFailure(void * context, CHIP_ERROR error); /** * NotifyUpdateApplied callbacks */ static void OnNotifyUpdateAppliedResponse(void * context, const app::DataModel::NullObjectType & response); - static void OnNotifyUpdateAppliedFailure(void * context, EmberAfStatus); + static void OnNotifyUpdateAppliedFailure(void * context, CHIP_ERROR error); OTARequestorDriver * mOtaRequestorDriver = nullptr; NodeId mProviderNodeId = kUndefinedNodeId; diff --git a/src/app/tests/TestCommandInteraction.cpp b/src/app/tests/TestCommandInteraction.cpp index 67fcd195fe2c8b..3062cda18bcdc2 100644 --- a/src/app/tests/TestCommandInteraction.cpp +++ b/src/app/tests/TestCommandInteraction.cpp @@ -124,10 +124,9 @@ class MockCommandSenderCallback : public CommandSender::Callback aPath.mClusterId, aPath.mCommandId, aPath.mEndpointId); onResponseCalledTimes++; } - void OnError(const chip::app::CommandSender * apCommandSender, const chip::app::StatusIB & aStatus, CHIP_ERROR aError) override + void OnError(const chip::app::CommandSender * apCommandSender, CHIP_ERROR aError) override { - ChipLogError(Controller, "OnError happens with %" PRIx8 " %" CHIP_ERROR_FORMAT, to_underlying(aStatus.mStatus), - aError.Format()); + ChipLogError(Controller, "OnError happens with %" CHIP_ERROR_FORMAT, aError.Format()); onErrorCalledTimes++; } void OnDone(chip::app::CommandSender * apCommandSender) override { onFinalCalledTimes++; } diff --git a/src/app/tests/TestTimedHandler.cpp b/src/app/tests/TestTimedHandler.cpp index 63d7f1958f42e7..e92fedff593816 100644 --- a/src/app/tests/TestTimedHandler.cpp +++ b/src/app/tests/TestTimedHandler.cpp @@ -67,8 +67,7 @@ class TestExchangeDelegate : public Messaging::ExchangeDelegate mLastMessageWasStatus = aPayloadHeader.HasMessageType(MsgType::StatusResponse); if (mLastMessageWasStatus) { - mStatus.mStatus = Status::Failure; - StatusResponse::ProcessStatusResponse(std::move(aPayload), mStatus); + mError = StatusResponse::ProcessStatusResponse(std::move(aPayload)); } if (mKeepExchangeOpen) { @@ -83,7 +82,7 @@ class TestExchangeDelegate : public Messaging::ExchangeDelegate bool mKeepExchangeOpen = false; bool mNewMessageReceived = false; bool mLastMessageWasStatus = false; - StatusIB mStatus; + CHIP_ERROR mError = CHIP_NO_ERROR; }; } // anonymous namespace @@ -128,7 +127,7 @@ void TestTimedHandler::TestFollowingMessageFastEnough(nlTestSuite * aSuite, void ctx.DrainAndServiceIO(); NL_TEST_ASSERT(aSuite, delegate.mNewMessageReceived); NL_TEST_ASSERT(aSuite, delegate.mLastMessageWasStatus); - NL_TEST_ASSERT(aSuite, delegate.mStatus.mStatus == Status::Success); + NL_TEST_ASSERT(aSuite, delegate.mError == CHIP_NO_ERROR); // Send an empty payload, which will error out but not with the // UNSUPPORTED_ACCESS status we expect if we miss our timeout. @@ -144,7 +143,7 @@ void TestTimedHandler::TestFollowingMessageFastEnough(nlTestSuite * aSuite, void ctx.DrainAndServiceIO(); NL_TEST_ASSERT(aSuite, delegate.mNewMessageReceived); NL_TEST_ASSERT(aSuite, delegate.mLastMessageWasStatus); - NL_TEST_ASSERT(aSuite, delegate.mStatus.mStatus != Status::UnsupportedAccess); + NL_TEST_ASSERT(aSuite, StatusIB(delegate.mError).mStatus != Status::UnsupportedAccess); } void TestTimedHandler::TestInvokeFastEnough(nlTestSuite * aSuite, void * aContext) @@ -178,7 +177,7 @@ void TestTimedHandler::TestFollowingMessageTooSlow(nlTestSuite * aSuite, void * ctx.DrainAndServiceIO(); NL_TEST_ASSERT(aSuite, delegate.mNewMessageReceived); NL_TEST_ASSERT(aSuite, delegate.mLastMessageWasStatus); - NL_TEST_ASSERT(aSuite, delegate.mStatus.mStatus == Status::Success); + NL_TEST_ASSERT(aSuite, delegate.mError == CHIP_NO_ERROR); // Sleep for > 50ms so we miss our time window. chip::test_utils::SleepMillis(75); @@ -197,7 +196,7 @@ void TestTimedHandler::TestFollowingMessageTooSlow(nlTestSuite * aSuite, void * ctx.DrainAndServiceIO(); NL_TEST_ASSERT(aSuite, delegate.mNewMessageReceived); NL_TEST_ASSERT(aSuite, delegate.mLastMessageWasStatus); - NL_TEST_ASSERT(aSuite, delegate.mStatus.mStatus == Status::UnsupportedAccess); + NL_TEST_ASSERT(aSuite, StatusIB(delegate.mError).mStatus == Status::UnsupportedAccess); } void TestTimedHandler::TestInvokeTooSlow(nlTestSuite * aSuite, void * aContext) @@ -229,7 +228,7 @@ void TestTimedHandler::TestInvokeNeverComes(nlTestSuite * aSuite, void * aContex ctx.DrainAndServiceIO(); NL_TEST_ASSERT(aSuite, delegate.mNewMessageReceived); NL_TEST_ASSERT(aSuite, delegate.mLastMessageWasStatus); - NL_TEST_ASSERT(aSuite, delegate.mStatus.mStatus == Status::Success); + NL_TEST_ASSERT(aSuite, delegate.mError == CHIP_NO_ERROR); // Do nothing else; exchange on the server remains open. We are testing to // see whether shutdown cleans it up properly. diff --git a/src/app/tests/TestWriteInteraction.cpp b/src/app/tests/TestWriteInteraction.cpp index 57b893372007de..0f87a42cddcb09 100644 --- a/src/app/tests/TestWriteInteraction.cpp +++ b/src/app/tests/TestWriteInteraction.cpp @@ -76,7 +76,7 @@ class TestWriteClientCallback : public chip::app::WriteClient::Callback { mOnSuccessCalled++; } - void OnError(const WriteClient * apWriteClient, const StatusIB &, CHIP_ERROR chipError) override { mOnErrorCalled++; } + void OnError(const WriteClient * apWriteClient, CHIP_ERROR chipError) override { mOnErrorCalled++; } void OnDone(WriteClient * apWriteClient) override { mOnDoneCalled++; } int mOnSuccessCalled = 0; diff --git a/src/app/tests/integration/chip_im_initiator.cpp b/src/app/tests/integration/chip_im_initiator.cpp index d1975dddfc10f6..85a4662d218189 100644 --- a/src/app/tests/integration/chip_im_initiator.cpp +++ b/src/app/tests/integration/chip_im_initiator.cpp @@ -180,9 +180,9 @@ class MockInteractionModelApp : public chip::app::InteractionModelDelegate, static_cast(gCommandRespCount) * 100 / static_cast(gCommandCount), static_cast(transitTime.count()) / 1000); } - void OnError(const chip::app::CommandSender * apCommandSender, const chip::app::StatusIB & aStatus, CHIP_ERROR aError) override + void OnError(const chip::app::CommandSender * apCommandSender, CHIP_ERROR aError) override { - gCommandRespCount += (aError == CHIP_ERROR_IM_STATUS_CODE_RECEIVED); + gCommandRespCount += (aError.IsIMStatus()); gLastCommandResult = TestCommandResult::kFailure; printf("CommandResponseError happens with %" CHIP_ERROR_FORMAT, aError.Format()); } @@ -200,7 +200,7 @@ class MockInteractionModelApp : public chip::app::InteractionModelDelegate, static_cast(gWriteRespCount) * 100 / static_cast(gWriteCount), static_cast(transitTime.count()) / 1000); } - void OnError(const chip::app::WriteClient * apCommandSender, const chip::app::StatusIB &, CHIP_ERROR aError) override + void OnError(const chip::app::WriteClient * apCommandSender, CHIP_ERROR aError) override { printf("WriteClient::OnError happens with %" CHIP_ERROR_FORMAT, aError.Format()); } diff --git a/src/controller/CHIPCluster.h b/src/controller/CHIPCluster.h index cbf4ab3f12db1b..47ab6ce4521bde 100644 --- a/src/controller/CHIPCluster.h +++ b/src/controller/CHIPCluster.h @@ -40,14 +40,14 @@ namespace Controller { template using CommandResponseSuccessCallback = void(void * context, const T & responseObject); -using CommandResponseFailureCallback = void(void * context, EmberAfStatus status); +using CommandResponseFailureCallback = void(void * context, CHIP_ERROR err); using CommandResponseDoneCallback = void(); using WriteResponseSuccessCallback = void (*)(void * context); -using WriteResponseFailureCallback = void (*)(void * context, EmberAfStatus status); +using WriteResponseFailureCallback = void (*)(void * context, CHIP_ERROR err); using WriteResponseDoneCallback = void (*)(void * context); template using ReadResponseSuccessCallback = void (*)(void * context, T responseData); -using ReadResponseFailureCallback = void (*)(void * context, EmberAfStatus status); +using ReadResponseFailureCallback = void (*)(void * context, CHIP_ERROR err); using SubscriptionEstablishedCallback = void (*)(void * context); class DLL_EXPORT ClusterBase @@ -78,14 +78,12 @@ class DLL_EXPORT ClusterBase { VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, + auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & aPath, const app::StatusIB & aStatus, const typename RequestDataT::ResponseType & responseData) { successCb(context, responseData); }; - auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { - failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); - }; + auto onFailureCb = [context, failureCb](CHIP_ERROR aError) { failureCb(context, aError); }; return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, requestData, onSuccessCb, onFailureCb, timedInvokeTimeoutMs, mTimeout); @@ -122,18 +120,17 @@ class DLL_EXPORT ClusterBase CHIP_ERROR err = CHIP_NO_ERROR; VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath) { + auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & aPath) { if (successCb != nullptr) { successCb(context); } }; - auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, - CHIP_ERROR aError) { + auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * aPath, CHIP_ERROR aError) { if (failureCb != nullptr) { - failureCb(context, app::ToEmberAfStatus(status.mStatus)); + failureCb(context, aError); } }; @@ -202,18 +199,17 @@ class DLL_EXPORT ClusterBase { VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & commandPath, const DecodableType & aData) { + auto onSuccessCb = [context, successCb](const app::ConcreteAttributePath & aPath, const DecodableType & aData) { if (successCb != nullptr) { successCb(context, aData); } }; - auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, - CHIP_ERROR aError) { + auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * aPath, CHIP_ERROR aError) { if (failureCb != nullptr) { - failureCb(context, app::ToEmberAfStatus(status.mStatus)); + failureCb(context, aError); } }; @@ -244,18 +240,17 @@ class DLL_EXPORT ClusterBase { VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - auto onReportCb = [context, reportCb](const app::ConcreteAttributePath & commandPath, const DecodableType & aData) { + auto onReportCb = [context, reportCb](const app::ConcreteAttributePath & aPath, const DecodableType & aData) { if (reportCb != nullptr) { reportCb(context, aData); } }; - auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * commandPath, app::StatusIB status, - CHIP_ERROR aError) { + auto onFailureCb = [context, failureCb](const app::ConcreteAttributePath * aPath, CHIP_ERROR aError) { if (failureCb != nullptr) { - failureCb(context, app::ToEmberAfStatus(status.mStatus)); + failureCb(context, aError); } }; @@ -280,18 +275,17 @@ class DLL_EXPORT ClusterBase { VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - auto onSuccessCb = [context, successCb](const app::EventHeader & eventHeader, const DecodableType & aData) { + auto onSuccessCb = [context, successCb](const app::EventHeader & aEventHeader, const DecodableType & aData) { if (successCb != nullptr) { successCb(context, aData); } }; - auto onFailureCb = [context, failureCb](const app::EventHeader * eventHeader, Protocols::InteractionModel::Status status, - CHIP_ERROR error) { + auto onFailureCb = [context, failureCb](const app::EventHeader * aEventHeader, CHIP_ERROR aError) { if (failureCb != nullptr) { - failureCb(context, app::ToEmberAfStatus(status)); + failureCb(context, aError); } }; @@ -307,18 +301,17 @@ class DLL_EXPORT ClusterBase { VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - auto onReportCb = [context, reportCb](const app::EventHeader & eventHeader, const DecodableType & aData) { + auto onReportCb = [context, reportCb](const app::EventHeader & aEventHeader, const DecodableType & aData) { if (reportCb != nullptr) { reportCb(context, aData); } }; - auto onFailureCb = [context, failureCb](const app::EventHeader * eventHeader, Protocols::InteractionModel::Status status, - CHIP_ERROR aError) { + auto onFailureCb = [context, failureCb](const app::EventHeader * aEventHeader, CHIP_ERROR aError) { if (failureCb != nullptr) { - failureCb(context, app::ToEmberAfStatus(status)); + failureCb(context, aError); } }; diff --git a/src/controller/CHIPDeviceController.cpp b/src/controller/CHIPDeviceController.cpp index 5a7ac7bcbfbdf3..7a8f657ef5dd6c 100644 --- a/src/controller/CHIPDeviceController.cpp +++ b/src/controller/CHIPDeviceController.cpp @@ -394,10 +394,13 @@ void DeviceController::OnVIDReadResponse(void * context, VendorId value) } } -void DeviceController::OnVIDPIDReadFailureResponse(void * context, EmberAfStatus status) +void DeviceController::OnVIDPIDReadFailureResponse(void * context, CHIP_ERROR error) { - ChipLogProgress(Controller, "Failed to read VID/PID for the device. status %d", status); - OnOpenPairingWindowFailureResponse(context, status); + ChipLogProgress(Controller, "Failed to read VID/PID for the device. error %" CHIP_ERROR_FORMAT, error.Format()); + // TODO: The second arg here is wrong, but we need to fix the signature of + // OnOpenPairingWindowFailureResponse and how we send some commands to fix + // that. + OnOpenPairingWindowFailureResponse(context, to_underlying(app::StatusIB(error).mStatus)); } void DeviceController::OnOpenPairingWindowSuccessResponse(void * context) diff --git a/src/controller/CHIPDeviceController.h b/src/controller/CHIPDeviceController.h index b06262a7feb6e5..53e1d3dbb3651f 100644 --- a/src/controller/CHIPDeviceController.h +++ b/src/controller/CHIPDeviceController.h @@ -395,7 +395,7 @@ class DLL_EXPORT DeviceController : public SessionRecoveryDelegate, static void OnPIDReadResponse(void * context, uint16_t value); static void OnVIDReadResponse(void * context, VendorId value); - static void OnVIDPIDReadFailureResponse(void * context, EmberAfStatus status); + static void OnVIDPIDReadFailureResponse(void * context, CHIP_ERROR error); CHIP_ERROR OpenCommissioningWindowInternal(); diff --git a/src/controller/TypedCommandCallback.h b/src/controller/TypedCommandCallback.h index 2d87b3e1c86200..a4acf4d307d0de 100644 --- a/src/controller/TypedCommandCallback.h +++ b/src/controller/TypedCommandCallback.h @@ -41,7 +41,7 @@ class TypedCommandCallback final : public app::CommandSender::Callback public: using OnSuccessCallbackType = std::function; - using OnErrorCallbackType = std::function; + using OnErrorCallbackType = std::function; using OnDoneCallbackType = std::function; /* @@ -61,10 +61,7 @@ class TypedCommandCallback final : public app::CommandSender::Callback void OnResponse(app::CommandSender * apCommandSender, const app::ConcreteCommandPath & aCommandPath, const app::StatusIB & aStatus, TLV::TLVReader * aReader) override; - void OnError(const app::CommandSender * apCommandSender, const app::StatusIB & aStatus, CHIP_ERROR aError) override - { - mOnError(aStatus, aError); - } + void OnError(const app::CommandSender * apCommandSender, CHIP_ERROR aError) override { mOnError(aError); } void OnDone(app::CommandSender * apCommandSender) override { mOnDone(apCommandSender); } @@ -107,9 +104,7 @@ void TypedCommandCallback::OnResponse(app::CommandSender exit: if (err != CHIP_NO_ERROR) { - app::StatusIB status; - status.mStatus = Protocols::InteractionModel::Status::Failure; - mOnError(status, err); + mOnError(err); } } @@ -130,9 +125,7 @@ inline void TypedCommandCallback::OnResponse(app // if (aReader != nullptr) { - app::StatusIB status; - status.mStatus = Protocols::InteractionModel::Status::Failure; - mOnError(status, CHIP_ERROR_SCHEMA_MISMATCH); + mOnError(CHIP_ERROR_SCHEMA_MISMATCH); return; } diff --git a/src/controller/TypedReadCallback.h b/src/controller/TypedReadCallback.h index ad609865a15393..d8e554ed7ffc97 100644 --- a/src/controller/TypedReadCallback.h +++ b/src/controller/TypedReadCallback.h @@ -28,13 +28,20 @@ namespace chip { namespace Controller { /* - * This provides an adapter class that implements InteractionModelEngine::InteractionModelDelegate and provides two additional + * This provides an adapter class that implements ReadClient::Callback and provides three additional * features: * 1. The ability to pass in std::function closures to permit more flexible programming scenarios than are provided by the strict * delegate interface stipulated by by InteractionModelDelegate. * * 2. Automatic decoding of attribute data provided in the TLVReader by InteractionModelDelegate::OnReportData into a decoded * cluster object. + * + * 3. Automatically representing all errors as a CHIP_ERROR (which might + * encapsulate a StatusIB). This could be a path-specific error or it + * could be a general error for the entire request; the distinction is not + * that important, because we only have one path involved. If the + * CHIP_ERROR encapsulates a StatusIB, StatusIB::InitFromChipError can be + * used to extract the status. */ template class TypedReadAttributeCallback final : public app::ReadClient::Callback @@ -42,8 +49,7 @@ class TypedReadAttributeCallback final : public app::ReadClient::Callback public: using OnSuccessCallbackType = std::function; - using OnErrorCallbackType = std::function; + using OnErrorCallbackType = std::function; using OnDoneCallbackType = std::function; using OnSubscriptionEstablishedCallbackType = std::function; @@ -70,7 +76,7 @@ class TypedReadAttributeCallback final : public app::ReadClient::Callback // VerifyOrDie(!aPath.IsListItemOperation()); - VerifyOrExit(aStatus.mStatus == Protocols::InteractionModel::Status::Success, err = CHIP_ERROR_IM_STATUS_CODE_RECEIVED); + VerifyOrExit(aStatus.IsSuccess(), err = aStatus.ToChipError()); VerifyOrExit(aPath.mClusterId == mClusterId && aPath.mAttributeId == mAttributeId, err = CHIP_ERROR_SCHEMA_MISMATCH); VerifyOrExit(apData != nullptr, err = CHIP_ERROR_INVALID_ARGUMENT); @@ -82,23 +88,11 @@ class TypedReadAttributeCallback final : public app::ReadClient::Callback exit: if (err != CHIP_NO_ERROR) { - // - // Override aStatus to indicate an error if something bad happened above. - // - Protocols::InteractionModel::Status imStatus = aStatus.mStatus; - if (aStatus.mStatus == Protocols::InteractionModel::Status::Success) - { - imStatus = Protocols::InteractionModel::Status::Failure; - } - - mOnError(&aPath, imStatus, err); + mOnError(&aPath, err); } } - void OnError(const app::ReadClient * apReadClient, CHIP_ERROR aError) override - { - mOnError(nullptr, Protocols::InteractionModel::Status::Failure, aError); - } + void OnError(const app::ReadClient * apReadClient, CHIP_ERROR aError) override { mOnError(nullptr, aError); } void OnDone(app::ReadClient * apReadClient) override { mOnDone(apReadClient, this); } @@ -124,8 +118,7 @@ class TypedReadEventCallback final : public app::ReadClient::Callback { public: using OnSuccessCallbackType = std::function; - using OnErrorCallbackType = std::function; + using OnErrorCallbackType = std::function; using OnDoneCallbackType = std::function; using OnSubscriptionEstablishedCallbackType = std::function; @@ -154,14 +147,11 @@ class TypedReadEventCallback final : public app::ReadClient::Callback exit: if (err != CHIP_NO_ERROR) { - mOnError(&aEventHeader, Protocols::InteractionModel::Status::Failure, err); + mOnError(&aEventHeader, err); } } - void OnError(const app::ReadClient * apReadClient, CHIP_ERROR aError) override - { - mOnError(nullptr, Protocols::InteractionModel::Status::Failure, aError); - } + void OnError(const app::ReadClient * apReadClient, CHIP_ERROR aError) override { mOnError(nullptr, aError); } void OnDone(app::ReadClient * apReadClient) override { mOnDone(apReadClient, this); } diff --git a/src/controller/WriteInteraction.h b/src/controller/WriteInteraction.h index 09cc527f462515..66b4b8e293259e 100644 --- a/src/controller/WriteInteraction.h +++ b/src/controller/WriteInteraction.h @@ -46,9 +46,8 @@ class WriteCallback final : public app::WriteClient::Callback // // In the latter case, path will be non-null. Otherwise, it shall be null. // - using OnErrorCallbackType = - std::function; - using OnDoneCallbackType = std::function; + using OnErrorCallbackType = std::function; + using OnDoneCallbackType = std::function; WriteCallback(OnSuccessCallbackType aOnSuccess, OnErrorCallbackType aOnError, OnDoneCallbackType aOnDone) : mOnSuccess(aOnSuccess), mOnError(aOnError), mOnDone(aOnDone) @@ -56,20 +55,17 @@ class WriteCallback final : public app::WriteClient::Callback void OnResponse(const app::WriteClient * apWriteClient, const app::ConcreteAttributePath & aPath, app::StatusIB status) override { - if (status.mStatus == Protocols::InteractionModel::Status::Success) + if (status.IsSuccess()) { mOnSuccess(aPath); } else { - mOnError(&aPath, status, CHIP_ERROR_IM_STATUS_CODE_RECEIVED); + mOnError(&aPath, status.ToChipError()); } } - void OnError(const app::WriteClient * apWriteClient, const app::StatusIB & aStatus, CHIP_ERROR aError) override - { - mOnError(nullptr, aStatus, aError); - } + void OnError(const app::WriteClient * apWriteClient, CHIP_ERROR aError) override { mOnError(nullptr, aError); } void OnDone(app::WriteClient * apWriteClient) override { diff --git a/src/controller/java/CHIPDefaultCallbacks.cpp b/src/controller/java/CHIPDefaultCallbacks.cpp index b324503e14dc75..95363535a2247f 100644 --- a/src/controller/java/CHIPDefaultCallbacks.cpp +++ b/src/controller/java/CHIPDefaultCallbacks.cpp @@ -70,7 +70,7 @@ void chip::CHIPDefaultSuccessCallback::CallbackFn(void * context) } chip::CHIPDefaultFailureCallback::CHIPDefaultFailureCallback(jobject javaCallback) : - Callback::Callback(CallbackFn, this) + Callback::Callback(CallbackFn, this) { JNIEnv * env = JniReferences::GetInstance().GetEnvForCurrentThread(); if (env == nullptr) @@ -96,8 +96,9 @@ chip::CHIPDefaultFailureCallback::~CHIPDefaultFailureCallback() env->DeleteGlobalRef(javaCallbackRef); } -void chip::CHIPDefaultFailureCallback::CallbackFn(void * context, uint8_t status) +void chip::CHIPDefaultFailureCallback::CallbackFn(void * context, CHIP_ERROR error) { + chip::app::StatusIB status(error); chip::DeviceLayer::StackUnlock unlock; CHIP_ERROR err = CHIP_NO_ERROR; jmethodID javaMethod; @@ -118,7 +119,10 @@ void chip::CHIPDefaultFailureCallback::CallbackFn(void * context, uint8_t status err = JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onError", "(Ljava/lang/Exception;)V", &javaMethod); SuccessOrExit(err); - err = chip::AndroidClusterExceptions::GetInstance().CreateChipClusterException(env, status, exception); + // TODO: Figure out what to do with the non-StatusIB cases and the cases + // when we have a cluster status? + err = chip::AndroidClusterExceptions::GetInstance().CreateChipClusterException(env, chip::to_underlying(status.mStatus), + exception); SuccessOrExit(err); env->ExceptionClear(); diff --git a/src/controller/java/CHIPDefaultCallbacks.h b/src/controller/java/CHIPDefaultCallbacks.h index 1cefd65f4091c6..78e8304f0f9728 100644 --- a/src/controller/java/CHIPDefaultCallbacks.h +++ b/src/controller/java/CHIPDefaultCallbacks.h @@ -1,7 +1,10 @@ #include +#include #include +#include "zap-generated/CHIPCallbackTypes.h" + namespace chip { /** A success callback that delegates to the Java DefaultClusterCallback.onSuccess(). */ @@ -19,14 +22,14 @@ class CHIPDefaultSuccessCallback : public Callback::Callback +class CHIPDefaultFailureCallback : public Callback::Callback { public: CHIPDefaultFailureCallback(jobject javaCallback); ~CHIPDefaultFailureCallback(); - static void CallbackFn(void * context, uint8_t status); + static void CallbackFn(void * context, CHIP_ERROR error); private: jobject javaCallbackRef; diff --git a/src/controller/java/templates/CHIPCallbackTypes.zapt b/src/controller/java/templates/CHIPCallbackTypes.zapt index 5c5dfa29bd40f5..dc24fa7e64686b 100644 --- a/src/controller/java/templates/CHIPCallbackTypes.zapt +++ b/src/controller/java/templates/CHIPCallbackTypes.zapt @@ -5,7 +5,7 @@ typedef void (*CHIPDefaultSuccessCallbackType)(void *, const chip::app::DataModel::NullObjectType &); typedef void (*CHIPDefaultWriteSuccessCallbackType)(void *); -typedef void (*CHIPDefaultFailureCallbackType)(void *, EmberAfStatus); +typedef void (*CHIPDefaultFailureCallbackType)(void *, CHIP_ERROR); {{#chip_client_clusters}} {{#chip_cluster_responses}} diff --git a/src/controller/java/zap-generated/CHIPCallbackTypes.h b/src/controller/java/zap-generated/CHIPCallbackTypes.h index e0c274ace8e52e..ac6a92e8fcc1f5 100644 --- a/src/controller/java/zap-generated/CHIPCallbackTypes.h +++ b/src/controller/java/zap-generated/CHIPCallbackTypes.h @@ -21,7 +21,7 @@ typedef void (*CHIPDefaultSuccessCallbackType)(void *, const chip::app::DataModel::NullObjectType &); typedef void (*CHIPDefaultWriteSuccessCallbackType)(void *); -typedef void (*CHIPDefaultFailureCallbackType)(void *, EmberAfStatus); +typedef void (*CHIPDefaultFailureCallbackType)(void *, CHIP_ERROR); typedef void (*CHIPAccessControlClusterAclAttributeCallbackType)( void *, const chip::app::Clusters::AccessControl::Attributes::Acl::TypeInfo::DecodableType &); diff --git a/src/controller/python/chip/clusters/Command.py b/src/controller/python/chip/clusters/Command.py index 4c7185be38ef1f..8a6fe939509700 100644 --- a/src/controller/python/chip/clusters/Command.py +++ b/src/controller/python/chip/clusters/Command.py @@ -96,8 +96,7 @@ def handleResponse(self, path: CommandPath, status: Status, response: bytes): def _handleError(self, imError: int, chipError: int, exception: Exception): if exception: self._future.set_exception(exception) - elif chipError != 0 and chipError != 0xCA: - # 0xCA is CHIP_IM_STATUS_CODE_RECEIVED + elif chipError != 0: self._future.set_exception( chip.exceptions.ChipStackError(chipError)) else: diff --git a/src/controller/python/chip/clusters/attribute.cpp b/src/controller/python/chip/clusters/attribute.cpp index 28552bd9bd96e0..7784f79bc5ba1e 100644 --- a/src/controller/python/chip/clusters/attribute.cpp +++ b/src/controller/python/chip/clusters/attribute.cpp @@ -213,7 +213,7 @@ class WriteClientCallback : public WriteClient::Callback to_underlying(aStatus.mStatus)); } - void OnError(const WriteClient * apWriteClient, const StatusIB &, CHIP_ERROR aProtocolError) override + void OnError(const WriteClient * apWriteClient, CHIP_ERROR aProtocolError) override { gOnWriteErrorCallback(mAppContext, aProtocolError.AsInteger()); } diff --git a/src/controller/python/chip/clusters/command.cpp b/src/controller/python/chip/clusters/command.cpp index b3247b7042f3b6..b3ddbfba04b583 100644 --- a/src/controller/python/chip/clusters/command.cpp +++ b/src/controller/python/chip/clusters/command.cpp @@ -74,9 +74,7 @@ class CommandSenderCallback : public CommandSender::Callback CHIP_ERROR err = writer.CopyContainer(TLV::AnonymousTag(), *aData); if (err != CHIP_NO_ERROR) { - app::StatusIB status; - status.mStatus = Protocols::InteractionModel::Status::Failure; - this->OnError(apCommandSender, aStatus, err); + this->OnError(apCommandSender, err); return; } size = writer.GetLengthWritten(); @@ -88,12 +86,16 @@ class CommandSenderCallback : public CommandSender::Callback size); } - void OnError(const CommandSender * apCommandSender, const app::StatusIB & aStatus, CHIP_ERROR aProtocolError) override + void OnError(const CommandSender * apCommandSender, CHIP_ERROR aProtocolError) override { - gOnCommandSenderErrorCallback(mAppContext, to_underlying(aStatus.mStatus), - aStatus.mClusterStatus.HasValue() ? aStatus.mClusterStatus.Value() - : chip::python::kUndefinedClusterStatus, - aProtocolError.AsInteger()); + StatusIB status(aProtocolError); + gOnCommandSenderErrorCallback(mAppContext, to_underlying(status.mStatus), + status.mClusterStatus.ValueOr(chip::python::kUndefinedClusterStatus), + // If we have an actual IM status, pass 0 + // for the error code, because otherwise + // the callee will think we have a stack + // exception. + aProtocolError.IsIMStatus() ? 0 : aProtocolError.AsInteger()); } void OnDone(CommandSender * apCommandSender) override diff --git a/src/controller/python/chip/interaction_model/Delegate.cpp b/src/controller/python/chip/interaction_model/Delegate.cpp index aec920813eb828..aa88b653bc229c 100644 --- a/src/controller/python/chip/interaction_model/Delegate.cpp +++ b/src/controller/python/chip/interaction_model/Delegate.cpp @@ -58,16 +58,12 @@ void PythonInteractionModelDelegate::OnResponse(app::CommandSender * apCommandSe } } -void PythonInteractionModelDelegate::OnError(const app::CommandSender * apCommandSender, const app::StatusIB & aStatus, - CHIP_ERROR aError) +void PythonInteractionModelDelegate::OnError(const app::CommandSender * apCommandSender, CHIP_ERROR aError) { - CommandStatus status{ aStatus.mStatus, - aStatus.mClusterStatus.HasValue() ? aStatus.mClusterStatus.Value() - : chip::python::kUndefinedClusterStatus, - 0, - 0, - 0, - 1 }; + StatusIB serverStatus(aError); + CommandStatus status{ + serverStatus.mStatus, serverStatus.mClusterStatus.ValueOr(chip::python::kUndefinedClusterStatus), 0, 0, 0, 1 + }; if (commandResponseStatusFunct != nullptr) { @@ -78,7 +74,7 @@ void PythonInteractionModelDelegate::OnError(const app::CommandSender * apComman { commandResponseErrorFunct(reinterpret_cast(apCommandSender), aError.AsInteger()); } - DeviceControllerInteractionModelDelegate::OnError(apCommandSender, aStatus, aError); + DeviceControllerInteractionModelDelegate::OnError(apCommandSender, aError); } void pychip_InteractionModelDelegate_SetCommandResponseStatusCallback( diff --git a/src/controller/python/chip/interaction_model/Delegate.h b/src/controller/python/chip/interaction_model/Delegate.h index 9807e320562a38..4f9dbb4cf534a3 100644 --- a/src/controller/python/chip/interaction_model/Delegate.h +++ b/src/controller/python/chip/interaction_model/Delegate.h @@ -95,7 +95,7 @@ class PythonInteractionModelDelegate : public chip::Controller::DeviceController public: void OnResponse(app::CommandSender * apCommandSender, const app::ConcreteCommandPath & aPath, const app::StatusIB & aStatus, TLV::TLVReader * aData) override; - void OnError(const app::CommandSender * apCommandSender, const app::StatusIB & aStatus, CHIP_ERROR aError) override; + void OnError(const app::CommandSender * apCommandSender, CHIP_ERROR aError) override; static PythonInteractionModelDelegate & Instance(); diff --git a/src/controller/tests/TestServerCommandDispatch.cpp b/src/controller/tests/TestServerCommandDispatch.cpp index 457037beb8ad99..a7393625bc23e7 100644 --- a/src/controller/tests/TestServerCommandDispatch.cpp +++ b/src/controller/tests/TestServerCommandDispatch.cpp @@ -142,8 +142,9 @@ void TestCommandInteraction::TestNoHandler(nlTestSuite * apSuite, void * apConte // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [apSuite](const app::StatusIB & aStatus, CHIP_ERROR aError) { - NL_TEST_ASSERT(apSuite, aStatus.mStatus == Protocols::InteractionModel::Status::InvalidCommand); + auto onFailureCb = [apSuite](CHIP_ERROR aError) { + NL_TEST_ASSERT(apSuite, + aError.IsIMStatus() && app::StatusIB(aError).mStatus == Protocols::InteractionModel::Status::InvalidCommand); }; responseDirective = kSendDataResponse; @@ -224,7 +225,7 @@ void TestCommandInteraction::TestDataResponse(nlTestSuite * apSuite, void * apCo // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [&onFailureWasCalled](const app::StatusIB & aStatus, CHIP_ERROR aError) { onFailureWasCalled = true; }; + auto onFailureCb = [&onFailureWasCalled](CHIP_ERROR aError) { onFailureWasCalled = true; }; responseDirective = kSendDataResponse; diff --git a/src/controller/tests/data_model/TestCommands.cpp b/src/controller/tests/data_model/TestCommands.cpp index 52b505a4bdf308..c4bc3ba4881c87 100644 --- a/src/controller/tests/data_model/TestCommands.cpp +++ b/src/controller/tests/data_model/TestCommands.cpp @@ -211,7 +211,7 @@ void TestCommandInteraction::TestDataResponse(nlTestSuite * apSuite, void * apCo // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [&onFailureWasCalled](const app::StatusIB & aStatus, CHIP_ERROR aError) { onFailureWasCalled = true; }; + auto onFailureCb = [&onFailureWasCalled](CHIP_ERROR aError) { onFailureWasCalled = true; }; responseDirective = kSendDataResponse; @@ -250,7 +250,7 @@ void TestCommandInteraction::TestSuccessNoDataResponse(nlTestSuite * apSuite, vo // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [&onFailureWasCalled](const app::StatusIB & aStatus, CHIP_ERROR aError) { onFailureWasCalled = true; }; + auto onFailureCb = [&onFailureWasCalled](CHIP_ERROR aError) { onFailureWasCalled = true; }; responseDirective = kSendSuccessStatusCode; @@ -289,7 +289,7 @@ void TestCommandInteraction::TestAsyncResponse(nlTestSuite * apSuite, void * apC // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [&onFailureWasCalled](const app::StatusIB & aStatus, CHIP_ERROR aError) { onFailureWasCalled = true; }; + auto onFailureCb = [&onFailureWasCalled](CHIP_ERROR aError) { onFailureWasCalled = true; }; responseDirective = kAsync; @@ -337,8 +337,8 @@ void TestCommandInteraction::TestFailure(nlTestSuite * apSuite, void * apContext // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [&onFailureWasCalled, &statusCheck](const app::StatusIB & aStatus, CHIP_ERROR aError) { - statusCheck = (aStatus.mStatus == Protocols::InteractionModel::Status::Failure); + auto onFailureCb = [&onFailureWasCalled, &statusCheck](CHIP_ERROR aError) { + statusCheck = aError.IsIMStatus() && app::StatusIB(aError).mStatus == Protocols::InteractionModel::Status::Failure; onFailureWasCalled = true; }; @@ -380,7 +380,7 @@ void TestCommandInteraction::TestSuccessNoDataResponseWithClusterStatus(nlTestSu // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [&onFailureWasCalled](const app::StatusIB & aStatus, CHIP_ERROR aError) { onFailureWasCalled = true; }; + auto onFailureCb = [&onFailureWasCalled](CHIP_ERROR aError) { onFailureWasCalled = true; }; responseDirective = kSendSuccessStatusCodeWithClusterStatus; @@ -411,9 +411,14 @@ void TestCommandInteraction::TestFailureWithClusterStatus(nlTestSuite * apSuite, // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [&onFailureWasCalled, &statusCheck](const app::StatusIB & aStatus, CHIP_ERROR aError) { - statusCheck = (aStatus.mStatus == Protocols::InteractionModel::Status::Failure && - aStatus.mClusterStatus.Value() == kTestFailureClusterStatus); + auto onFailureCb = [&onFailureWasCalled, &statusCheck](CHIP_ERROR aError) { + statusCheck = aError.IsIMStatus(); + if (statusCheck) + { + app::StatusIB status(aError); + statusCheck = (status.mStatus == Protocols::InteractionModel::Status::Failure && + status.mClusterStatus.Value() == kTestFailureClusterStatus); + } onFailureWasCalled = true; }; diff --git a/src/controller/tests/data_model/TestRead.cpp b/src/controller/tests/data_model/TestRead.cpp index ddd696d0179568..dc74a314a06321 100644 --- a/src/controller/tests/data_model/TestRead.cpp +++ b/src/controller/tests/data_model/TestRead.cpp @@ -189,8 +189,9 @@ void TestReadInteraction::TestReadAttributeResponse(nlTestSuite * apSuite, void // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [&onFailureCbInvoked](const app::ConcreteAttributePath * attributePath, app::StatusIB aIMStatus, - CHIP_ERROR aError) { onFailureCbInvoked = true; }; + auto onFailureCb = [&onFailureCbInvoked](const app::ConcreteAttributePath * attributePath, CHIP_ERROR aError) { + onFailureCbInvoked = true; + }; chip::Controller::ReadAttribute( &ctx.GetExchangeManager(), sessionHandle, kTestEndpointId, onSuccessCb, onFailureCb); @@ -221,8 +222,9 @@ void TestReadInteraction::TestReadEventResponse(nlTestSuite * apSuite, void * ap // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [&onFailureCbInvoked](const app::EventHeader * eventHeader, Protocols::InteractionModel::Status aIMStatus, - CHIP_ERROR aError) { onFailureCbInvoked = true; }; + auto onFailureCb = [&onFailureCbInvoked](const app::EventHeader * eventHeader, CHIP_ERROR aError) { + onFailureCbInvoked = true; + }; chip::Controller::ReadEvent(&ctx.GetExchangeManager(), sessionHandle, kTestEndpointId, onSuccessCb, onFailureCb); @@ -253,9 +255,8 @@ void TestReadInteraction::TestReadAttributeError(nlTestSuite * apSuite, void * a // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [&onFailureCbInvoked, apSuite](const app::ConcreteAttributePath * attributePath, - Protocols::InteractionModel::Status aIMStatus, CHIP_ERROR aError) { - NL_TEST_ASSERT(apSuite, (aError != CHIP_NO_ERROR) && (aIMStatus == Protocols::InteractionModel::Status::Busy)); + auto onFailureCb = [&onFailureCbInvoked, apSuite](const app::ConcreteAttributePath * attributePath, CHIP_ERROR aError) { + NL_TEST_ASSERT(apSuite, aError.IsIMStatus() && app::StatusIB(aError).mStatus == Protocols::InteractionModel::Status::Busy); onFailureCbInvoked = true; }; @@ -288,8 +289,7 @@ void TestReadInteraction::TestReadAttributeTimeout(nlTestSuite * apSuite, void * // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [&onFailureCbInvoked, apSuite](const app::ConcreteAttributePath * attributePath, - Protocols::InteractionModel::Status aIMStatus, CHIP_ERROR aError) { + auto onFailureCb = [&onFailureCbInvoked, apSuite](const app::ConcreteAttributePath * attributePath, CHIP_ERROR aError) { NL_TEST_ASSERT(apSuite, aError == CHIP_ERROR_TIMEOUT); onFailureCbInvoked = true; }; @@ -357,8 +357,9 @@ void TestReadInteraction::TestReadFabricScopedWithoutFabricFilter(nlTestSuite * // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [&onFailureCbInvoked](const app::ConcreteAttributePath * attributePath, app::StatusIB aIMStatus, - CHIP_ERROR aError) { onFailureCbInvoked = true; }; + auto onFailureCb = [&onFailureCbInvoked](const app::ConcreteAttributePath * attributePath, CHIP_ERROR aError) { + onFailureCbInvoked = true; + }; chip::Controller::ReadAttribute( &ctx.GetExchangeManager(), sessionHandle, kTestEndpointId, onSuccessCb, onFailureCb, false /* fabric filtered */); @@ -413,8 +414,9 @@ void TestReadInteraction::TestReadFabricScopedWithFabricFilter(nlTestSuite * apS // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [&onFailureCbInvoked](const app::ConcreteAttributePath * attributePath, app::StatusIB aIMStatus, - CHIP_ERROR aError) { onFailureCbInvoked = true; }; + auto onFailureCb = [&onFailureCbInvoked](const app::ConcreteAttributePath * attributePath, CHIP_ERROR aError) { + onFailureCbInvoked = true; + }; chip::Controller::ReadAttribute( &ctx.GetExchangeManager(), sessionHandle, kTestEndpointId, onSuccessCb, onFailureCb, true /* fabric filtered */); diff --git a/src/controller/tests/data_model/TestWrite.cpp b/src/controller/tests/data_model/TestWrite.cpp index 91e1108e306eaf..40ed9bb67c2b4b 100644 --- a/src/controller/tests/data_model/TestWrite.cpp +++ b/src/controller/tests/data_model/TestWrite.cpp @@ -147,8 +147,9 @@ void TestWriteInteraction::TestDataResponse(nlTestSuite * apSuite, void * apCont // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [&onFailureCbInvoked](const app::ConcreteAttributePath * attributePath, app::StatusIB status, - CHIP_ERROR aError) { onFailureCbInvoked = true; }; + auto onFailureCb = [&onFailureCbInvoked](const app::ConcreteAttributePath * attributePath, CHIP_ERROR aError) { + onFailureCbInvoked = true; + }; chip::Controller::WriteAttribute(sessionHandle, kTestEndpointId, value, onSuccessCb, onFailureCb); @@ -185,8 +186,7 @@ void TestWriteInteraction::TestAttributeError(nlTestSuite * apSuite, void * apCo // Passing of stack variables by reference is only safe because of synchronous completion of the interaction. Otherwise, it's // not safe to do so. - auto onFailureCb = [apSuite, &onFailureCbInvoked](const app::ConcreteAttributePath * attributePath, app::StatusIB status, - CHIP_ERROR aError) { + auto onFailureCb = [apSuite, &onFailureCbInvoked](const app::ConcreteAttributePath * attributePath, CHIP_ERROR aError) { NL_TEST_ASSERT(apSuite, attributePath != nullptr); onFailureCbInvoked = true; }; diff --git a/src/darwin/Framework/CHIP/CHIPCallbackBridgeBase_internal.h b/src/darwin/Framework/CHIP/CHIPCallbackBridgeBase_internal.h index cef8ff70cbf955..9e76c680528a37 100644 --- a/src/darwin/Framework/CHIP/CHIPCallbackBridgeBase_internal.h +++ b/src/darwin/Framework/CHIP/CHIPCallbackBridgeBase_internal.h @@ -25,6 +25,7 @@ #include typedef CHIP_ERROR (^CHIPActionBlock)(chip::Callback::Cancelable * success, chip::Callback::Cancelable * failure); +typedef void (*CHIPDefaultFailureCallbackType)(void *, CHIP_ERROR); template class CHIPCallbackBridge { public: @@ -52,7 +53,7 @@ template class CHIPCallbackBridge { virtual ~CHIPCallbackBridge() {}; - static void OnFailureFn(void * context, uint8_t status) { DispatchFailure(context, [CHIPError errorForZCLErrorCode:status]); } + static void OnFailureFn(void * context, CHIP_ERROR error) { DispatchFailure(context, [CHIPError errorForCHIPErrorCode:error]); } static void DispatchSuccess(void * context, id value) { DispatchCallbackResult(context, nil, value); } @@ -92,5 +93,5 @@ template class CHIPCallbackBridge { bool mKeepAlive; chip::Callback::Callback mSuccess; - chip::Callback::Callback mFailure; + chip::Callback::Callback mFailure; }; diff --git a/src/darwin/Framework/CHIP/CHIPError.mm b/src/darwin/Framework/CHIP/CHIPError.mm index eab2a978150e2f..47fae0d0e87d5d 100644 --- a/src/darwin/Framework/CHIP/CHIPError.mm +++ b/src/darwin/Framework/CHIP/CHIPError.mm @@ -18,8 +18,11 @@ #import "CHIPError.h" #import "CHIPError_Internal.h" +#import #import +#import #import +#import NSString * const CHIPErrorDomain = @"CHIPErrorDomain"; @@ -27,6 +30,16 @@ @implementation CHIPError + (NSError *)errorForCHIPErrorCode:(CHIP_ERROR)errorCode { + if (errorCode == CHIP_NO_ERROR) { + return nil; + } + + if (errorCode.IsIMStatus()) { + chip::app::StatusIB status(errorCode); + // TODO: What about the cluster-specific part of the status? + return [CHIPError errorForZCLErrorCode:chip::app::ToEmberAfStatus(status.mStatus)]; + } + if (errorCode == CHIP_ERROR_INVALID_STRING_LENGTH) { return [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeInvalidStringLength @@ -69,10 +82,6 @@ + (NSError *)errorForCHIPErrorCode:(CHIP_ERROR)errorCode userInfo:@{ NSLocalizedDescriptionKey : NSLocalizedString(@"Value out of range.", nil) }]; } - if (errorCode == CHIP_NO_ERROR) { - return nil; - } - return [NSError errorWithDomain:CHIPErrorDomain code:CHIPErrorCodeUndefinedError userInfo:@{ diff --git a/src/darwin/Framework/CHIP/templates/CHIPCallbackBridge_internal.zapt b/src/darwin/Framework/CHIP/templates/CHIPCallbackBridge_internal.zapt index dc20e898fad878..a90515269cd07b 100644 --- a/src/darwin/Framework/CHIP/templates/CHIPCallbackBridge_internal.zapt +++ b/src/darwin/Framework/CHIP/templates/CHIPCallbackBridge_internal.zapt @@ -10,7 +10,6 @@ typedef void (*CommandSuccessCallback)(void *, const chip::app::DataModel::NullObjectType &); using CHIPCommandSuccessCallbackType = CommandSuccessCallback; typedef void (*CHIPDefaultSuccessCallbackType)(void *); -typedef void (*CHIPDefaultFailureCallbackType)(void *, EmberAfStatus); typedef void (*VendorIdAttributeCallback)(void *, chip::VendorId); typedef void (*NullableVendorIdAttributeCallback)(void *, const chip::app::DataModel::Nullable &); diff --git a/src/darwin/Framework/CHIP/templates/partials/CHIPCallbackBridge.zapt b/src/darwin/Framework/CHIP/templates/partials/CHIPCallbackBridge.zapt index 7c95f990cec70c..6dae81fb84636c 100644 --- a/src/darwin/Framework/CHIP/templates/partials/CHIPCallbackBridge.zapt +++ b/src/darwin/Framework/CHIP/templates/partials/CHIPCallbackBridge.zapt @@ -74,7 +74,7 @@ void CHIP{{> @partial-block}}Bridge::OnSuccessFn(void * context auto * response = [CHIP{{asUpperCamelCase parent.name}}Cluster{{asUpperCamelCase name}}Params new]; {{#chip_cluster_response_arguments}} { - {{>decode_value target=(concat "response." (asStructPropertyName label)) source=(concat "data." (asLowerCamelCase label)) cluster=parent.parent.name errorCode="OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); return;" depth=0}} + {{>decode_value target=(concat "response." (asStructPropertyName label)) source=(concat "data." (asLowerCamelCase label)) cluster=parent.parent.name errorCode="OnFailureFn(context, err); return;" depth=0}} } {{/chip_cluster_response_arguments}} DispatchSuccess(context, response); @@ -85,7 +85,7 @@ void CHIP{{> @partial-block}}Bridge::OnSuccessFn(void * context {{/if}} {{else}} {{asObjectiveCType type ns}} objCValue; - {{>decode_value target="objCValue" source="value" cluster=ns errorCode="OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); return;" depth=0}} + {{>decode_value target="objCValue" source="value" cluster=ns errorCode="OnFailureFn(context, err); return;" depth=0}} DispatchSuccess(context, objCValue); {{/if}} }; diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm b/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm index f4d145dacb3925..ccdd11d4dd2bd7 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm +++ b/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge.mm @@ -761,7 +761,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_3.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -796,7 +796,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_3.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -807,7 +807,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -848,7 +848,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -887,7 +887,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -926,7 +926,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -965,7 +965,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1004,7 +1004,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1043,7 +1043,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1082,7 +1082,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1122,7 +1122,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1166,7 +1166,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1205,7 +1205,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1244,7 +1244,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1283,7 +1283,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1322,7 +1322,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1361,7 +1361,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1400,7 +1400,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1447,7 +1447,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1498,7 +1498,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_2.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1508,7 +1508,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1547,7 +1547,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1586,7 +1586,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1636,7 +1636,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1675,7 +1675,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1714,7 +1714,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1753,7 +1753,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1792,7 +1792,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1833,7 +1833,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1872,7 +1872,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1911,7 +1911,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1950,7 +1950,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -1989,7 +1989,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2028,7 +2028,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2067,7 +2067,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2106,7 +2106,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2145,7 +2145,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2190,7 +2190,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2229,7 +2229,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2268,7 +2268,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2309,7 +2309,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2349,7 +2349,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2397,7 +2397,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2436,7 +2436,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2475,7 +2475,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2514,7 +2514,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2553,7 +2553,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2595,7 +2595,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2642,7 +2642,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_2.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2655,7 +2655,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2694,7 +2694,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2733,7 +2733,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2772,7 +2772,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2811,7 +2811,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2850,7 +2850,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2889,7 +2889,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2928,7 +2928,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -2967,7 +2967,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3014,7 +3014,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3053,7 +3053,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3092,7 +3092,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3136,7 +3136,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3175,7 +3175,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3217,7 +3217,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3256,7 +3256,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3299,7 +3299,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3339,7 +3339,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3378,7 +3378,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3417,7 +3417,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3456,7 +3456,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3499,7 +3499,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3547,7 +3547,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3586,7 +3586,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3626,7 +3626,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3665,7 +3665,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3704,7 +3704,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3743,7 +3743,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3782,7 +3782,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3821,7 +3821,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3860,7 +3860,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3899,7 +3899,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3938,7 +3938,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -3985,7 +3985,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4024,7 +4024,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4063,7 +4063,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4106,7 +4106,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4145,7 +4145,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4184,7 +4184,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4223,7 +4223,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4262,7 +4262,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4304,7 +4304,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4456,7 +4456,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_3.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4474,7 +4474,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_3.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4497,7 +4497,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_4.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4511,7 +4511,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4551,7 +4551,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4590,7 +4590,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4629,7 +4629,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4668,7 +4668,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4724,7 +4724,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4774,7 +4774,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4816,7 +4816,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4868,7 +4868,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4909,7 +4909,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4950,7 +4950,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -4989,7 +4989,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -5035,7 +5035,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -5074,7 +5074,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -5113,7 +5113,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -5152,7 +5152,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -5342,7 +5342,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_1.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -5454,7 +5454,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -5517,7 +5517,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -5651,7 +5651,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_1.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -5683,7 +5683,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_1.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -5872,7 +5872,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -5962,7 +5962,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -6063,7 +6063,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } @@ -6167,7 +6167,7 @@ { // Scope for the error so we will know what it's named CHIP_ERROR err = iter_0.GetStatus(); if (err != CHIP_NO_ERROR) { - OnFailureFn(context, EMBER_ZCL_STATUS_INVALID_VALUE); + OnFailureFn(context, err); return; } } diff --git a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h b/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h index b218522c5cf2e7..4d76ebf66a53a3 100644 --- a/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h +++ b/src/darwin/Framework/CHIP/zap-generated/CHIPCallbackBridge_internal.h @@ -26,7 +26,6 @@ typedef void (*CommandSuccessCallback)(void *, const chip::app::DataModel::NullObjectType &); using CHIPCommandSuccessCallbackType = CommandSuccessCallback; typedef void (*CHIPDefaultSuccessCallbackType)(void *); -typedef void (*CHIPDefaultFailureCallbackType)(void *, EmberAfStatus); typedef void (*VendorIdAttributeCallback)(void *, chip::VendorId); typedef void (*NullableVendorIdAttributeCallback)(void *, const chip::app::DataModel::Nullable &); diff --git a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h index 3c53f9bbee70fb..99435cfb2ffc72 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h @@ -3592,9 +3592,9 @@ static void OnDefaultSuccessResponse(void * context) command->SetCommandExitStatus(CHIP_NO_ERROR); } -static void OnDefaultFailure(void * context, EmberAfStatus status) +static void OnDefaultFailure(void * context, CHIP_ERROR err) { - ChipLogProgress(chipTool, "Default Failure Response: 0x%02x", chip::to_underlying(status)); + ChipLogProgress(chipTool, "Default Failure Response: %" CHIP_ERROR_FORMAT, err.Format()); ModelCommand * command = static_cast(context); command->SetCommandExitStatus(CHIP_ERROR_INTERNAL); diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 57c30eca89bb22..dcc177858908c9 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -255,9 +255,9 @@ class Test_TC_BI_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -265,9 +265,9 @@ class Test_TC_BI_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) @@ -275,16 +275,16 @@ class Test_TC_BI_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(clusterRevision); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint16_t clusterRevision) @@ -313,7 +313,11 @@ class Test_TC_BI_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -333,7 +337,11 @@ class Test_TC_BI_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t clusterRevision) { @@ -355,9 +363,10 @@ class Test_TC_BI_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) + void OnFailureResponse_3(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -374,7 +383,11 @@ class Test_TC_BI_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint16_t clusterRevision) { @@ -487,9 +500,9 @@ class Test_TC_BI_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, bool outOfService) @@ -497,9 +510,9 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(outOfService); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool outOfService) @@ -507,16 +520,16 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(outOfService); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, bool outOfService) @@ -524,9 +537,9 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(outOfService); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, bool presentValue) @@ -534,16 +547,16 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(presentValue); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, bool presentValue) @@ -551,9 +564,9 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(presentValue); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, uint8_t statusFlags) @@ -561,9 +574,9 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(statusFlags); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, uint8_t statusFlags) @@ -571,16 +584,16 @@ class Test_TC_BI_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(statusFlags); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, uint8_t statusFlags) @@ -609,7 +622,11 @@ class Test_TC_BI_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(bool outOfService) { @@ -629,7 +646,11 @@ class Test_TC_BI_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool outOfService) { @@ -651,7 +672,11 @@ class Test_TC_BI_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -666,7 +691,11 @@ class Test_TC_BI_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(bool outOfService) { @@ -686,7 +715,11 @@ class Test_TC_BI_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(bool presentValue) { @@ -708,7 +741,11 @@ class Test_TC_BI_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6() { NextTest(); } @@ -723,7 +760,11 @@ class Test_TC_BI_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(bool presentValue) { @@ -743,7 +784,11 @@ class Test_TC_BI_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(uint8_t statusFlags) { @@ -763,7 +808,11 @@ class Test_TC_BI_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint8_t statusFlags) { @@ -787,9 +836,10 @@ class Test_TC_BI_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) + void OnFailureResponse_10(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -806,7 +856,11 @@ class Test_TC_BI_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(uint8_t statusFlags) { @@ -944,9 +998,9 @@ class Test_TC_BI_2_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, bool presentValue) @@ -954,9 +1008,9 @@ class Test_TC_BI_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(presentValue); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool outOfService) @@ -964,9 +1018,9 @@ class Test_TC_BI_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_2(outOfService); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint8_t statusFlags) @@ -974,9 +1028,9 @@ class Test_TC_BI_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_3(statusFlags); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, bool presentValue) @@ -984,9 +1038,9 @@ class Test_TC_BI_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_4(presentValue); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, bool outOfService) @@ -994,9 +1048,9 @@ class Test_TC_BI_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_5(outOfService); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint8_t statusFlags) @@ -1004,9 +1058,9 @@ class Test_TC_BI_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_6(statusFlags); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, uint8_t statusFlags) @@ -1014,9 +1068,9 @@ class Test_TC_BI_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_7(statusFlags); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, uint8_t statusFlags) @@ -1045,7 +1099,11 @@ class Test_TC_BI_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(bool presentValue) { @@ -1065,7 +1123,11 @@ class Test_TC_BI_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool outOfService) { @@ -1085,7 +1147,11 @@ class Test_TC_BI_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t statusFlags) { @@ -1105,7 +1171,11 @@ class Test_TC_BI_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(bool presentValue) { @@ -1125,7 +1195,11 @@ class Test_TC_BI_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(bool outOfService) { @@ -1145,7 +1219,11 @@ class Test_TC_BI_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint8_t statusFlags) { @@ -1165,7 +1243,11 @@ class Test_TC_BI_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(uint8_t statusFlags) { @@ -1185,7 +1267,11 @@ class Test_TC_BI_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(uint8_t statusFlags) { @@ -1268,9 +1354,9 @@ class Test_TC_BOOL_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -1278,9 +1364,9 @@ class Test_TC_BOOL_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) @@ -1288,16 +1374,16 @@ class Test_TC_BOOL_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(clusterRevision); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint16_t clusterRevision) @@ -1326,7 +1412,11 @@ class Test_TC_BOOL_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -1346,7 +1436,11 @@ class Test_TC_BOOL_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t clusterRevision) { @@ -1368,9 +1462,10 @@ class Test_TC_BOOL_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) + void OnFailureResponse_3(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -1387,7 +1482,11 @@ class Test_TC_BOOL_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint16_t clusterRevision) { @@ -1470,9 +1569,9 @@ class Test_TC_BOOL_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, bool stateValue) @@ -1480,9 +1579,9 @@ class Test_TC_BOOL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(stateValue); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool stateValue) @@ -1490,16 +1589,16 @@ class Test_TC_BOOL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(stateValue); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, bool stateValue) @@ -1528,7 +1627,11 @@ class Test_TC_BOOL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(bool stateValue) { @@ -1548,7 +1651,11 @@ class Test_TC_BOOL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool stateValue) { @@ -1570,9 +1677,10 @@ class Test_TC_BOOL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) + void OnFailureResponse_3(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -1589,7 +1697,11 @@ class Test_TC_BOOL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(bool stateValue) { @@ -1663,9 +1775,9 @@ class Test_TC_BRAC_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -1673,9 +1785,9 @@ class Test_TC_BRAC_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) @@ -1704,7 +1816,11 @@ class Test_TC_BRAC_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -1724,7 +1840,11 @@ class Test_TC_BRAC_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t clusterRevision) { @@ -1798,9 +1918,9 @@ class Test_TC_CC_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -1808,9 +1928,9 @@ class Test_TC_CC_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } @@ -1836,7 +1956,11 @@ class Test_TC_CC_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -1858,9 +1982,10 @@ class Test_TC_CC_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -2544,9 +2669,9 @@ class Test_TC_CC_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint8_t currentHue) @@ -2554,9 +2679,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(currentHue); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t currentHue) @@ -2564,16 +2689,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(currentHue); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint8_t currentHue) @@ -2581,9 +2706,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(currentHue); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint8_t currentSaturation) @@ -2591,9 +2716,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(currentSaturation); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint8_t currentSaturation) @@ -2601,16 +2726,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(currentSaturation); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, uint8_t currentSaturation) @@ -2618,9 +2743,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(currentSaturation); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, uint16_t currentX) @@ -2628,9 +2753,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(currentX); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, uint16_t currentX) @@ -2638,16 +2763,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_10(currentX); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context, uint16_t currentX) @@ -2655,9 +2780,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_12(currentX); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, uint16_t currentY) @@ -2665,9 +2790,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_13(currentY); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context, uint16_t currentY) @@ -2675,16 +2800,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_14(currentY); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_15(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_15(status); + (static_cast(context))->OnFailureResponse_15(error); } static void OnSuccessCallback_15(void * context) { (static_cast(context))->OnSuccessResponse_15(); } - static void OnFailureCallback_16(void * context, EmberAfStatus status) + static void OnFailureCallback_16(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(error); } static void OnSuccessCallback_16(void * context, uint16_t currentY) @@ -2692,9 +2817,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_16(currentY); } - static void OnFailureCallback_17(void * context, EmberAfStatus status) + static void OnFailureCallback_17(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_17(status); + (static_cast(context))->OnFailureResponse_17(error); } static void OnSuccessCallback_17(void * context, uint16_t colorTemperature) @@ -2702,9 +2827,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_17(colorTemperature); } - static void OnFailureCallback_18(void * context, EmberAfStatus status) + static void OnFailureCallback_18(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_18(error); } static void OnSuccessCallback_18(void * context, uint8_t colorMode) @@ -2712,9 +2837,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_18(colorMode); } - static void OnFailureCallback_19(void * context, EmberAfStatus status) + static void OnFailureCallback_19(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_19(status); + (static_cast(context))->OnFailureResponse_19(error); } static void OnSuccessCallback_19(void * context, uint8_t colorControlOptions) @@ -2722,9 +2847,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_19(colorControlOptions); } - static void OnFailureCallback_20(void * context, EmberAfStatus status) + static void OnFailureCallback_20(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_20(status); + (static_cast(context))->OnFailureResponse_20(error); } static void OnSuccessCallback_20(void * context, uint8_t colorControlOptions) @@ -2732,16 +2857,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_20(colorControlOptions); } - static void OnFailureCallback_21(void * context, EmberAfStatus status) + static void OnFailureCallback_21(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_21(status); + (static_cast(context))->OnFailureResponse_21(error); } static void OnSuccessCallback_21(void * context) { (static_cast(context))->OnSuccessResponse_21(); } - static void OnFailureCallback_22(void * context, EmberAfStatus status) + static void OnFailureCallback_22(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_22(status); + (static_cast(context))->OnFailureResponse_22(error); } static void OnSuccessCallback_22(void * context, uint8_t colorControlOptions) @@ -2749,9 +2874,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_22(colorControlOptions); } - static void OnFailureCallback_23(void * context, EmberAfStatus status) + static void OnFailureCallback_23(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_23(status); + (static_cast(context))->OnFailureResponse_23(error); } static void OnSuccessCallback_23(void * context, uint16_t enhancedCurrentHue) @@ -2759,9 +2884,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_23(enhancedCurrentHue); } - static void OnFailureCallback_24(void * context, EmberAfStatus status) + static void OnFailureCallback_24(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_24(status); + (static_cast(context))->OnFailureResponse_24(error); } static void OnSuccessCallback_24(void * context, uint16_t enhancedCurrentHue) @@ -2769,16 +2894,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_24(enhancedCurrentHue); } - static void OnFailureCallback_25(void * context, EmberAfStatus status) + static void OnFailureCallback_25(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_25(status); + (static_cast(context))->OnFailureResponse_25(error); } static void OnSuccessCallback_25(void * context) { (static_cast(context))->OnSuccessResponse_25(); } - static void OnFailureCallback_26(void * context, EmberAfStatus status) + static void OnFailureCallback_26(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_26(status); + (static_cast(context))->OnFailureResponse_26(error); } static void OnSuccessCallback_26(void * context, uint16_t enhancedCurrentHue) @@ -2786,9 +2911,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_26(enhancedCurrentHue); } - static void OnFailureCallback_27(void * context, EmberAfStatus status) + static void OnFailureCallback_27(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_27(status); + (static_cast(context))->OnFailureResponse_27(error); } static void OnSuccessCallback_27(void * context, uint8_t enhancedColorMode) @@ -2796,9 +2921,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_27(enhancedColorMode); } - static void OnFailureCallback_28(void * context, EmberAfStatus status) + static void OnFailureCallback_28(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_28(status); + (static_cast(context))->OnFailureResponse_28(error); } static void OnSuccessCallback_28(void * context, uint8_t colorLoopActive) @@ -2806,9 +2931,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_28(colorLoopActive); } - static void OnFailureCallback_29(void * context, EmberAfStatus status) + static void OnFailureCallback_29(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_29(status); + (static_cast(context))->OnFailureResponse_29(error); } static void OnSuccessCallback_29(void * context, uint8_t colorLoopActive) @@ -2816,16 +2941,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_29(colorLoopActive); } - static void OnFailureCallback_30(void * context, EmberAfStatus status) + static void OnFailureCallback_30(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_30(status); + (static_cast(context))->OnFailureResponse_30(error); } static void OnSuccessCallback_30(void * context) { (static_cast(context))->OnSuccessResponse_30(); } - static void OnFailureCallback_31(void * context, EmberAfStatus status) + static void OnFailureCallback_31(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_31(status); + (static_cast(context))->OnFailureResponse_31(error); } static void OnSuccessCallback_31(void * context, uint8_t colorLoopActive) @@ -2833,9 +2958,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_31(colorLoopActive); } - static void OnFailureCallback_32(void * context, EmberAfStatus status) + static void OnFailureCallback_32(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_32(status); + (static_cast(context))->OnFailureResponse_32(error); } static void OnSuccessCallback_32(void * context, uint8_t colorLoopDirection) @@ -2843,9 +2968,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_32(colorLoopDirection); } - static void OnFailureCallback_33(void * context, EmberAfStatus status) + static void OnFailureCallback_33(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_33(status); + (static_cast(context))->OnFailureResponse_33(error); } static void OnSuccessCallback_33(void * context, uint8_t colorLoopDirection) @@ -2853,16 +2978,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_33(colorLoopDirection); } - static void OnFailureCallback_34(void * context, EmberAfStatus status) + static void OnFailureCallback_34(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_34(status); + (static_cast(context))->OnFailureResponse_34(error); } static void OnSuccessCallback_34(void * context) { (static_cast(context))->OnSuccessResponse_34(); } - static void OnFailureCallback_35(void * context, EmberAfStatus status) + static void OnFailureCallback_35(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_35(status); + (static_cast(context))->OnFailureResponse_35(error); } static void OnSuccessCallback_35(void * context, uint8_t colorLoopDirection) @@ -2870,9 +2995,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_35(colorLoopDirection); } - static void OnFailureCallback_36(void * context, EmberAfStatus status) + static void OnFailureCallback_36(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_36(status); + (static_cast(context))->OnFailureResponse_36(error); } static void OnSuccessCallback_36(void * context, uint16_t colorLoopTime) @@ -2880,9 +3005,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_36(colorLoopTime); } - static void OnFailureCallback_37(void * context, EmberAfStatus status) + static void OnFailureCallback_37(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_37(status); + (static_cast(context))->OnFailureResponse_37(error); } static void OnSuccessCallback_37(void * context, uint16_t colorLoopTime) @@ -2890,16 +3015,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_37(colorLoopTime); } - static void OnFailureCallback_38(void * context, EmberAfStatus status) + static void OnFailureCallback_38(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_38(status); + (static_cast(context))->OnFailureResponse_38(error); } static void OnSuccessCallback_38(void * context) { (static_cast(context))->OnSuccessResponse_38(); } - static void OnFailureCallback_39(void * context, EmberAfStatus status) + static void OnFailureCallback_39(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_39(status); + (static_cast(context))->OnFailureResponse_39(error); } static void OnSuccessCallback_39(void * context, uint16_t colorLoopTime) @@ -2907,9 +3032,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_39(colorLoopTime); } - static void OnFailureCallback_40(void * context, EmberAfStatus status) + static void OnFailureCallback_40(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_40(status); + (static_cast(context))->OnFailureResponse_40(error); } static void OnSuccessCallback_40(void * context, uint16_t colorLoopStartEnhancedHue) @@ -2917,9 +3042,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_40(colorLoopStartEnhancedHue); } - static void OnFailureCallback_41(void * context, EmberAfStatus status) + static void OnFailureCallback_41(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_41(status); + (static_cast(context))->OnFailureResponse_41(error); } static void OnSuccessCallback_41(void * context, uint16_t colorLoopStartEnhancedHue) @@ -2927,16 +3052,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_41(colorLoopStartEnhancedHue); } - static void OnFailureCallback_42(void * context, EmberAfStatus status) + static void OnFailureCallback_42(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_42(status); + (static_cast(context))->OnFailureResponse_42(error); } static void OnSuccessCallback_42(void * context) { (static_cast(context))->OnSuccessResponse_42(); } - static void OnFailureCallback_43(void * context, EmberAfStatus status) + static void OnFailureCallback_43(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_43(status); + (static_cast(context))->OnFailureResponse_43(error); } static void OnSuccessCallback_43(void * context, uint16_t colorLoopStartEnhancedHue) @@ -2944,9 +3069,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_43(colorLoopStartEnhancedHue); } - static void OnFailureCallback_44(void * context, EmberAfStatus status) + static void OnFailureCallback_44(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_44(status); + (static_cast(context))->OnFailureResponse_44(error); } static void OnSuccessCallback_44(void * context, uint16_t colorLoopStoredEnhancedHue) @@ -2954,9 +3079,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_44(colorLoopStoredEnhancedHue); } - static void OnFailureCallback_45(void * context, EmberAfStatus status) + static void OnFailureCallback_45(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_45(status); + (static_cast(context))->OnFailureResponse_45(error); } static void OnSuccessCallback_45(void * context, uint16_t colorLoopStoredEnhancedHue) @@ -2964,16 +3089,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_45(colorLoopStoredEnhancedHue); } - static void OnFailureCallback_46(void * context, EmberAfStatus status) + static void OnFailureCallback_46(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_46(status); + (static_cast(context))->OnFailureResponse_46(error); } static void OnSuccessCallback_46(void * context) { (static_cast(context))->OnSuccessResponse_46(); } - static void OnFailureCallback_47(void * context, EmberAfStatus status) + static void OnFailureCallback_47(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_47(status); + (static_cast(context))->OnFailureResponse_47(error); } static void OnSuccessCallback_47(void * context, uint16_t colorLoopStoredEnhancedHue) @@ -2981,9 +3106,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_47(colorLoopStoredEnhancedHue); } - static void OnFailureCallback_48(void * context, EmberAfStatus status) + static void OnFailureCallback_48(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_48(status); + (static_cast(context))->OnFailureResponse_48(error); } static void OnSuccessCallback_48(void * context, uint16_t colorCapabilities) @@ -2991,9 +3116,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_48(colorCapabilities); } - static void OnFailureCallback_49(void * context, EmberAfStatus status) + static void OnFailureCallback_49(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_49(status); + (static_cast(context))->OnFailureResponse_49(error); } static void OnSuccessCallback_49(void * context, uint16_t colorCapabilities) @@ -3001,16 +3126,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_49(colorCapabilities); } - static void OnFailureCallback_50(void * context, EmberAfStatus status) + static void OnFailureCallback_50(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_50(status); + (static_cast(context))->OnFailureResponse_50(error); } static void OnSuccessCallback_50(void * context) { (static_cast(context))->OnSuccessResponse_50(); } - static void OnFailureCallback_51(void * context, EmberAfStatus status) + static void OnFailureCallback_51(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_51(status); + (static_cast(context))->OnFailureResponse_51(error); } static void OnSuccessCallback_51(void * context, uint16_t colorCapabilities) @@ -3018,9 +3143,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_51(colorCapabilities); } - static void OnFailureCallback_52(void * context, EmberAfStatus status) + static void OnFailureCallback_52(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_52(status); + (static_cast(context))->OnFailureResponse_52(error); } static void OnSuccessCallback_52(void * context, uint16_t colorTempPhysicalMin) @@ -3028,9 +3153,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_52(colorTempPhysicalMin); } - static void OnFailureCallback_53(void * context, EmberAfStatus status) + static void OnFailureCallback_53(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_53(status); + (static_cast(context))->OnFailureResponse_53(error); } static void OnSuccessCallback_53(void * context, uint16_t colorTempPhysicalMin) @@ -3038,16 +3163,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_53(colorTempPhysicalMin); } - static void OnFailureCallback_54(void * context, EmberAfStatus status) + static void OnFailureCallback_54(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_54(status); + (static_cast(context))->OnFailureResponse_54(error); } static void OnSuccessCallback_54(void * context) { (static_cast(context))->OnSuccessResponse_54(); } - static void OnFailureCallback_55(void * context, EmberAfStatus status) + static void OnFailureCallback_55(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_55(status); + (static_cast(context))->OnFailureResponse_55(error); } static void OnSuccessCallback_55(void * context, uint16_t colorTempPhysicalMin) @@ -3055,9 +3180,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_55(colorTempPhysicalMin); } - static void OnFailureCallback_56(void * context, EmberAfStatus status) + static void OnFailureCallback_56(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_56(status); + (static_cast(context))->OnFailureResponse_56(error); } static void OnSuccessCallback_56(void * context, uint16_t colorTempPhysicalMax) @@ -3065,9 +3190,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_56(colorTempPhysicalMax); } - static void OnFailureCallback_57(void * context, EmberAfStatus status) + static void OnFailureCallback_57(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_57(status); + (static_cast(context))->OnFailureResponse_57(error); } static void OnSuccessCallback_57(void * context, uint16_t colorTempPhysicalMax) @@ -3075,16 +3200,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_57(colorTempPhysicalMax); } - static void OnFailureCallback_58(void * context, EmberAfStatus status) + static void OnFailureCallback_58(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_58(status); + (static_cast(context))->OnFailureResponse_58(error); } static void OnSuccessCallback_58(void * context) { (static_cast(context))->OnSuccessResponse_58(); } - static void OnFailureCallback_59(void * context, EmberAfStatus status) + static void OnFailureCallback_59(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_59(status); + (static_cast(context))->OnFailureResponse_59(error); } static void OnSuccessCallback_59(void * context, uint16_t colorTempPhysicalMax) @@ -3092,9 +3217,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_59(colorTempPhysicalMax); } - static void OnFailureCallback_60(void * context, EmberAfStatus status) + static void OnFailureCallback_60(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_60(status); + (static_cast(context))->OnFailureResponse_60(error); } static void OnSuccessCallback_60(void * context, uint16_t coupleColorTempToLevelMinMireds) @@ -3102,16 +3227,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_60(coupleColorTempToLevelMinMireds); } - static void OnFailureCallback_61(void * context, EmberAfStatus status) + static void OnFailureCallback_61(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_61(status); + (static_cast(context))->OnFailureResponse_61(error); } static void OnSuccessCallback_61(void * context) { (static_cast(context))->OnSuccessResponse_61(); } - static void OnFailureCallback_62(void * context, EmberAfStatus status) + static void OnFailureCallback_62(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_62(status); + (static_cast(context))->OnFailureResponse_62(error); } static void OnSuccessCallback_62(void * context, uint16_t coupleColorTempToLevelMinMireds) @@ -3119,9 +3244,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_62(coupleColorTempToLevelMinMireds); } - static void OnFailureCallback_63(void * context, EmberAfStatus status) + static void OnFailureCallback_63(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_63(status); + (static_cast(context))->OnFailureResponse_63(error); } static void OnSuccessCallback_63(void * context, uint16_t startUpColorTemperatureMireds) @@ -3129,16 +3254,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_63(startUpColorTemperatureMireds); } - static void OnFailureCallback_64(void * context, EmberAfStatus status) + static void OnFailureCallback_64(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_64(status); + (static_cast(context))->OnFailureResponse_64(error); } static void OnSuccessCallback_64(void * context) { (static_cast(context))->OnSuccessResponse_64(); } - static void OnFailureCallback_65(void * context, EmberAfStatus status) + static void OnFailureCallback_65(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_65(status); + (static_cast(context))->OnFailureResponse_65(error); } static void OnSuccessCallback_65(void * context, uint16_t startUpColorTemperatureMireds) @@ -3146,9 +3271,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_65(startUpColorTemperatureMireds); } - static void OnFailureCallback_66(void * context, EmberAfStatus status) + static void OnFailureCallback_66(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_66(status); + (static_cast(context))->OnFailureResponse_66(error); } static void OnSuccessCallback_66(void * context, uint16_t remainingTime) @@ -3156,9 +3281,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_66(remainingTime); } - static void OnFailureCallback_67(void * context, EmberAfStatus status) + static void OnFailureCallback_67(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_67(status); + (static_cast(context))->OnFailureResponse_67(error); } static void OnSuccessCallback_67(void * context, uint16_t remainingTime) @@ -3166,16 +3291,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_67(remainingTime); } - static void OnFailureCallback_68(void * context, EmberAfStatus status) + static void OnFailureCallback_68(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_68(status); + (static_cast(context))->OnFailureResponse_68(error); } static void OnSuccessCallback_68(void * context) { (static_cast(context))->OnSuccessResponse_68(); } - static void OnFailureCallback_69(void * context, EmberAfStatus status) + static void OnFailureCallback_69(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_69(status); + (static_cast(context))->OnFailureResponse_69(error); } static void OnSuccessCallback_69(void * context, uint16_t remainingTime) @@ -3183,9 +3308,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_69(remainingTime); } - static void OnFailureCallback_70(void * context, EmberAfStatus status) + static void OnFailureCallback_70(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_70(status); + (static_cast(context))->OnFailureResponse_70(error); } static void OnSuccessCallback_70(void * context, uint8_t driftCompensation) @@ -3193,16 +3318,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_70(driftCompensation); } - static void OnFailureCallback_71(void * context, EmberAfStatus status) + static void OnFailureCallback_71(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_71(status); + (static_cast(context))->OnFailureResponse_71(error); } static void OnSuccessCallback_71(void * context) { (static_cast(context))->OnSuccessResponse_71(); } - static void OnFailureCallback_72(void * context, EmberAfStatus status) + static void OnFailureCallback_72(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_72(status); + (static_cast(context))->OnFailureResponse_72(error); } static void OnSuccessCallback_72(void * context, uint8_t driftCompensation) @@ -3210,9 +3335,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_72(driftCompensation); } - static void OnFailureCallback_73(void * context, EmberAfStatus status) + static void OnFailureCallback_73(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_73(status); + (static_cast(context))->OnFailureResponse_73(error); } static void OnSuccessCallback_73(void * context, chip::CharSpan compensationText) @@ -3220,16 +3345,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_73(compensationText); } - static void OnFailureCallback_74(void * context, EmberAfStatus status) + static void OnFailureCallback_74(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_74(status); + (static_cast(context))->OnFailureResponse_74(error); } static void OnSuccessCallback_74(void * context) { (static_cast(context))->OnSuccessResponse_74(); } - static void OnFailureCallback_75(void * context, EmberAfStatus status) + static void OnFailureCallback_75(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_75(status); + (static_cast(context))->OnFailureResponse_75(error); } static void OnSuccessCallback_75(void * context, chip::CharSpan compensationText) @@ -3237,9 +3362,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_75(compensationText); } - static void OnFailureCallback_76(void * context, EmberAfStatus status) + static void OnFailureCallback_76(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_76(status); + (static_cast(context))->OnFailureResponse_76(error); } static void OnSuccessCallback_76(void * context, uint8_t numberOfPrimaries) @@ -3247,16 +3372,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_76(numberOfPrimaries); } - static void OnFailureCallback_77(void * context, EmberAfStatus status) + static void OnFailureCallback_77(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_77(status); + (static_cast(context))->OnFailureResponse_77(error); } static void OnSuccessCallback_77(void * context) { (static_cast(context))->OnSuccessResponse_77(); } - static void OnFailureCallback_78(void * context, EmberAfStatus status) + static void OnFailureCallback_78(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_78(status); + (static_cast(context))->OnFailureResponse_78(error); } static void OnSuccessCallback_78(void * context, uint8_t numberOfPrimaries) @@ -3264,9 +3389,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_78(numberOfPrimaries); } - static void OnFailureCallback_79(void * context, EmberAfStatus status) + static void OnFailureCallback_79(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_79(status); + (static_cast(context))->OnFailureResponse_79(error); } static void OnSuccessCallback_79(void * context, uint16_t primary1X) @@ -3274,16 +3399,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_79(primary1X); } - static void OnFailureCallback_80(void * context, EmberAfStatus status) + static void OnFailureCallback_80(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_80(status); + (static_cast(context))->OnFailureResponse_80(error); } static void OnSuccessCallback_80(void * context) { (static_cast(context))->OnSuccessResponse_80(); } - static void OnFailureCallback_81(void * context, EmberAfStatus status) + static void OnFailureCallback_81(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_81(status); + (static_cast(context))->OnFailureResponse_81(error); } static void OnSuccessCallback_81(void * context, uint16_t primary1X) @@ -3291,9 +3416,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_81(primary1X); } - static void OnFailureCallback_82(void * context, EmberAfStatus status) + static void OnFailureCallback_82(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_82(status); + (static_cast(context))->OnFailureResponse_82(error); } static void OnSuccessCallback_82(void * context, uint16_t primary1Y) @@ -3301,16 +3426,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_82(primary1Y); } - static void OnFailureCallback_83(void * context, EmberAfStatus status) + static void OnFailureCallback_83(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_83(status); + (static_cast(context))->OnFailureResponse_83(error); } static void OnSuccessCallback_83(void * context) { (static_cast(context))->OnSuccessResponse_83(); } - static void OnFailureCallback_84(void * context, EmberAfStatus status) + static void OnFailureCallback_84(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_84(status); + (static_cast(context))->OnFailureResponse_84(error); } static void OnSuccessCallback_84(void * context, uint16_t primary1Y) @@ -3318,9 +3443,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_84(primary1Y); } - static void OnFailureCallback_85(void * context, EmberAfStatus status) + static void OnFailureCallback_85(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_85(status); + (static_cast(context))->OnFailureResponse_85(error); } static void OnSuccessCallback_85(void * context, uint8_t primary1Intensity) @@ -3328,9 +3453,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_85(primary1Intensity); } - static void OnFailureCallback_86(void * context, EmberAfStatus status) + static void OnFailureCallback_86(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_86(status); + (static_cast(context))->OnFailureResponse_86(error); } static void OnSuccessCallback_86(void * context, uint16_t primary2X) @@ -3338,16 +3463,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_86(primary2X); } - static void OnFailureCallback_87(void * context, EmberAfStatus status) + static void OnFailureCallback_87(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_87(status); + (static_cast(context))->OnFailureResponse_87(error); } static void OnSuccessCallback_87(void * context) { (static_cast(context))->OnSuccessResponse_87(); } - static void OnFailureCallback_88(void * context, EmberAfStatus status) + static void OnFailureCallback_88(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_88(status); + (static_cast(context))->OnFailureResponse_88(error); } static void OnSuccessCallback_88(void * context, uint16_t primary2X) @@ -3355,9 +3480,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_88(primary2X); } - static void OnFailureCallback_89(void * context, EmberAfStatus status) + static void OnFailureCallback_89(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_89(status); + (static_cast(context))->OnFailureResponse_89(error); } static void OnSuccessCallback_89(void * context, uint16_t primary2Y) @@ -3365,16 +3490,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_89(primary2Y); } - static void OnFailureCallback_90(void * context, EmberAfStatus status) + static void OnFailureCallback_90(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_90(status); + (static_cast(context))->OnFailureResponse_90(error); } static void OnSuccessCallback_90(void * context) { (static_cast(context))->OnSuccessResponse_90(); } - static void OnFailureCallback_91(void * context, EmberAfStatus status) + static void OnFailureCallback_91(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_91(status); + (static_cast(context))->OnFailureResponse_91(error); } static void OnSuccessCallback_91(void * context, uint16_t primary2Y) @@ -3382,9 +3507,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_91(primary2Y); } - static void OnFailureCallback_92(void * context, EmberAfStatus status) + static void OnFailureCallback_92(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_92(status); + (static_cast(context))->OnFailureResponse_92(error); } static void OnSuccessCallback_92(void * context, uint8_t primary2Intensity) @@ -3392,9 +3517,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_92(primary2Intensity); } - static void OnFailureCallback_93(void * context, EmberAfStatus status) + static void OnFailureCallback_93(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_93(status); + (static_cast(context))->OnFailureResponse_93(error); } static void OnSuccessCallback_93(void * context, uint16_t primary3X) @@ -3402,16 +3527,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_93(primary3X); } - static void OnFailureCallback_94(void * context, EmberAfStatus status) + static void OnFailureCallback_94(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_94(status); + (static_cast(context))->OnFailureResponse_94(error); } static void OnSuccessCallback_94(void * context) { (static_cast(context))->OnSuccessResponse_94(); } - static void OnFailureCallback_95(void * context, EmberAfStatus status) + static void OnFailureCallback_95(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_95(status); + (static_cast(context))->OnFailureResponse_95(error); } static void OnSuccessCallback_95(void * context, uint16_t primary3X) @@ -3419,9 +3544,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_95(primary3X); } - static void OnFailureCallback_96(void * context, EmberAfStatus status) + static void OnFailureCallback_96(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_96(status); + (static_cast(context))->OnFailureResponse_96(error); } static void OnSuccessCallback_96(void * context, uint16_t primary3Y) @@ -3429,16 +3554,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_96(primary3Y); } - static void OnFailureCallback_97(void * context, EmberAfStatus status) + static void OnFailureCallback_97(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_97(status); + (static_cast(context))->OnFailureResponse_97(error); } static void OnSuccessCallback_97(void * context) { (static_cast(context))->OnSuccessResponse_97(); } - static void OnFailureCallback_98(void * context, EmberAfStatus status) + static void OnFailureCallback_98(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_98(status); + (static_cast(context))->OnFailureResponse_98(error); } static void OnSuccessCallback_98(void * context, uint16_t primary3Y) @@ -3446,9 +3571,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_98(primary3Y); } - static void OnFailureCallback_99(void * context, EmberAfStatus status) + static void OnFailureCallback_99(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_99(status); + (static_cast(context))->OnFailureResponse_99(error); } static void OnSuccessCallback_99(void * context, uint8_t primary3Intensity) @@ -3456,9 +3581,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_99(primary3Intensity); } - static void OnFailureCallback_100(void * context, EmberAfStatus status) + static void OnFailureCallback_100(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_100(status); + (static_cast(context))->OnFailureResponse_100(error); } static void OnSuccessCallback_100(void * context, uint16_t primary4X) @@ -3466,16 +3591,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_100(primary4X); } - static void OnFailureCallback_101(void * context, EmberAfStatus status) + static void OnFailureCallback_101(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_101(status); + (static_cast(context))->OnFailureResponse_101(error); } static void OnSuccessCallback_101(void * context) { (static_cast(context))->OnSuccessResponse_101(); } - static void OnFailureCallback_102(void * context, EmberAfStatus status) + static void OnFailureCallback_102(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_102(status); + (static_cast(context))->OnFailureResponse_102(error); } static void OnSuccessCallback_102(void * context, uint16_t primary4X) @@ -3483,9 +3608,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_102(primary4X); } - static void OnFailureCallback_103(void * context, EmberAfStatus status) + static void OnFailureCallback_103(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_103(status); + (static_cast(context))->OnFailureResponse_103(error); } static void OnSuccessCallback_103(void * context, uint16_t primary4Y) @@ -3493,16 +3618,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_103(primary4Y); } - static void OnFailureCallback_104(void * context, EmberAfStatus status) + static void OnFailureCallback_104(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_104(status); + (static_cast(context))->OnFailureResponse_104(error); } static void OnSuccessCallback_104(void * context) { (static_cast(context))->OnSuccessResponse_104(); } - static void OnFailureCallback_105(void * context, EmberAfStatus status) + static void OnFailureCallback_105(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_105(status); + (static_cast(context))->OnFailureResponse_105(error); } static void OnSuccessCallback_105(void * context, uint16_t primary4Y) @@ -3510,9 +3635,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_105(primary4Y); } - static void OnFailureCallback_106(void * context, EmberAfStatus status) + static void OnFailureCallback_106(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_106(status); + (static_cast(context))->OnFailureResponse_106(error); } static void OnSuccessCallback_106(void * context, uint8_t primary4Intensity) @@ -3520,9 +3645,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_106(primary4Intensity); } - static void OnFailureCallback_107(void * context, EmberAfStatus status) + static void OnFailureCallback_107(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_107(status); + (static_cast(context))->OnFailureResponse_107(error); } static void OnSuccessCallback_107(void * context, uint16_t primary5X) @@ -3530,16 +3655,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_107(primary5X); } - static void OnFailureCallback_108(void * context, EmberAfStatus status) + static void OnFailureCallback_108(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_108(status); + (static_cast(context))->OnFailureResponse_108(error); } static void OnSuccessCallback_108(void * context) { (static_cast(context))->OnSuccessResponse_108(); } - static void OnFailureCallback_109(void * context, EmberAfStatus status) + static void OnFailureCallback_109(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_109(status); + (static_cast(context))->OnFailureResponse_109(error); } static void OnSuccessCallback_109(void * context, uint16_t primary5X) @@ -3547,9 +3672,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_109(primary5X); } - static void OnFailureCallback_110(void * context, EmberAfStatus status) + static void OnFailureCallback_110(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_110(status); + (static_cast(context))->OnFailureResponse_110(error); } static void OnSuccessCallback_110(void * context, uint16_t primary5Y) @@ -3557,16 +3682,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_110(primary5Y); } - static void OnFailureCallback_111(void * context, EmberAfStatus status) + static void OnFailureCallback_111(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_111(status); + (static_cast(context))->OnFailureResponse_111(error); } static void OnSuccessCallback_111(void * context) { (static_cast(context))->OnSuccessResponse_111(); } - static void OnFailureCallback_112(void * context, EmberAfStatus status) + static void OnFailureCallback_112(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_112(status); + (static_cast(context))->OnFailureResponse_112(error); } static void OnSuccessCallback_112(void * context, uint16_t primary5Y) @@ -3574,9 +3699,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_112(primary5Y); } - static void OnFailureCallback_113(void * context, EmberAfStatus status) + static void OnFailureCallback_113(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_113(status); + (static_cast(context))->OnFailureResponse_113(error); } static void OnSuccessCallback_113(void * context, uint8_t primary5Intensity) @@ -3584,9 +3709,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_113(primary5Intensity); } - static void OnFailureCallback_114(void * context, EmberAfStatus status) + static void OnFailureCallback_114(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_114(status); + (static_cast(context))->OnFailureResponse_114(error); } static void OnSuccessCallback_114(void * context, uint16_t primary6X) @@ -3594,16 +3719,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_114(primary6X); } - static void OnFailureCallback_115(void * context, EmberAfStatus status) + static void OnFailureCallback_115(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_115(status); + (static_cast(context))->OnFailureResponse_115(error); } static void OnSuccessCallback_115(void * context) { (static_cast(context))->OnSuccessResponse_115(); } - static void OnFailureCallback_116(void * context, EmberAfStatus status) + static void OnFailureCallback_116(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_116(status); + (static_cast(context))->OnFailureResponse_116(error); } static void OnSuccessCallback_116(void * context, uint16_t primary6X) @@ -3611,9 +3736,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_116(primary6X); } - static void OnFailureCallback_117(void * context, EmberAfStatus status) + static void OnFailureCallback_117(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_117(status); + (static_cast(context))->OnFailureResponse_117(error); } static void OnSuccessCallback_117(void * context, uint16_t primary6Y) @@ -3621,16 +3746,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_117(primary6Y); } - static void OnFailureCallback_118(void * context, EmberAfStatus status) + static void OnFailureCallback_118(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_118(status); + (static_cast(context))->OnFailureResponse_118(error); } static void OnSuccessCallback_118(void * context) { (static_cast(context))->OnSuccessResponse_118(); } - static void OnFailureCallback_119(void * context, EmberAfStatus status) + static void OnFailureCallback_119(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_119(status); + (static_cast(context))->OnFailureResponse_119(error); } static void OnSuccessCallback_119(void * context, uint16_t primary6Y) @@ -3638,9 +3763,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_119(primary6Y); } - static void OnFailureCallback_120(void * context, EmberAfStatus status) + static void OnFailureCallback_120(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_120(status); + (static_cast(context))->OnFailureResponse_120(error); } static void OnSuccessCallback_120(void * context, uint8_t primary6Intensity) @@ -3648,9 +3773,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_120(primary6Intensity); } - static void OnFailureCallback_121(void * context, EmberAfStatus status) + static void OnFailureCallback_121(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_121(status); + (static_cast(context))->OnFailureResponse_121(error); } static void OnSuccessCallback_121(void * context, uint16_t whitePointX) @@ -3658,16 +3783,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_121(whitePointX); } - static void OnFailureCallback_122(void * context, EmberAfStatus status) + static void OnFailureCallback_122(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_122(status); + (static_cast(context))->OnFailureResponse_122(error); } static void OnSuccessCallback_122(void * context) { (static_cast(context))->OnSuccessResponse_122(); } - static void OnFailureCallback_123(void * context, EmberAfStatus status) + static void OnFailureCallback_123(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_123(status); + (static_cast(context))->OnFailureResponse_123(error); } static void OnSuccessCallback_123(void * context, uint16_t whitePointX) @@ -3675,9 +3800,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_123(whitePointX); } - static void OnFailureCallback_124(void * context, EmberAfStatus status) + static void OnFailureCallback_124(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_124(status); + (static_cast(context))->OnFailureResponse_124(error); } static void OnSuccessCallback_124(void * context, uint16_t whitePointY) @@ -3685,16 +3810,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_124(whitePointY); } - static void OnFailureCallback_125(void * context, EmberAfStatus status) + static void OnFailureCallback_125(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_125(status); + (static_cast(context))->OnFailureResponse_125(error); } static void OnSuccessCallback_125(void * context) { (static_cast(context))->OnSuccessResponse_125(); } - static void OnFailureCallback_126(void * context, EmberAfStatus status) + static void OnFailureCallback_126(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_126(status); + (static_cast(context))->OnFailureResponse_126(error); } static void OnSuccessCallback_126(void * context, uint16_t whitePointY) @@ -3702,9 +3827,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_126(whitePointY); } - static void OnFailureCallback_127(void * context, EmberAfStatus status) + static void OnFailureCallback_127(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_127(status); + (static_cast(context))->OnFailureResponse_127(error); } static void OnSuccessCallback_127(void * context, uint16_t colorPointRX) @@ -3712,16 +3837,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_127(colorPointRX); } - static void OnFailureCallback_128(void * context, EmberAfStatus status) + static void OnFailureCallback_128(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_128(status); + (static_cast(context))->OnFailureResponse_128(error); } static void OnSuccessCallback_128(void * context) { (static_cast(context))->OnSuccessResponse_128(); } - static void OnFailureCallback_129(void * context, EmberAfStatus status) + static void OnFailureCallback_129(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_129(status); + (static_cast(context))->OnFailureResponse_129(error); } static void OnSuccessCallback_129(void * context, uint16_t colorPointRX) @@ -3729,9 +3854,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_129(colorPointRX); } - static void OnFailureCallback_130(void * context, EmberAfStatus status) + static void OnFailureCallback_130(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_130(status); + (static_cast(context))->OnFailureResponse_130(error); } static void OnSuccessCallback_130(void * context, uint16_t colorPointRY) @@ -3739,16 +3864,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_130(colorPointRY); } - static void OnFailureCallback_131(void * context, EmberAfStatus status) + static void OnFailureCallback_131(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_131(status); + (static_cast(context))->OnFailureResponse_131(error); } static void OnSuccessCallback_131(void * context) { (static_cast(context))->OnSuccessResponse_131(); } - static void OnFailureCallback_132(void * context, EmberAfStatus status) + static void OnFailureCallback_132(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_132(status); + (static_cast(context))->OnFailureResponse_132(error); } static void OnSuccessCallback_132(void * context, uint16_t colorPointRY) @@ -3756,9 +3881,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_132(colorPointRY); } - static void OnFailureCallback_133(void * context, EmberAfStatus status) + static void OnFailureCallback_133(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_133(status); + (static_cast(context))->OnFailureResponse_133(error); } static void OnSuccessCallback_133(void * context, uint8_t colorPointRIntensity) @@ -3766,16 +3891,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_133(colorPointRIntensity); } - static void OnFailureCallback_134(void * context, EmberAfStatus status) + static void OnFailureCallback_134(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_134(status); + (static_cast(context))->OnFailureResponse_134(error); } static void OnSuccessCallback_134(void * context) { (static_cast(context))->OnSuccessResponse_134(); } - static void OnFailureCallback_135(void * context, EmberAfStatus status) + static void OnFailureCallback_135(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_135(status); + (static_cast(context))->OnFailureResponse_135(error); } static void OnSuccessCallback_135(void * context, uint8_t colorPointRIntensity) @@ -3783,9 +3908,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_135(colorPointRIntensity); } - static void OnFailureCallback_136(void * context, EmberAfStatus status) + static void OnFailureCallback_136(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_136(status); + (static_cast(context))->OnFailureResponse_136(error); } static void OnSuccessCallback_136(void * context, uint16_t colorPointGX) @@ -3793,16 +3918,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_136(colorPointGX); } - static void OnFailureCallback_137(void * context, EmberAfStatus status) + static void OnFailureCallback_137(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_137(status); + (static_cast(context))->OnFailureResponse_137(error); } static void OnSuccessCallback_137(void * context) { (static_cast(context))->OnSuccessResponse_137(); } - static void OnFailureCallback_138(void * context, EmberAfStatus status) + static void OnFailureCallback_138(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_138(status); + (static_cast(context))->OnFailureResponse_138(error); } static void OnSuccessCallback_138(void * context, uint16_t colorPointGX) @@ -3810,9 +3935,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_138(colorPointGX); } - static void OnFailureCallback_139(void * context, EmberAfStatus status) + static void OnFailureCallback_139(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_139(status); + (static_cast(context))->OnFailureResponse_139(error); } static void OnSuccessCallback_139(void * context, uint16_t colorPointGY) @@ -3820,16 +3945,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_139(colorPointGY); } - static void OnFailureCallback_140(void * context, EmberAfStatus status) + static void OnFailureCallback_140(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_140(status); + (static_cast(context))->OnFailureResponse_140(error); } static void OnSuccessCallback_140(void * context) { (static_cast(context))->OnSuccessResponse_140(); } - static void OnFailureCallback_141(void * context, EmberAfStatus status) + static void OnFailureCallback_141(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_141(status); + (static_cast(context))->OnFailureResponse_141(error); } static void OnSuccessCallback_141(void * context, uint16_t colorPointGY) @@ -3837,9 +3962,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_141(colorPointGY); } - static void OnFailureCallback_142(void * context, EmberAfStatus status) + static void OnFailureCallback_142(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_142(status); + (static_cast(context))->OnFailureResponse_142(error); } static void OnSuccessCallback_142(void * context, uint8_t colorPointGIntensity) @@ -3847,16 +3972,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_142(colorPointGIntensity); } - static void OnFailureCallback_143(void * context, EmberAfStatus status) + static void OnFailureCallback_143(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_143(status); + (static_cast(context))->OnFailureResponse_143(error); } static void OnSuccessCallback_143(void * context) { (static_cast(context))->OnSuccessResponse_143(); } - static void OnFailureCallback_144(void * context, EmberAfStatus status) + static void OnFailureCallback_144(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_144(status); + (static_cast(context))->OnFailureResponse_144(error); } static void OnSuccessCallback_144(void * context, uint8_t colorPointGIntensity) @@ -3864,9 +3989,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_144(colorPointGIntensity); } - static void OnFailureCallback_145(void * context, EmberAfStatus status) + static void OnFailureCallback_145(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_145(status); + (static_cast(context))->OnFailureResponse_145(error); } static void OnSuccessCallback_145(void * context, uint16_t colorPointBX) @@ -3874,16 +3999,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_145(colorPointBX); } - static void OnFailureCallback_146(void * context, EmberAfStatus status) + static void OnFailureCallback_146(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_146(status); + (static_cast(context))->OnFailureResponse_146(error); } static void OnSuccessCallback_146(void * context) { (static_cast(context))->OnSuccessResponse_146(); } - static void OnFailureCallback_147(void * context, EmberAfStatus status) + static void OnFailureCallback_147(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_147(status); + (static_cast(context))->OnFailureResponse_147(error); } static void OnSuccessCallback_147(void * context, uint16_t colorPointBX) @@ -3891,9 +4016,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_147(colorPointBX); } - static void OnFailureCallback_148(void * context, EmberAfStatus status) + static void OnFailureCallback_148(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_148(status); + (static_cast(context))->OnFailureResponse_148(error); } static void OnSuccessCallback_148(void * context, uint16_t colorPointBY) @@ -3901,16 +4026,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_148(colorPointBY); } - static void OnFailureCallback_149(void * context, EmberAfStatus status) + static void OnFailureCallback_149(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_149(status); + (static_cast(context))->OnFailureResponse_149(error); } static void OnSuccessCallback_149(void * context) { (static_cast(context))->OnSuccessResponse_149(); } - static void OnFailureCallback_150(void * context, EmberAfStatus status) + static void OnFailureCallback_150(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_150(status); + (static_cast(context))->OnFailureResponse_150(error); } static void OnSuccessCallback_150(void * context, uint16_t colorPointBY) @@ -3918,9 +4043,9 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_150(colorPointBY); } - static void OnFailureCallback_151(void * context, EmberAfStatus status) + static void OnFailureCallback_151(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_151(status); + (static_cast(context))->OnFailureResponse_151(error); } static void OnSuccessCallback_151(void * context, uint8_t colorPointBIntensity) @@ -3928,16 +4053,16 @@ class Test_TC_CC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_151(colorPointBIntensity); } - static void OnFailureCallback_152(void * context, EmberAfStatus status) + static void OnFailureCallback_152(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_152(status); + (static_cast(context))->OnFailureResponse_152(error); } static void OnSuccessCallback_152(void * context) { (static_cast(context))->OnSuccessResponse_152(); } - static void OnFailureCallback_153(void * context, EmberAfStatus status) + static void OnFailureCallback_153(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_153(status); + (static_cast(context))->OnFailureResponse_153(error); } static void OnSuccessCallback_153(void * context, uint8_t colorPointBIntensity) @@ -3966,7 +4091,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t currentHue) { @@ -3986,7 +4115,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t currentHue) { @@ -4010,9 +4143,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) + void OnFailureResponse_3(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -4029,7 +4163,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t currentHue) { @@ -4049,7 +4187,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint8_t currentSaturation) { @@ -4069,7 +4211,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint8_t currentSaturation) { @@ -4093,9 +4239,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) + void OnFailureResponse_7(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -4112,7 +4259,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(uint8_t currentSaturation) { @@ -4132,7 +4283,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint16_t currentX) { @@ -4152,7 +4307,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(uint16_t currentX) { @@ -4176,9 +4335,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) + void OnFailureResponse_11(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -4195,7 +4355,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12(uint16_t currentX) { @@ -4215,7 +4379,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(uint16_t currentY) { @@ -4235,7 +4403,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14(uint16_t currentY) { @@ -4259,9 +4431,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) + void OnFailureResponse_15(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -4278,7 +4451,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_16(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_16(uint16_t currentY) { @@ -4298,7 +4475,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_17(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_17(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_17(uint16_t colorTemperature) { @@ -4319,7 +4500,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_18(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_18(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_18(uint8_t colorMode) { @@ -4340,7 +4525,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_19(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_19(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_19(uint8_t colorControlOptions) { @@ -4360,7 +4549,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_20(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_20(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_20(uint8_t colorControlOptions) { @@ -4382,7 +4575,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_21(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_21(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_21() { NextTest(); } @@ -4397,7 +4594,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_22(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_22(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_22(uint8_t colorControlOptions) { @@ -4417,7 +4618,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_23(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_23(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_23(uint16_t enhancedCurrentHue) { @@ -4437,7 +4642,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_24(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_24(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_24(uint16_t enhancedCurrentHue) { @@ -4459,9 +4668,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_25(EmberAfStatus status) + void OnFailureResponse_25(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -4478,7 +4688,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_26(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_26(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_26(uint16_t enhancedCurrentHue) { @@ -4498,7 +4712,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_27(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_27(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_27(uint8_t enhancedColorMode) { @@ -4517,7 +4735,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_28(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_28(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_28(uint8_t colorLoopActive) { @@ -4537,7 +4759,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_29(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_29(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_29(uint8_t colorLoopActive) { @@ -4559,9 +4785,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_30(EmberAfStatus status) + void OnFailureResponse_30(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -4578,7 +4805,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_31(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_31(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_31(uint8_t colorLoopActive) { @@ -4598,7 +4829,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_32(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_32(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_32(uint8_t colorLoopDirection) { @@ -4618,7 +4853,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_33(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_33(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_33(uint8_t colorLoopDirection) { @@ -4640,9 +4879,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_34(EmberAfStatus status) + void OnFailureResponse_34(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -4659,7 +4899,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_35(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_35(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_35(uint8_t colorLoopDirection) { @@ -4679,7 +4923,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_36(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_36(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_36(uint16_t colorLoopTime) { @@ -4699,7 +4947,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_37(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_37(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_37(uint16_t colorLoopTime) { @@ -4721,9 +4973,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_38(EmberAfStatus status) + void OnFailureResponse_38(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -4740,7 +4993,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_39(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_39(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_39(uint16_t colorLoopTime) { @@ -4761,7 +5018,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_40(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_40(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_40(uint16_t colorLoopStartEnhancedHue) { @@ -4782,7 +5043,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_41(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_41(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_41(uint16_t colorLoopStartEnhancedHue) { @@ -4805,9 +5070,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_42(EmberAfStatus status) + void OnFailureResponse_42(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -4825,7 +5091,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_43(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_43(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_43(uint16_t colorLoopStartEnhancedHue) { @@ -4846,7 +5116,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_44(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_44(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_44(uint16_t colorLoopStoredEnhancedHue) { @@ -4867,7 +5141,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_45(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_45(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_45(uint16_t colorLoopStoredEnhancedHue) { @@ -4890,9 +5168,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_46(EmberAfStatus status) + void OnFailureResponse_46(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -4910,7 +5189,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_47(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_47(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_47(uint16_t colorLoopStoredEnhancedHue) { @@ -4930,7 +5213,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_48(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_48(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_48(uint16_t colorCapabilities) { @@ -4950,7 +5237,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_49(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_49(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_49(uint16_t colorCapabilities) { @@ -4974,9 +5265,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_50(EmberAfStatus status) + void OnFailureResponse_50(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -4993,7 +5285,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_51(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_51(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_51(uint16_t colorCapabilities) { @@ -5013,7 +5309,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_52(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_52(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_52(uint16_t colorTempPhysicalMin) { @@ -5033,7 +5333,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_53(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_53(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_53(uint16_t colorTempPhysicalMin) { @@ -5057,9 +5361,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_54(EmberAfStatus status) + void OnFailureResponse_54(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -5076,7 +5381,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_55(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_55(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_55(uint16_t colorTempPhysicalMin) { @@ -5096,7 +5405,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_56(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_56(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_56(uint16_t colorTempPhysicalMax) { @@ -5116,7 +5429,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_57(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_57(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_57(uint16_t colorTempPhysicalMax) { @@ -5140,9 +5457,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_58(EmberAfStatus status) + void OnFailureResponse_58(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -5159,7 +5477,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_59(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_59(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_59(uint16_t colorTempPhysicalMax) { @@ -5180,9 +5502,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_60(EmberAfStatus status) + void OnFailureResponse_60(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_60(uint16_t coupleColorTempToLevelMinMireds) @@ -5206,9 +5529,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_61(EmberAfStatus status) + void OnFailureResponse_61(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -5226,9 +5550,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_62(EmberAfStatus status) + void OnFailureResponse_62(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_62(uint16_t coupleColorTempToLevelMinMireds) @@ -5250,9 +5575,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_63(EmberAfStatus status) + void OnFailureResponse_63(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_63(uint16_t startUpColorTemperatureMireds) @@ -5278,9 +5604,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_64(EmberAfStatus status) + void OnFailureResponse_64(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_64() { NextTest(); } @@ -5297,9 +5624,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_65(EmberAfStatus status) + void OnFailureResponse_65(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_65(uint16_t startUpColorTemperatureMireds) @@ -5320,9 +5648,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_66(EmberAfStatus status) + void OnFailureResponse_66(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_66(uint16_t remainingTime) @@ -5343,9 +5672,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_67(EmberAfStatus status) + void OnFailureResponse_67(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_67(uint16_t remainingTime) @@ -5370,9 +5700,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_68(EmberAfStatus status) + void OnFailureResponse_68(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -5389,9 +5720,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_69(EmberAfStatus status) + void OnFailureResponse_69(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_69(uint16_t remainingTime) @@ -5412,9 +5744,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_70(EmberAfStatus status) + void OnFailureResponse_70(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_70(uint8_t driftCompensation) @@ -5439,9 +5772,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_71(EmberAfStatus status) + void OnFailureResponse_71(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -5458,9 +5792,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_72(EmberAfStatus status) + void OnFailureResponse_72(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_72(uint8_t driftCompensation) @@ -5481,9 +5816,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_73(EmberAfStatus status) + void OnFailureResponse_73(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_73(chip::CharSpan compensationText) @@ -5507,9 +5843,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_74(EmberAfStatus status) + void OnFailureResponse_74(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -5526,9 +5863,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_75(EmberAfStatus status) + void OnFailureResponse_75(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_75(chip::CharSpan compensationText) @@ -5549,7 +5887,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_76(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_76(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_76(uint8_t numberOfPrimaries) { @@ -5573,9 +5915,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_77(EmberAfStatus status) + void OnFailureResponse_77(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -5592,7 +5935,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_78(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_78(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_78(uint8_t numberOfPrimaries) { @@ -5612,7 +5959,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_79(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_79(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_79(uint16_t primary1X) { @@ -5636,9 +5987,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_80(EmberAfStatus status) + void OnFailureResponse_80(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -5655,7 +6007,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_81(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_81(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_81(uint16_t primary1X) { @@ -5675,7 +6031,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_82(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_82(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_82(uint16_t primary1Y) { @@ -5699,9 +6059,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_83(EmberAfStatus status) + void OnFailureResponse_83(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -5718,7 +6079,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_84(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_84(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_84(uint16_t primary1Y) { @@ -5738,7 +6103,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_85(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_85(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_85(uint8_t primary1Intensity) { @@ -5757,7 +6126,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_86(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_86(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_86(uint16_t primary2X) { @@ -5781,9 +6154,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_87(EmberAfStatus status) + void OnFailureResponse_87(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -5800,7 +6174,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_88(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_88(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_88(uint16_t primary2X) { @@ -5820,7 +6198,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_89(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_89(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_89(uint16_t primary2Y) { @@ -5844,9 +6226,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_90(EmberAfStatus status) + void OnFailureResponse_90(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -5863,7 +6246,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_91(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_91(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_91(uint16_t primary2Y) { @@ -5883,7 +6270,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_92(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_92(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_92(uint8_t primary2Intensity) { @@ -5902,7 +6293,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_93(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_93(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_93(uint16_t primary3X) { @@ -5926,9 +6321,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_94(EmberAfStatus status) + void OnFailureResponse_94(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -5945,7 +6341,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_95(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_95(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_95(uint16_t primary3X) { @@ -5965,7 +6365,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_96(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_96(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_96(uint16_t primary3Y) { @@ -5989,9 +6393,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_97(EmberAfStatus status) + void OnFailureResponse_97(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -6008,7 +6413,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_98(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_98(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_98(uint16_t primary3Y) { @@ -6028,7 +6437,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_99(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_99(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_99(uint8_t primary3Intensity) { @@ -6047,7 +6460,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_100(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_100(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_100(uint16_t primary4X) { @@ -6071,9 +6488,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_101(EmberAfStatus status) + void OnFailureResponse_101(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -6090,7 +6508,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_102(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_102(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_102(uint16_t primary4X) { @@ -6110,7 +6532,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_103(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_103(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_103(uint16_t primary4Y) { @@ -6134,9 +6560,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_104(EmberAfStatus status) + void OnFailureResponse_104(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -6153,7 +6580,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_105(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_105(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_105(uint16_t primary4Y) { @@ -6173,7 +6604,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_106(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_106(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_106(uint8_t primary4Intensity) { @@ -6192,7 +6627,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_107(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_107(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_107(uint16_t primary5X) { @@ -6216,9 +6655,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_108(EmberAfStatus status) + void OnFailureResponse_108(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -6235,7 +6675,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_109(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_109(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_109(uint16_t primary5X) { @@ -6255,7 +6699,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_110(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_110(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_110(uint16_t primary5Y) { @@ -6279,9 +6727,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_111(EmberAfStatus status) + void OnFailureResponse_111(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -6298,7 +6747,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_112(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_112(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_112(uint16_t primary5Y) { @@ -6318,7 +6771,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_113(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_113(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_113(uint8_t primary5Intensity) { @@ -6337,7 +6794,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_114(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_114(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_114(uint16_t primary6X) { @@ -6361,9 +6822,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_115(EmberAfStatus status) + void OnFailureResponse_115(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -6380,7 +6842,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_116(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_116(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_116(uint16_t primary6X) { @@ -6400,7 +6866,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_117(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_117(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_117(uint16_t primary6Y) { @@ -6424,9 +6894,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_118(EmberAfStatus status) + void OnFailureResponse_118(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -6443,7 +6914,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_119(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_119(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_119(uint16_t primary6Y) { @@ -6463,7 +6938,11 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_120(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_120(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_120(uint8_t primary6Intensity) { @@ -6482,9 +6961,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_121(EmberAfStatus status) + void OnFailureResponse_121(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_121(uint16_t whitePointX) @@ -6509,9 +6989,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_122(EmberAfStatus status) + void OnFailureResponse_122(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_122() { NextTest(); } @@ -6527,9 +7008,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_123(EmberAfStatus status) + void OnFailureResponse_123(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_123(uint16_t whitePointX) @@ -6550,9 +7032,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_124(EmberAfStatus status) + void OnFailureResponse_124(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_124(uint16_t whitePointY) @@ -6577,9 +7060,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_125(EmberAfStatus status) + void OnFailureResponse_125(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_125() { NextTest(); } @@ -6595,9 +7079,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_126(EmberAfStatus status) + void OnFailureResponse_126(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_126(uint16_t whitePointY) @@ -6618,9 +7103,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_127(EmberAfStatus status) + void OnFailureResponse_127(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_127(uint16_t colorPointRX) @@ -6645,9 +7131,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_128(EmberAfStatus status) + void OnFailureResponse_128(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_128() { NextTest(); } @@ -6663,9 +7150,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_129(EmberAfStatus status) + void OnFailureResponse_129(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_129(uint16_t colorPointRX) @@ -6686,9 +7174,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_130(EmberAfStatus status) + void OnFailureResponse_130(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_130(uint16_t colorPointRY) @@ -6713,9 +7202,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_131(EmberAfStatus status) + void OnFailureResponse_131(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_131() { NextTest(); } @@ -6731,9 +7221,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_132(EmberAfStatus status) + void OnFailureResponse_132(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_132(uint16_t colorPointRY) @@ -6754,9 +7245,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_133(EmberAfStatus status) + void OnFailureResponse_133(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_133(uint8_t colorPointRIntensity) @@ -6779,9 +7271,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_134(EmberAfStatus status) + void OnFailureResponse_134(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_134() { NextTest(); } @@ -6797,9 +7290,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_135(EmberAfStatus status) + void OnFailureResponse_135(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_135(uint8_t colorPointRIntensity) @@ -6820,9 +7314,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_136(EmberAfStatus status) + void OnFailureResponse_136(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_136(uint16_t colorPointGX) @@ -6847,9 +7342,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_137(EmberAfStatus status) + void OnFailureResponse_137(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_137() { NextTest(); } @@ -6865,9 +7361,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_138(EmberAfStatus status) + void OnFailureResponse_138(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_138(uint16_t colorPointGX) @@ -6888,9 +7385,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_139(EmberAfStatus status) + void OnFailureResponse_139(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_139(uint16_t colorPointGY) @@ -6915,9 +7413,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_140(EmberAfStatus status) + void OnFailureResponse_140(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_140() { NextTest(); } @@ -6933,9 +7432,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_141(EmberAfStatus status) + void OnFailureResponse_141(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_141(uint16_t colorPointGY) @@ -6956,9 +7456,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_142(EmberAfStatus status) + void OnFailureResponse_142(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_142(uint8_t colorPointGIntensity) @@ -6981,9 +7482,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_143(EmberAfStatus status) + void OnFailureResponse_143(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_143() { NextTest(); } @@ -6999,9 +7501,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_144(EmberAfStatus status) + void OnFailureResponse_144(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_144(uint8_t colorPointGIntensity) @@ -7022,9 +7525,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_145(EmberAfStatus status) + void OnFailureResponse_145(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_145(uint16_t colorPointBX) @@ -7049,9 +7553,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_146(EmberAfStatus status) + void OnFailureResponse_146(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_146() { NextTest(); } @@ -7067,9 +7572,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_147(EmberAfStatus status) + void OnFailureResponse_147(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_147(uint16_t colorPointBX) @@ -7090,9 +7596,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_148(EmberAfStatus status) + void OnFailureResponse_148(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_148(uint16_t colorPointBY) @@ -7117,9 +7624,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_149(EmberAfStatus status) + void OnFailureResponse_149(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_149() { NextTest(); } @@ -7135,9 +7643,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_150(EmberAfStatus status) + void OnFailureResponse_150(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_150(uint16_t colorPointBY) @@ -7158,9 +7667,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_151(EmberAfStatus status) + void OnFailureResponse_151(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_151(uint8_t colorPointBIntensity) @@ -7183,9 +7693,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_152(EmberAfStatus status) + void OnFailureResponse_152(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_152() { NextTest(); } @@ -7201,9 +7712,10 @@ class Test_TC_CC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_153(EmberAfStatus status) + void OnFailureResponse_153(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_153(uint8_t colorPointBIntensity) @@ -7302,9 +7814,9 @@ class Test_TC_CC_3_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -7312,9 +7824,9 @@ class Test_TC_CC_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, bool onOff) @@ -7343,15 +7855,19 @@ class Test_TC_CC_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -7366,7 +7882,11 @@ class Test_TC_CC_3_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -7391,15 +7911,19 @@ class Test_TC_CC_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -7419,15 +7943,19 @@ class Test_TC_CC_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -7447,15 +7975,19 @@ class Test_TC_CC_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -7475,15 +8007,19 @@ class Test_TC_CC_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_6(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6() { NextTest(); } @@ -7498,15 +8034,19 @@ class Test_TC_CC_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_7(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -7521,7 +8061,11 @@ class Test_TC_CC_3_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(bool onOff) { @@ -7619,9 +8163,9 @@ class Test_TC_CC_3_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -7629,9 +8173,9 @@ class Test_TC_CC_3_2 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, bool onOff) @@ -7660,15 +8204,19 @@ class Test_TC_CC_3_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -7683,7 +8231,11 @@ class Test_TC_CC_3_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -7707,15 +8259,19 @@ class Test_TC_CC_3_2 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -7734,15 +8290,19 @@ class Test_TC_CC_3_2 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -7761,15 +8321,19 @@ class Test_TC_CC_3_2 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -7788,15 +8352,19 @@ class Test_TC_CC_3_2 : public TestCommand (static_cast(context))->OnSuccessResponse_6(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_6(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6() { NextTest(); } @@ -7811,15 +8379,19 @@ class Test_TC_CC_3_2 : public TestCommand (static_cast(context))->OnSuccessResponse_7(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_7(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -7834,7 +8406,11 @@ class Test_TC_CC_3_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(bool onOff) { @@ -7924,9 +8500,9 @@ class Test_TC_CC_3_3 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -7934,9 +8510,9 @@ class Test_TC_CC_3_3 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, bool onOff) @@ -7965,15 +8541,19 @@ class Test_TC_CC_3_3 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -7988,7 +8568,11 @@ class Test_TC_CC_3_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -8013,15 +8597,19 @@ class Test_TC_CC_3_3 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -8041,15 +8629,19 @@ class Test_TC_CC_3_3 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -8064,15 +8656,19 @@ class Test_TC_CC_3_3 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -8087,7 +8683,11 @@ class Test_TC_CC_3_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(bool onOff) { @@ -8173,9 +8773,9 @@ class Test_TC_CC_4_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -8183,9 +8783,9 @@ class Test_TC_CC_4_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, bool onOff) @@ -8214,15 +8814,19 @@ class Test_TC_CC_4_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -8237,7 +8841,11 @@ class Test_TC_CC_4_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -8261,15 +8869,19 @@ class Test_TC_CC_4_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -8284,15 +8896,19 @@ class Test_TC_CC_4_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -8307,7 +8923,11 @@ class Test_TC_CC_4_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(bool onOff) { @@ -8413,9 +9033,9 @@ class Test_TC_CC_4_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -8423,9 +9043,9 @@ class Test_TC_CC_4_2 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, bool onOff) @@ -8454,15 +9074,19 @@ class Test_TC_CC_4_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -8477,7 +9101,11 @@ class Test_TC_CC_4_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -8501,15 +9129,19 @@ class Test_TC_CC_4_2 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -8528,15 +9160,19 @@ class Test_TC_CC_4_2 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -8555,15 +9191,19 @@ class Test_TC_CC_4_2 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -8582,15 +9222,19 @@ class Test_TC_CC_4_2 : public TestCommand (static_cast(context))->OnSuccessResponse_6(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_6(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6() { NextTest(); } @@ -8609,15 +9253,19 @@ class Test_TC_CC_4_2 : public TestCommand (static_cast(context))->OnSuccessResponse_7(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_7(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -8636,15 +9284,19 @@ class Test_TC_CC_4_2 : public TestCommand (static_cast(context))->OnSuccessResponse_8(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_8(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8() { NextTest(); } @@ -8659,15 +9311,19 @@ class Test_TC_CC_4_2 : public TestCommand (static_cast(context))->OnSuccessResponse_9(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_9(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9() { NextTest(); } @@ -8682,7 +9338,11 @@ class Test_TC_CC_4_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(bool onOff) { @@ -8772,9 +9432,9 @@ class Test_TC_CC_4_3 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -8782,9 +9442,9 @@ class Test_TC_CC_4_3 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, bool onOff) @@ -8813,15 +9473,19 @@ class Test_TC_CC_4_3 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -8836,7 +9500,11 @@ class Test_TC_CC_4_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -8861,15 +9529,19 @@ class Test_TC_CC_4_3 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -8889,15 +9561,19 @@ class Test_TC_CC_4_3 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -8912,15 +9588,19 @@ class Test_TC_CC_4_3 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -8935,7 +9615,11 @@ class Test_TC_CC_4_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(bool onOff) { @@ -9021,9 +9705,9 @@ class Test_TC_CC_4_4 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -9031,9 +9715,9 @@ class Test_TC_CC_4_4 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, bool onOff) @@ -9062,15 +9746,19 @@ class Test_TC_CC_4_4 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -9085,7 +9773,11 @@ class Test_TC_CC_4_4 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -9110,15 +9802,19 @@ class Test_TC_CC_4_4 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -9133,15 +9829,19 @@ class Test_TC_CC_4_4 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -9156,7 +9856,11 @@ class Test_TC_CC_4_4 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(bool onOff) { @@ -9242,9 +9946,9 @@ class Test_TC_CC_5_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -9252,9 +9956,9 @@ class Test_TC_CC_5_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, bool onOff) @@ -9283,15 +9987,19 @@ class Test_TC_CC_5_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -9306,7 +10014,11 @@ class Test_TC_CC_5_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -9331,15 +10043,19 @@ class Test_TC_CC_5_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -9354,15 +10070,19 @@ class Test_TC_CC_5_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -9377,7 +10097,11 @@ class Test_TC_CC_5_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(bool onOff) { @@ -9467,9 +10191,9 @@ class Test_TC_CC_5_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -9477,9 +10201,9 @@ class Test_TC_CC_5_2 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, bool onOff) @@ -9508,15 +10232,19 @@ class Test_TC_CC_5_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -9531,7 +10259,11 @@ class Test_TC_CC_5_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -9555,15 +10287,19 @@ class Test_TC_CC_5_2 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -9580,15 +10316,19 @@ class Test_TC_CC_5_2 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -9603,15 +10343,19 @@ class Test_TC_CC_5_2 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -9626,7 +10370,11 @@ class Test_TC_CC_5_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(bool onOff) { @@ -9712,9 +10460,9 @@ class Test_TC_CC_5_3 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -9722,9 +10470,9 @@ class Test_TC_CC_5_3 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, bool onOff) @@ -9753,15 +10501,19 @@ class Test_TC_CC_5_3 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -9776,7 +10528,11 @@ class Test_TC_CC_5_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -9801,15 +10557,19 @@ class Test_TC_CC_5_3 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -9824,15 +10584,19 @@ class Test_TC_CC_5_3 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -9847,7 +10611,11 @@ class Test_TC_CC_5_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(bool onOff) { @@ -9933,9 +10701,9 @@ class Test_TC_CC_6_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -9943,9 +10711,9 @@ class Test_TC_CC_6_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, bool onOff) @@ -9974,15 +10742,19 @@ class Test_TC_CC_6_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -9997,7 +10769,11 @@ class Test_TC_CC_6_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -10021,15 +10797,19 @@ class Test_TC_CC_6_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -10044,15 +10824,19 @@ class Test_TC_CC_6_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -10067,7 +10851,11 @@ class Test_TC_CC_6_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(bool onOff) { @@ -10161,9 +10949,9 @@ class Test_TC_CC_6_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -10171,9 +10959,9 @@ class Test_TC_CC_6_2 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, bool onOff) @@ -10202,15 +10990,19 @@ class Test_TC_CC_6_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -10225,7 +11017,11 @@ class Test_TC_CC_6_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -10251,15 +11047,19 @@ class Test_TC_CC_6_2 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -10280,15 +11080,19 @@ class Test_TC_CC_6_2 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -10309,15 +11113,19 @@ class Test_TC_CC_6_2 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -10332,15 +11140,19 @@ class Test_TC_CC_6_2 : public TestCommand (static_cast(context))->OnSuccessResponse_6(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_6(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6() { NextTest(); } @@ -10355,7 +11167,11 @@ class Test_TC_CC_6_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(bool onOff) { @@ -10445,9 +11261,9 @@ class Test_TC_CC_6_3 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -10455,9 +11271,9 @@ class Test_TC_CC_6_3 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, bool onOff) @@ -10486,15 +11302,19 @@ class Test_TC_CC_6_3 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -10509,7 +11329,11 @@ class Test_TC_CC_6_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -10536,15 +11360,19 @@ class Test_TC_CC_6_3 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -10566,15 +11394,19 @@ class Test_TC_CC_6_3 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -10589,15 +11421,19 @@ class Test_TC_CC_6_3 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -10612,7 +11448,11 @@ class Test_TC_CC_6_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(bool onOff) { @@ -10703,9 +11543,9 @@ class Test_TC_CC_7_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -10713,9 +11553,9 @@ class Test_TC_CC_7_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint16_t remainingTime) @@ -10723,9 +11563,9 @@ class Test_TC_CC_7_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(remainingTime); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, bool onOff) @@ -10754,15 +11594,19 @@ class Test_TC_CC_7_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -10777,7 +11621,11 @@ class Test_TC_CC_7_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -10802,15 +11650,19 @@ class Test_TC_CC_7_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -10825,7 +11677,11 @@ class Test_TC_CC_7_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint16_t remainingTime) { @@ -10845,15 +11701,19 @@ class Test_TC_CC_7_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -10868,7 +11728,11 @@ class Test_TC_CC_7_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(bool onOff) { @@ -10966,9 +11830,9 @@ class Test_TC_CC_7_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -10976,9 +11840,9 @@ class Test_TC_CC_7_2 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, bool onOff) @@ -11007,15 +11871,19 @@ class Test_TC_CC_7_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -11030,7 +11898,11 @@ class Test_TC_CC_7_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -11054,15 +11926,19 @@ class Test_TC_CC_7_2 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -11081,15 +11957,19 @@ class Test_TC_CC_7_2 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -11108,15 +11988,19 @@ class Test_TC_CC_7_2 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -11135,15 +12019,19 @@ class Test_TC_CC_7_2 : public TestCommand (static_cast(context))->OnSuccessResponse_6(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_6(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6() { NextTest(); } @@ -11158,15 +12046,19 @@ class Test_TC_CC_7_2 : public TestCommand (static_cast(context))->OnSuccessResponse_7(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_7(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -11181,7 +12073,11 @@ class Test_TC_CC_7_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(bool onOff) { @@ -11271,9 +12167,9 @@ class Test_TC_CC_7_3 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -11281,9 +12177,9 @@ class Test_TC_CC_7_3 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, bool onOff) @@ -11312,15 +12208,19 @@ class Test_TC_CC_7_3 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -11335,7 +12235,11 @@ class Test_TC_CC_7_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -11360,15 +12264,19 @@ class Test_TC_CC_7_3 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -11388,15 +12296,19 @@ class Test_TC_CC_7_3 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -11411,15 +12323,19 @@ class Test_TC_CC_7_3 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -11434,7 +12350,11 @@ class Test_TC_CC_7_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(bool onOff) { @@ -11520,9 +12440,9 @@ class Test_TC_CC_7_4 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -11530,9 +12450,9 @@ class Test_TC_CC_7_4 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, bool onOff) @@ -11561,15 +12481,19 @@ class Test_TC_CC_7_4 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -11584,7 +12508,11 @@ class Test_TC_CC_7_4 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -11609,15 +12537,19 @@ class Test_TC_CC_7_4 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -11632,15 +12564,19 @@ class Test_TC_CC_7_4 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -11655,7 +12591,11 @@ class Test_TC_CC_7_4 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(bool onOff) { @@ -11785,9 +12725,9 @@ class Test_TC_CC_8_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -11795,9 +12735,9 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint8_t colorLoopDirection) @@ -11805,9 +12745,9 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(colorLoopDirection); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint16_t colorLoopTime) @@ -11815,9 +12755,9 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(colorLoopTime); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint16_t colorLoopStartEnhancedHue) @@ -11825,9 +12765,9 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(colorLoopStartEnhancedHue); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, uint8_t colorLoopActive) @@ -11835,9 +12775,9 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(colorLoopActive); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, uint8_t colorLoopActive) @@ -11845,9 +12785,9 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(colorLoopActive); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, uint8_t colorLoopDirection) @@ -11855,9 +12795,9 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_11(colorLoopDirection); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context, uint16_t colorLoopTime) @@ -11865,9 +12805,9 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_12(colorLoopTime); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context, uint8_t colorLoopDirection) @@ -11875,9 +12815,9 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_14(colorLoopDirection); } - static void OnFailureCallback_16(void * context, EmberAfStatus status) + static void OnFailureCallback_16(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(error); } static void OnSuccessCallback_16(void * context, bool onOff) @@ -11906,15 +12846,19 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -11929,7 +12873,11 @@ class Test_TC_CC_8_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -11956,15 +12904,19 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -11979,7 +12931,11 @@ class Test_TC_CC_8_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t colorLoopDirection) { @@ -11999,7 +12955,11 @@ class Test_TC_CC_8_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint16_t colorLoopTime) { @@ -12020,7 +12980,11 @@ class Test_TC_CC_8_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint16_t colorLoopStartEnhancedHue) { @@ -12040,7 +13004,11 @@ class Test_TC_CC_8_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(uint8_t colorLoopActive) { @@ -12067,15 +13035,19 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_8(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8() { NextTest(); } @@ -12090,7 +13062,11 @@ class Test_TC_CC_8_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint8_t colorLoopActive) { @@ -12117,15 +13093,19 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_10(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_10(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10() { NextTest(); } @@ -12140,7 +13120,11 @@ class Test_TC_CC_8_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(uint8_t colorLoopDirection) { @@ -12160,7 +13144,11 @@ class Test_TC_CC_8_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12(uint16_t colorLoopTime) { @@ -12187,15 +13175,19 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_13(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_13(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13() { NextTest(); } @@ -12210,7 +13202,11 @@ class Test_TC_CC_8_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14(uint8_t colorLoopDirection) { @@ -12230,15 +13226,19 @@ class Test_TC_CC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_15(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_15(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_15(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15() { NextTest(); } @@ -12253,7 +13253,11 @@ class Test_TC_CC_8_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_16(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_16(bool onOff) { @@ -12623,9 +13627,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -12633,9 +13637,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint8_t colorLoopActive) @@ -12643,9 +13647,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(colorLoopActive); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint8_t colorLoopDirection) @@ -12653,9 +13657,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(colorLoopDirection); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, uint16_t colorLoopTime) @@ -12663,9 +13667,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(colorLoopTime); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, uint16_t colorLoopStartEnhancedHue) @@ -12673,9 +13677,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_10(colorLoopStartEnhancedHue); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context, uint8_t colorLoopActive) @@ -12683,9 +13687,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_12(colorLoopActive); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context, uint8_t colorLoopActive) @@ -12693,9 +13697,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_14(colorLoopActive); } - static void OnFailureCallback_16(void * context, EmberAfStatus status) + static void OnFailureCallback_16(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(error); } static void OnSuccessCallback_16(void * context, uint8_t colorLoopDirection) @@ -12703,9 +13707,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_16(colorLoopDirection); } - static void OnFailureCallback_18(void * context, EmberAfStatus status) + static void OnFailureCallback_18(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_18(error); } static void OnSuccessCallback_18(void * context, uint8_t colorLoopActive) @@ -12713,9 +13717,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_18(colorLoopActive); } - static void OnFailureCallback_20(void * context, EmberAfStatus status) + static void OnFailureCallback_20(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_20(status); + (static_cast(context))->OnFailureResponse_20(error); } static void OnSuccessCallback_20(void * context, uint8_t colorLoopActive) @@ -12723,9 +13727,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_20(colorLoopActive); } - static void OnFailureCallback_23(void * context, EmberAfStatus status) + static void OnFailureCallback_23(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_23(status); + (static_cast(context))->OnFailureResponse_23(error); } static void OnSuccessCallback_23(void * context, uint16_t enhancedCurrentHue) @@ -12733,9 +13737,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_23(enhancedCurrentHue); } - static void OnFailureCallback_25(void * context, EmberAfStatus status) + static void OnFailureCallback_25(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_25(status); + (static_cast(context))->OnFailureResponse_25(error); } static void OnSuccessCallback_25(void * context, uint8_t colorLoopDirection) @@ -12743,9 +13747,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_25(colorLoopDirection); } - static void OnFailureCallback_27(void * context, EmberAfStatus status) + static void OnFailureCallback_27(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_27(status); + (static_cast(context))->OnFailureResponse_27(error); } static void OnSuccessCallback_27(void * context, uint8_t colorLoopActive) @@ -12753,9 +13757,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_27(colorLoopActive); } - static void OnFailureCallback_29(void * context, EmberAfStatus status) + static void OnFailureCallback_29(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_29(status); + (static_cast(context))->OnFailureResponse_29(error); } static void OnSuccessCallback_29(void * context, uint8_t colorLoopActive) @@ -12763,9 +13767,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_29(colorLoopActive); } - static void OnFailureCallback_31(void * context, EmberAfStatus status) + static void OnFailureCallback_31(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_31(status); + (static_cast(context))->OnFailureResponse_31(error); } static void OnSuccessCallback_31(void * context, uint8_t colorLoopDirection) @@ -12773,9 +13777,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_31(colorLoopDirection); } - static void OnFailureCallback_33(void * context, EmberAfStatus status) + static void OnFailureCallback_33(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_33(status); + (static_cast(context))->OnFailureResponse_33(error); } static void OnSuccessCallback_33(void * context, uint8_t colorLoopActive) @@ -12783,9 +13787,9 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_33(colorLoopActive); } - static void OnFailureCallback_35(void * context, EmberAfStatus status) + static void OnFailureCallback_35(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_35(status); + (static_cast(context))->OnFailureResponse_35(error); } static void OnSuccessCallback_35(void * context, uint8_t colorLoopActive) @@ -12814,15 +13818,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -12837,7 +13845,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -12864,15 +13876,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -12887,7 +13903,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t colorLoopActive) { @@ -12914,15 +13934,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -12937,7 +13961,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint8_t colorLoopDirection) { @@ -12964,15 +13992,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_7(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -12987,7 +14019,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(uint16_t colorLoopTime) { @@ -13014,15 +14050,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_9(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9() { NextTest(); } @@ -13038,7 +14078,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(uint16_t colorLoopStartEnhancedHue) { @@ -13065,15 +14109,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_11(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_11(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11() { NextTest(); } @@ -13088,7 +14136,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12(uint8_t colorLoopActive) { @@ -13115,15 +14167,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_13(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_13(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13() { NextTest(); } @@ -13138,7 +14194,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14(uint8_t colorLoopActive) { @@ -13165,15 +14225,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_15(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_15(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_15(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15() { NextTest(); } @@ -13188,7 +14252,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_16(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_16(uint8_t colorLoopDirection) { @@ -13215,15 +14283,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_17(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_17(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_17(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_17(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_17(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_17() { NextTest(); } @@ -13238,7 +14310,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_18(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_18(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_18(uint8_t colorLoopActive) { @@ -13265,15 +14341,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_19(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_19(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_19(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_19(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_19(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_19() { NextTest(); } @@ -13288,7 +14368,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_20(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_20(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_20(uint8_t colorLoopActive) { @@ -13313,15 +14397,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_21(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_21(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_21(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_21(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_21(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_21() { NextTest(); } @@ -13342,7 +14430,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_23(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_23(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_23(uint16_t enhancedCurrentHue) { @@ -13369,15 +14461,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_24(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_24(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_24(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_24(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_24(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_24() { NextTest(); } @@ -13392,7 +14488,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_25(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_25(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_25(uint8_t colorLoopDirection) { @@ -13419,15 +14519,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_26(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_26(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_26(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_26(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_26(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_26() { NextTest(); } @@ -13442,7 +14546,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_27(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_27(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_27(uint8_t colorLoopActive) { @@ -13469,15 +14577,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_28(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_28(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_28(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_28(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_28(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_28() { NextTest(); } @@ -13492,7 +14604,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_29(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_29(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_29(uint8_t colorLoopActive) { @@ -13519,15 +14635,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_30(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_30(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_30(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_30(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_30(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_30() { NextTest(); } @@ -13542,7 +14662,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_31(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_31(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_31(uint8_t colorLoopDirection) { @@ -13569,15 +14693,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_32(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_32(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_32(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_32(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_32(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_32() { NextTest(); } @@ -13592,7 +14720,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_33(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_33(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_33(uint8_t colorLoopActive) { @@ -13619,15 +14751,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_34(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_34(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_34(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_34(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_34(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_34() { NextTest(); } @@ -13642,7 +14778,11 @@ class Test_TC_CC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_35(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_35(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_35(uint8_t colorLoopActive) { @@ -13662,15 +14802,19 @@ class Test_TC_CC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_36(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_36(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_36(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_36(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_36(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_36() { NextTest(); } }; @@ -13842,9 +14986,9 @@ class Test_TC_CC_9_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -13852,9 +14996,9 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint8_t colorLoopActive) @@ -13862,9 +15006,9 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnSuccessResponse_4(colorLoopActive); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint8_t colorLoopDirection) @@ -13872,9 +15016,9 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnSuccessResponse_5(colorLoopDirection); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint16_t colorLoopTime) @@ -13882,9 +15026,9 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnSuccessResponse_6(colorLoopTime); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, uint16_t colorLoopStartEnhancedHue) @@ -13892,9 +15036,9 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnSuccessResponse_7(colorLoopStartEnhancedHue); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, uint8_t colorLoopActive) @@ -13902,9 +15046,9 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnSuccessResponse_9(colorLoopActive); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, uint8_t colorLoopDirection) @@ -13912,9 +15056,9 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnSuccessResponse_11(colorLoopDirection); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, uint8_t colorLoopActive) @@ -13943,15 +15087,19 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -13966,7 +15114,11 @@ class Test_TC_CC_9_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -13993,15 +15145,19 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -14016,7 +15172,11 @@ class Test_TC_CC_9_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t colorLoopActive) { @@ -14036,7 +15196,11 @@ class Test_TC_CC_9_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint8_t colorLoopDirection) { @@ -14056,7 +15220,11 @@ class Test_TC_CC_9_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint16_t colorLoopTime) { @@ -14077,7 +15245,11 @@ class Test_TC_CC_9_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(uint16_t colorLoopStartEnhancedHue) { @@ -14104,15 +15276,19 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnSuccessResponse_8(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_8(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8() { NextTest(); } @@ -14127,7 +15303,11 @@ class Test_TC_CC_9_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint8_t colorLoopActive) { @@ -14154,15 +15334,19 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnSuccessResponse_10(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_10(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10() { NextTest(); } @@ -14177,7 +15361,11 @@ class Test_TC_CC_9_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(uint8_t colorLoopDirection) { @@ -14204,15 +15392,19 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnSuccessResponse_12(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_12(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_12(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12() { NextTest(); } @@ -14227,7 +15419,11 @@ class Test_TC_CC_9_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(uint8_t colorLoopActive) { @@ -14247,15 +15443,19 @@ class Test_TC_CC_9_2 : public TestCommand (static_cast(context))->OnSuccessResponse_14(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_14(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_14(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14() { NextTest(); } }; @@ -14427,9 +15627,9 @@ class Test_TC_CC_9_3 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -14437,9 +15637,9 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint8_t colorLoopActive) @@ -14447,9 +15647,9 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnSuccessResponse_4(colorLoopActive); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint8_t colorLoopDirection) @@ -14457,9 +15657,9 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnSuccessResponse_5(colorLoopDirection); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint16_t colorLoopTime) @@ -14467,9 +15667,9 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnSuccessResponse_6(colorLoopTime); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, uint16_t colorLoopStartEnhancedHue) @@ -14477,9 +15677,9 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnSuccessResponse_7(colorLoopStartEnhancedHue); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, uint8_t colorLoopActive) @@ -14487,9 +15687,9 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnSuccessResponse_9(colorLoopActive); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, uint16_t colorLoopTime) @@ -14497,9 +15697,9 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnSuccessResponse_11(colorLoopTime); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, uint8_t colorLoopActive) @@ -14528,15 +15728,19 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -14551,7 +15755,11 @@ class Test_TC_CC_9_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -14578,15 +15786,19 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -14601,7 +15813,11 @@ class Test_TC_CC_9_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t colorLoopActive) { @@ -14621,7 +15837,11 @@ class Test_TC_CC_9_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint8_t colorLoopDirection) { @@ -14641,7 +15861,11 @@ class Test_TC_CC_9_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint16_t colorLoopTime) { @@ -14662,7 +15886,11 @@ class Test_TC_CC_9_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(uint16_t colorLoopStartEnhancedHue) { @@ -14689,15 +15917,19 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnSuccessResponse_8(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_8(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8() { NextTest(); } @@ -14712,7 +15944,11 @@ class Test_TC_CC_9_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint8_t colorLoopActive) { @@ -14739,15 +15975,19 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnSuccessResponse_10(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_10(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10() { NextTest(); } @@ -14762,7 +16002,11 @@ class Test_TC_CC_9_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(uint16_t colorLoopTime) { @@ -14789,15 +16033,19 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnSuccessResponse_12(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_12(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_12(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12() { NextTest(); } @@ -14812,7 +16060,11 @@ class Test_TC_CC_9_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(uint8_t colorLoopActive) { @@ -14832,15 +16084,19 @@ class Test_TC_CC_9_3 : public TestCommand (static_cast(context))->OnSuccessResponse_14(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_14(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_14(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14() { NextTest(); } }; @@ -15387,9 +16643,9 @@ class Test_TC_DM_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t interactionModelVersion) @@ -15397,9 +16653,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(interactionModelVersion); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, chip::CharSpan vendorName) @@ -15407,9 +16663,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(vendorName); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, chip::VendorId vendorID) @@ -15417,9 +16673,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(vendorID); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, chip::CharSpan productName) @@ -15427,9 +16683,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(productName); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint16_t productID) @@ -15437,9 +16693,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(productID); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, chip::CharSpan nodeLabel) @@ -15447,9 +16703,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(nodeLabel); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, chip::CharSpan location) @@ -15457,9 +16713,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(location); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, uint16_t hardwareVersion) @@ -15467,9 +16723,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(hardwareVersion); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, chip::CharSpan hardwareVersionString) @@ -15477,9 +16733,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(hardwareVersionString); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, uint32_t softwareVersion) @@ -15487,9 +16743,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_10(softwareVersion); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, chip::CharSpan softwareVersionString) @@ -15497,9 +16753,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_11(softwareVersionString); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context, chip::CharSpan manufacturingDate) @@ -15507,9 +16763,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_12(manufacturingDate); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, chip::CharSpan partNumber) @@ -15517,9 +16773,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_13(partNumber); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context, chip::CharSpan productURL) @@ -15527,9 +16783,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_14(productURL); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_15(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_15(status); + (static_cast(context))->OnFailureResponse_15(error); } static void OnSuccessCallback_15(void * context, chip::CharSpan productLabel) @@ -15537,9 +16793,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_15(productLabel); } - static void OnFailureCallback_16(void * context, EmberAfStatus status) + static void OnFailureCallback_16(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(error); } static void OnSuccessCallback_16(void * context, chip::CharSpan serialNumber) @@ -15547,9 +16803,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_16(serialNumber); } - static void OnFailureCallback_17(void * context, EmberAfStatus status) + static void OnFailureCallback_17(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_17(status); + (static_cast(context))->OnFailureResponse_17(error); } static void OnSuccessCallback_17(void * context, bool localConfigDisabled) @@ -15557,9 +16813,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_17(localConfigDisabled); } - static void OnFailureCallback_18(void * context, EmberAfStatus status) + static void OnFailureCallback_18(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_18(error); } static void OnSuccessCallback_18(void * context, bool reachable) @@ -15567,9 +16823,9 @@ class Test_TC_DM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_18(reachable); } - static void OnFailureCallback_19(void * context, EmberAfStatus status) + static void OnFailureCallback_19(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_19(status); + (static_cast(context))->OnFailureResponse_19(error); } static void OnSuccessCallback_19(void * context, chip::CharSpan uniqueID) @@ -15598,7 +16854,11 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t interactionModelVersion) { @@ -15617,7 +16877,11 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(chip::CharSpan vendorName) { @@ -15637,7 +16901,11 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(chip::VendorId vendorID) { @@ -15656,7 +16924,11 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(chip::CharSpan productName) { @@ -15676,7 +16948,11 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint16_t productID) { @@ -15695,7 +16971,11 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(chip::CharSpan nodeLabel) { @@ -15715,7 +16995,11 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(chip::CharSpan location) { @@ -15736,7 +17020,11 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(uint16_t hardwareVersion) { @@ -15755,7 +17043,11 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(chip::CharSpan hardwareVersionString) { @@ -15776,7 +17068,11 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(uint32_t softwareVersion) { @@ -15795,7 +17091,11 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(chip::CharSpan softwareVersionString) { @@ -15817,9 +17117,10 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) + void OnFailureResponse_12(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_12(chip::CharSpan manufacturingDate) @@ -15842,9 +17143,10 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) + void OnFailureResponse_13(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_13(chip::CharSpan partNumber) @@ -15865,9 +17167,10 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) + void OnFailureResponse_14(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_14(chip::CharSpan productURL) @@ -15889,9 +17192,10 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) + void OnFailureResponse_15(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_15(chip::CharSpan productLabel) @@ -15912,9 +17216,10 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) + void OnFailureResponse_16(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_16(chip::CharSpan serialNumber) @@ -15935,9 +17240,10 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_17(EmberAfStatus status) + void OnFailureResponse_17(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_17(bool localConfigDisabled) @@ -15957,9 +17263,10 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_18(EmberAfStatus status) + void OnFailureResponse_18(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_18(bool reachable) @@ -15979,9 +17286,10 @@ class Test_TC_DM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_19(EmberAfStatus status) + void OnFailureResponse_19(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_19(chip::CharSpan uniqueID) @@ -16131,9 +17439,9 @@ class Test_TC_DM_2_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void @@ -16144,9 +17452,9 @@ class Test_TC_DM_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(fabricsList); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t supportedFabrics) @@ -16154,9 +17462,9 @@ class Test_TC_DM_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_2(supportedFabrics); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint8_t commissionedFabrics) @@ -16164,9 +17472,9 @@ class Test_TC_DM_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_3(commissionedFabrics); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, @@ -16196,7 +17504,11 @@ class Test_TC_DM_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(const chip::app::DataModel::DecodableList< chip::app::Clusters::OperationalCredentials::Structs::FabricDescriptor::DecodableType> & fabricsList) @@ -16223,7 +17535,11 @@ class Test_TC_DM_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t supportedFabrics) { @@ -16244,7 +17560,11 @@ class Test_TC_DM_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t commissionedFabrics) { @@ -16265,7 +17585,11 @@ class Test_TC_DM_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(const chip::app::DataModel::DecodableList & trustedRootCertificates) { @@ -16347,9 +17671,9 @@ class Test_TC_EMR_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -16357,9 +17681,9 @@ class Test_TC_EMR_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) @@ -16367,16 +17691,16 @@ class Test_TC_EMR_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(clusterRevision); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint16_t clusterRevision) @@ -16406,7 +17730,11 @@ class Test_TC_EMR_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -16427,7 +17755,11 @@ class Test_TC_EMR_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t clusterRevision) { @@ -16450,9 +17782,10 @@ class Test_TC_EMR_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) + void OnFailureResponse_3(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -16470,7 +17803,11 @@ class Test_TC_EMR_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint16_t clusterRevision) { @@ -16679,9 +18016,9 @@ class Test_TC_FLW_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -16689,9 +18026,9 @@ class Test_TC_FLW_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } @@ -16717,7 +18054,11 @@ class Test_TC_FLW_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -16739,9 +18080,10 @@ class Test_TC_FLW_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -16856,9 +18198,9 @@ class Test_TC_FLW_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, int16_t measuredValue) @@ -16866,9 +18208,9 @@ class Test_TC_FLW_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(measuredValue); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, int16_t minMeasuredValue) @@ -16876,9 +18218,9 @@ class Test_TC_FLW_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(minMeasuredValue); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, int16_t maxMeasuredValue) @@ -16886,30 +18228,30 @@ class Test_TC_FLW_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(maxMeasuredValue); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, int16_t measuredValue) @@ -16917,9 +18259,9 @@ class Test_TC_FLW_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(measuredValue); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, int16_t minMeasuredValue) @@ -16927,9 +18269,9 @@ class Test_TC_FLW_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(minMeasuredValue); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, int16_t maxMeasuredValue) @@ -16937,9 +18279,9 @@ class Test_TC_FLW_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(maxMeasuredValue); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, uint16_t tolerance) @@ -16947,9 +18289,9 @@ class Test_TC_FLW_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_10(tolerance); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, uint16_t tolerance) @@ -16957,16 +18299,16 @@ class Test_TC_FLW_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_11(tolerance); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, uint16_t tolerance) @@ -16995,7 +18337,11 @@ class Test_TC_FLW_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(int16_t measuredValue) { @@ -17014,7 +18360,11 @@ class Test_TC_FLW_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(int16_t minMeasuredValue) { @@ -17033,7 +18383,11 @@ class Test_TC_FLW_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(int16_t maxMeasuredValue) { @@ -17055,9 +18409,10 @@ class Test_TC_FLW_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) + void OnFailureResponse_4(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -17077,9 +18432,10 @@ class Test_TC_FLW_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) + void OnFailureResponse_5(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -17099,9 +18455,10 @@ class Test_TC_FLW_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) + void OnFailureResponse_6(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -17118,7 +18475,11 @@ class Test_TC_FLW_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(int16_t measuredValue) { @@ -17137,7 +18498,11 @@ class Test_TC_FLW_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(int16_t minMeasuredValue) { @@ -17156,7 +18521,11 @@ class Test_TC_FLW_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(int16_t maxMeasuredValue) { @@ -17175,9 +18544,10 @@ class Test_TC_FLW_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) + void OnFailureResponse_10(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_10(uint16_t tolerance) @@ -17198,9 +18568,10 @@ class Test_TC_FLW_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) + void OnFailureResponse_11(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_11(uint16_t tolerance) @@ -17225,9 +18596,10 @@ class Test_TC_FLW_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) + void OnFailureResponse_12(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -17244,9 +18616,10 @@ class Test_TC_FLW_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) + void OnFailureResponse_13(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_13(uint16_t tolerance) @@ -17321,9 +18694,9 @@ class Test_TC_FLW_2_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, int16_t measuredValue) @@ -17331,9 +18704,9 @@ class Test_TC_FLW_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(measuredValue); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, int16_t measuredValue) @@ -17362,7 +18735,11 @@ class Test_TC_FLW_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(int16_t measuredValue) { @@ -17381,7 +18758,11 @@ class Test_TC_FLW_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(int16_t measuredValue) { @@ -17463,9 +18844,9 @@ class Test_TC_ILL_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -17473,9 +18854,9 @@ class Test_TC_ILL_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) @@ -17483,16 +18864,16 @@ class Test_TC_ILL_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(clusterRevision); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint16_t clusterRevision) @@ -17522,7 +18903,11 @@ class Test_TC_ILL_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -17543,7 +18928,11 @@ class Test_TC_ILL_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t clusterRevision) { @@ -17566,9 +18955,10 @@ class Test_TC_ILL_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) + void OnFailureResponse_3(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -17586,7 +18976,11 @@ class Test_TC_ILL_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint16_t clusterRevision) { @@ -17677,9 +19071,9 @@ class Test_TC_LVL_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -17687,9 +19081,9 @@ class Test_TC_LVL_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) @@ -17697,16 +19091,16 @@ class Test_TC_LVL_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(clusterRevision); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint16_t clusterRevision) @@ -17714,9 +19108,9 @@ class Test_TC_LVL_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(clusterRevision); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint32_t featureMap) @@ -17724,9 +19118,9 @@ class Test_TC_LVL_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(featureMap); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } @@ -17752,7 +19146,11 @@ class Test_TC_LVL_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -17772,7 +19170,11 @@ class Test_TC_LVL_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t clusterRevision) { @@ -17794,9 +19196,10 @@ class Test_TC_LVL_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) + void OnFailureResponse_3(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -17813,7 +19216,11 @@ class Test_TC_LVL_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint16_t clusterRevision) { @@ -17833,7 +19240,11 @@ class Test_TC_LVL_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint32_t featureMap) { @@ -17855,9 +19266,10 @@ class Test_TC_LVL_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) + void OnFailureResponse_6(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -17980,9 +19392,9 @@ class Test_TC_LVL_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint8_t currentLevel) @@ -17990,9 +19402,9 @@ class Test_TC_LVL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(currentLevel); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint16_t remainingTime) @@ -18000,9 +19412,9 @@ class Test_TC_LVL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(remainingTime); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint8_t minLevel) @@ -18010,9 +19422,9 @@ class Test_TC_LVL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(minLevel); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint8_t maxLevel) @@ -18020,9 +19432,9 @@ class Test_TC_LVL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(maxLevel); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, uint16_t currentFrequency) @@ -18030,9 +19442,9 @@ class Test_TC_LVL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(currentFrequency); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, uint16_t minFrequency) @@ -18040,9 +19452,9 @@ class Test_TC_LVL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(minFrequency); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, uint16_t maxFrequency) @@ -18050,9 +19462,9 @@ class Test_TC_LVL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(maxFrequency); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, uint16_t onOffTransitionTime) @@ -18060,9 +19472,9 @@ class Test_TC_LVL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_10(onOffTransitionTime); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, const chip::app::DataModel::Nullable & onLevel) @@ -18070,9 +19482,9 @@ class Test_TC_LVL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_11(onLevel); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context, const chip::app::DataModel::Nullable & onTransitionTime) @@ -18080,9 +19492,9 @@ class Test_TC_LVL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_12(onTransitionTime); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, const chip::app::DataModel::Nullable & offTransitionTime) @@ -18090,9 +19502,9 @@ class Test_TC_LVL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_13(offTransitionTime); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context, const chip::app::DataModel::Nullable & defaultMoveRate) @@ -18100,9 +19512,9 @@ class Test_TC_LVL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_14(defaultMoveRate); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_15(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_15(status); + (static_cast(context))->OnFailureResponse_15(error); } static void OnSuccessCallback_15(void * context, uint8_t options) @@ -18135,15 +19547,19 @@ class Test_TC_LVL_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -18164,7 +19580,11 @@ class Test_TC_LVL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t currentLevel) { @@ -18184,7 +19604,11 @@ class Test_TC_LVL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint16_t remainingTime) { @@ -18204,7 +19628,11 @@ class Test_TC_LVL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint8_t minLevel) { @@ -18224,7 +19652,11 @@ class Test_TC_LVL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint8_t maxLevel) { @@ -18243,7 +19675,11 @@ class Test_TC_LVL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(uint16_t currentFrequency) { @@ -18263,7 +19699,11 @@ class Test_TC_LVL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(uint16_t minFrequency) { @@ -18283,7 +19723,11 @@ class Test_TC_LVL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint16_t maxFrequency) { @@ -18303,7 +19747,11 @@ class Test_TC_LVL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(uint16_t onOffTransitionTime) { @@ -18323,7 +19771,11 @@ class Test_TC_LVL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(const chip::app::DataModel::Nullable & onLevel) { @@ -18342,7 +19794,11 @@ class Test_TC_LVL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12(const chip::app::DataModel::Nullable & onTransitionTime) { @@ -18361,7 +19817,11 @@ class Test_TC_LVL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(const chip::app::DataModel::Nullable & offTransitionTime) { @@ -18380,7 +19840,11 @@ class Test_TC_LVL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14(const chip::app::DataModel::Nullable & defaultMoveRate) { @@ -18399,7 +19863,11 @@ class Test_TC_LVL_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15(uint8_t options) { @@ -18525,9 +19993,9 @@ class Test_TC_LVL_2_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t onOffTransitionTime) @@ -18535,16 +20003,16 @@ class Test_TC_LVL_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(onOffTransitionTime); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint16_t onOffTransitionTime) @@ -18552,23 +20020,23 @@ class Test_TC_LVL_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_3(onOffTransitionTime); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, const chip::app::DataModel::Nullable & onLevel) @@ -18576,16 +20044,16 @@ class Test_TC_LVL_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_6(onLevel); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, const chip::app::DataModel::Nullable & onTransitionTime) @@ -18593,16 +20061,16 @@ class Test_TC_LVL_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_8(onTransitionTime); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, const chip::app::DataModel::Nullable & offTransitionTime) @@ -18610,9 +20078,9 @@ class Test_TC_LVL_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_10(offTransitionTime); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, const chip::app::DataModel::Nullable & defaultMoveRate) @@ -18620,16 +20088,16 @@ class Test_TC_LVL_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_11(defaultMoveRate); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, const chip::app::DataModel::Nullable & defaultMoveRate) @@ -18637,16 +20105,16 @@ class Test_TC_LVL_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_13(defaultMoveRate); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context) { (static_cast(context))->OnSuccessResponse_14(); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_15(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_15(status); + (static_cast(context))->OnFailureResponse_15(error); } static void OnSuccessCallback_15(void * context, const chip::app::DataModel::Nullable & startUpCurrentLevel) @@ -18675,7 +20143,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t onOffTransitionTime) { @@ -18698,7 +20170,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2() { NextTest(); } @@ -18713,7 +20189,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint16_t onOffTransitionTime) { @@ -18736,7 +20216,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -18755,7 +20239,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -18770,7 +20258,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(const chip::app::DataModel::Nullable & onLevel) { @@ -18795,7 +20287,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -18810,7 +20306,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(const chip::app::DataModel::Nullable & onTransitionTime) { @@ -18835,7 +20335,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9() { NextTest(); } @@ -18850,7 +20354,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(const chip::app::DataModel::Nullable & offTransitionTime) { @@ -18871,7 +20379,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(const chip::app::DataModel::Nullable & defaultMoveRate) { @@ -18896,7 +20408,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12() { NextTest(); } @@ -18911,7 +20427,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(const chip::app::DataModel::Nullable & defaultMoveRate) { @@ -18936,7 +20456,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14() { NextTest(); } @@ -18951,7 +20475,11 @@ class Test_TC_LVL_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15(const chip::app::DataModel::Nullable & startUpCurrentLevel) { @@ -19078,9 +20606,9 @@ class Test_TC_LVL_3_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint8_t currentLevel) @@ -19088,9 +20616,9 @@ class Test_TC_LVL_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(currentLevel); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t minLevel) @@ -19098,9 +20626,9 @@ class Test_TC_LVL_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(minLevel); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint8_t maxLevel) @@ -19108,9 +20636,9 @@ class Test_TC_LVL_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(maxLevel); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint8_t currentLevel) @@ -19118,9 +20646,9 @@ class Test_TC_LVL_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(currentLevel); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, uint8_t currentLevel) @@ -19128,9 +20656,9 @@ class Test_TC_LVL_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(currentLevel); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, uint16_t onOffTransitionTime) @@ -19138,9 +20666,9 @@ class Test_TC_LVL_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_10(onOffTransitionTime); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, uint8_t currentLevel) @@ -19169,7 +20697,11 @@ class Test_TC_LVL_3_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t currentLevel) { @@ -19189,7 +20721,11 @@ class Test_TC_LVL_3_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t minLevel) { @@ -19209,7 +20745,11 @@ class Test_TC_LVL_3_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t maxLevel) { @@ -19233,15 +20773,19 @@ class Test_TC_LVL_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -19262,7 +20806,11 @@ class Test_TC_LVL_3_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint8_t currentLevel) { @@ -19286,15 +20834,19 @@ class Test_TC_LVL_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_7(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -19315,7 +20867,11 @@ class Test_TC_LVL_3_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint8_t currentLevel) { @@ -19335,7 +20891,11 @@ class Test_TC_LVL_3_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(uint16_t onOffTransitionTime) { @@ -19359,15 +20919,19 @@ class Test_TC_LVL_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_11(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_11(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11() { NextTest(); } @@ -19388,7 +20952,11 @@ class Test_TC_LVL_3_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(uint8_t currentLevel) { @@ -19412,15 +20980,19 @@ class Test_TC_LVL_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_14(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_14(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_14(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14() { NextTest(); } @@ -19551,9 +21123,9 @@ class Test_TC_LVL_4_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint8_t currentLevel) @@ -19561,9 +21133,9 @@ class Test_TC_LVL_4_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(currentLevel); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t maxLevel) @@ -19571,9 +21143,9 @@ class Test_TC_LVL_4_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(maxLevel); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint8_t currentLevel) @@ -19581,9 +21153,9 @@ class Test_TC_LVL_4_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(currentLevel); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint8_t minLevel) @@ -19591,9 +21163,9 @@ class Test_TC_LVL_4_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(minLevel); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, uint8_t currentLevel) @@ -19601,16 +21173,16 @@ class Test_TC_LVL_4_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(currentLevel); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, const chip::app::DataModel::Nullable & defaultMoveRate) @@ -19618,9 +21190,9 @@ class Test_TC_LVL_4_1 : public TestCommand (static_cast(context))->OnSuccessResponse_11(defaultMoveRate); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context, uint8_t currentLevel) @@ -19649,7 +21221,11 @@ class Test_TC_LVL_4_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t currentLevel) { @@ -19669,7 +21245,11 @@ class Test_TC_LVL_4_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t maxLevel) { @@ -19693,15 +21273,19 @@ class Test_TC_LVL_4_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -19722,7 +21306,11 @@ class Test_TC_LVL_4_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint8_t currentLevel) { @@ -19742,7 +21330,11 @@ class Test_TC_LVL_4_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint8_t minLevel) { @@ -19766,15 +21358,19 @@ class Test_TC_LVL_4_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_7(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -19795,7 +21391,11 @@ class Test_TC_LVL_4_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint8_t currentLevel) { @@ -19819,7 +21419,11 @@ class Test_TC_LVL_4_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10() { NextTest(); } @@ -19834,7 +21438,11 @@ class Test_TC_LVL_4_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(const chip::app::DataModel::Nullable & defaultMoveRate) { @@ -19859,15 +21467,19 @@ class Test_TC_LVL_4_1 : public TestCommand (static_cast(context))->OnSuccessResponse_12(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_12(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_12(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12() { NextTest(); } @@ -19888,7 +21500,11 @@ class Test_TC_LVL_4_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14(uint8_t currentLevel) { @@ -19912,15 +21528,19 @@ class Test_TC_LVL_4_1 : public TestCommand (static_cast(context))->OnSuccessResponse_15(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_15(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_15(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15() { NextTest(); } @@ -20039,9 +21659,9 @@ class Test_TC_LVL_5_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint8_t currentLevel) @@ -20049,9 +21669,9 @@ class Test_TC_LVL_5_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(currentLevel); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, uint8_t currentLevel) @@ -20059,9 +21679,9 @@ class Test_TC_LVL_5_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(currentLevel); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, uint8_t currentLevel) @@ -20090,15 +21710,19 @@ class Test_TC_LVL_5_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -20118,15 +21742,19 @@ class Test_TC_LVL_5_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_2(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2() { NextTest(); } @@ -20147,7 +21775,11 @@ class Test_TC_LVL_5_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t currentLevel) { @@ -20172,15 +21804,19 @@ class Test_TC_LVL_5_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -20201,7 +21837,11 @@ class Test_TC_LVL_5_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(uint8_t currentLevel) { @@ -20226,15 +21866,19 @@ class Test_TC_LVL_5_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_8(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8() { NextTest(); } @@ -20255,7 +21899,11 @@ class Test_TC_LVL_5_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(uint8_t currentLevel) { @@ -20279,15 +21927,19 @@ class Test_TC_LVL_5_1 : public TestCommand (static_cast(context))->OnSuccessResponse_11(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_11(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11() { NextTest(); } @@ -20308,15 +21960,19 @@ class Test_TC_LVL_5_1 : public TestCommand (static_cast(context))->OnSuccessResponse_13(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_13(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13() { NextTest(); } }; @@ -20421,9 +22077,9 @@ class Test_TC_LVL_6_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint8_t currentLevel) @@ -20431,9 +22087,9 @@ class Test_TC_LVL_6_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(currentLevel); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, uint8_t currentLevel) @@ -20462,15 +22118,19 @@ class Test_TC_LVL_6_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -20489,15 +22149,19 @@ class Test_TC_LVL_6_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_2(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2() { NextTest(); } @@ -20518,7 +22182,11 @@ class Test_TC_LVL_6_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t currentLevel) { @@ -20542,15 +22210,19 @@ class Test_TC_LVL_6_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -20573,15 +22245,19 @@ class Test_TC_LVL_6_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_7(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -20596,7 +22272,11 @@ class Test_TC_LVL_6_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(uint8_t currentLevel) { @@ -20620,15 +22300,19 @@ class Test_TC_LVL_6_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_9(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9() { NextTest(); } @@ -20649,15 +22333,19 @@ class Test_TC_LVL_6_1 : public TestCommand (static_cast(context))->OnSuccessResponse_11(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_11(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11() { NextTest(); } }; @@ -20727,9 +22415,9 @@ class Test_TC_MC_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -20737,9 +22425,9 @@ class Test_TC_MC_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } @@ -20765,7 +22453,11 @@ class Test_TC_MC_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -20787,9 +22479,10 @@ class Test_TC_MC_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -20877,15 +22570,19 @@ class Test_TC_MC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } }; @@ -21687,9 +23384,9 @@ class Test_TC_MC_5_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1( @@ -21720,7 +23417,11 @@ class Test_TC_MC_5_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1( const chip::app::DataModel::DecodableList & channelList) @@ -21960,9 +23661,9 @@ class Test_TC_MC_6_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, chip::app::Clusters::MediaPlayback::PlaybackStateEnum playbackState) @@ -22003,7 +23704,11 @@ class Test_TC_MC_6_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(chip::app::Clusters::MediaPlayback::PlaybackStateEnum playbackState) { @@ -22113,9 +23818,9 @@ class Test_TC_MC_6_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, chip::app::Clusters::MediaPlayback::PlaybackStateEnum playbackState) @@ -22156,7 +23861,11 @@ class Test_TC_MC_6_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(chip::app::Clusters::MediaPlayback::PlaybackStateEnum playbackState) { @@ -22385,9 +24094,9 @@ class Test_TC_MC_6_4 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, float playbackSpeed) @@ -22395,9 +24104,9 @@ class Test_TC_MC_6_4 : public TestCommand (static_cast(context))->OnSuccessResponse_2(playbackSpeed); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, chip::app::Clusters::MediaPlayback::PlaybackStateEnum playbackState) @@ -22405,9 +24114,9 @@ class Test_TC_MC_6_4 : public TestCommand (static_cast(context))->OnSuccessResponse_4(playbackState); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, chip::app::Clusters::MediaPlayback::PlaybackStateEnum playbackState) @@ -22442,7 +24151,11 @@ class Test_TC_MC_6_4 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(float playbackSpeed) { @@ -22468,7 +24181,11 @@ class Test_TC_MC_6_4 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(chip::app::Clusters::MediaPlayback::PlaybackStateEnum playbackState) { @@ -22500,7 +24217,11 @@ class Test_TC_MC_6_4 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(chip::app::Clusters::MediaPlayback::PlaybackStateEnum playbackState) { @@ -22722,9 +24443,9 @@ class Test_TC_MC_8_1 : public TestCommand uint8_t currentTarget; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint8_t currentNavigatorTarget) @@ -22732,9 +24453,9 @@ class Test_TC_MC_8_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(currentNavigatorTarget); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2( @@ -22767,7 +24488,11 @@ class Test_TC_MC_8_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t currentNavigatorTarget) { @@ -22787,7 +24512,11 @@ class Test_TC_MC_8_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2( const chip::app::DataModel::DecodableList & @@ -22882,9 +24611,9 @@ class Test_TC_MC_9_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, chip::CharSpan vendorName) @@ -22892,9 +24621,9 @@ class Test_TC_MC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(vendorName); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint16_t vendorId) @@ -22902,9 +24631,9 @@ class Test_TC_MC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(vendorId); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, chip::CharSpan applicationName) @@ -22912,9 +24641,9 @@ class Test_TC_MC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(applicationName); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint16_t productId) @@ -22922,9 +24651,9 @@ class Test_TC_MC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(productId); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, chip::app::Clusters::ApplicationBasic::ApplicationStatusEnum applicationStatus) @@ -22932,9 +24661,9 @@ class Test_TC_MC_9_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(applicationStatus); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, chip::CharSpan applicationVersion) @@ -22969,7 +24698,11 @@ class Test_TC_MC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(chip::CharSpan vendorName) { @@ -22988,7 +24721,11 @@ class Test_TC_MC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint16_t vendorId) { @@ -23008,7 +24745,11 @@ class Test_TC_MC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(chip::CharSpan applicationName) { @@ -23028,7 +24769,11 @@ class Test_TC_MC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint16_t productId) { @@ -23047,7 +24792,11 @@ class Test_TC_MC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(chip::app::Clusters::ApplicationBasic::ApplicationStatusEnum applicationStatus) { @@ -23067,7 +24816,11 @@ class Test_TC_MC_9_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(chip::CharSpan applicationVersion) { @@ -23146,9 +24899,9 @@ class Test_TC_OCC_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -23156,9 +24909,9 @@ class Test_TC_OCC_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) @@ -23166,9 +24919,9 @@ class Test_TC_OCC_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(clusterRevision); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } @@ -23194,7 +24947,11 @@ class Test_TC_OCC_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -23214,7 +24971,11 @@ class Test_TC_OCC_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t clusterRevision) { @@ -23236,9 +24997,10 @@ class Test_TC_OCC_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) + void OnFailureResponse_3(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -23341,9 +25103,9 @@ class Test_TC_OCC_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint8_t occupancy) @@ -23351,16 +25113,16 @@ class Test_TC_OCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(occupancy); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint8_t occupancy) @@ -23368,9 +25130,9 @@ class Test_TC_OCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(occupancy); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint8_t occupancySensorType) @@ -23378,16 +25140,16 @@ class Test_TC_OCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(occupancySensorType); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint8_t occupancySensorType) @@ -23395,9 +25157,9 @@ class Test_TC_OCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(occupancySensorType); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, uint8_t occupancySensorTypeBitmap) @@ -23405,16 +25167,16 @@ class Test_TC_OCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(occupancySensorTypeBitmap); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, uint8_t occupancySensorTypeBitmap) @@ -23443,7 +25205,11 @@ class Test_TC_OCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t occupancy) { @@ -23467,9 +25233,10 @@ class Test_TC_OCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -23486,7 +25253,11 @@ class Test_TC_OCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t occupancy) { @@ -23507,7 +25278,11 @@ class Test_TC_OCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t occupancySensorType) { @@ -23532,9 +25307,10 @@ class Test_TC_OCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) + void OnFailureResponse_5(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -23552,7 +25328,11 @@ class Test_TC_OCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint8_t occupancySensorType) { @@ -23573,7 +25353,11 @@ class Test_TC_OCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(uint8_t occupancySensorTypeBitmap) { @@ -23598,9 +25382,10 @@ class Test_TC_OCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) + void OnFailureResponse_8(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -23618,7 +25403,11 @@ class Test_TC_OCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint8_t occupancySensorTypeBitmap) { @@ -23702,9 +25491,9 @@ class Test_TC_OCC_2_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint8_t occupancy) @@ -23712,9 +25501,9 @@ class Test_TC_OCC_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(occupancy); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t occupancy) @@ -23743,7 +25532,11 @@ class Test_TC_OCC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t occupancy) { @@ -23762,7 +25555,11 @@ class Test_TC_OCC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t occupancy) { @@ -23864,9 +25661,9 @@ class Test_TC_OO_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) @@ -23874,9 +25671,9 @@ class Test_TC_OO_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(clusterRevision); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint16_t clusterRevision) @@ -23884,16 +25681,16 @@ class Test_TC_OO_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(clusterRevision); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint16_t clusterRevision) @@ -23901,9 +25698,9 @@ class Test_TC_OO_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(clusterRevision); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint32_t featureMap) @@ -23911,9 +25708,9 @@ class Test_TC_OO_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(featureMap); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, uint32_t featureMap) @@ -23921,16 +25718,16 @@ class Test_TC_OO_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(featureMap); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, uint32_t featureMap) @@ -23965,7 +25762,11 @@ class Test_TC_OO_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t clusterRevision) { @@ -23985,7 +25786,11 @@ class Test_TC_OO_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint16_t clusterRevision) { @@ -24007,9 +25812,10 @@ class Test_TC_OO_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) + void OnFailureResponse_4(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -24026,7 +25832,11 @@ class Test_TC_OO_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint16_t clusterRevision) { @@ -24046,7 +25856,11 @@ class Test_TC_OO_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint32_t featureMap) { @@ -24066,7 +25880,11 @@ class Test_TC_OO_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(uint32_t featureMap) { @@ -24088,9 +25906,10 @@ class Test_TC_OO_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) + void OnFailureResponse_8(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -24107,7 +25926,11 @@ class Test_TC_OO_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint32_t featureMap) { @@ -24233,9 +26056,9 @@ class Test_TC_OO_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, bool onOff) @@ -24243,16 +26066,16 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(onOff); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, bool onOff) @@ -24260,9 +26083,9 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(onOff); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, bool globalSceneControl) @@ -24270,9 +26093,9 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(globalSceneControl); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint16_t onTime) @@ -24280,9 +26103,9 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(onTime); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint16_t offWaitTime) @@ -24290,9 +26113,9 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(offWaitTime); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, uint8_t startUpOnOff) @@ -24300,37 +26123,37 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(startUpOnOff); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context, bool globalSceneControl) @@ -24338,9 +26161,9 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_12(globalSceneControl); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, uint16_t onTime) @@ -24348,9 +26171,9 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_13(onTime); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context, uint16_t offWaitTime) @@ -24358,9 +26181,9 @@ class Test_TC_OO_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_14(offWaitTime); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_15(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_15(status); + (static_cast(context))->OnFailureResponse_15(error); } static void OnSuccessCallback_15(void * context, uint8_t startUpOnOff) @@ -24389,7 +26212,11 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(bool onOff) { @@ -24412,9 +26239,10 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -24431,7 +26259,11 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(bool onOff) { @@ -24451,7 +26283,11 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(bool globalSceneControl) { @@ -24471,7 +26307,11 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint16_t onTime) { @@ -24491,7 +26331,11 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint16_t offWaitTime) { @@ -24511,7 +26355,11 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(uint8_t startUpOnOff) { @@ -24534,9 +26382,10 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) + void OnFailureResponse_8(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -24556,7 +26405,11 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9() { NextTest(); } @@ -24574,7 +26427,11 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10() { NextTest(); } @@ -24592,7 +26449,11 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11() { NextTest(); } @@ -24607,7 +26468,11 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12(bool globalSceneControl) { @@ -24627,7 +26492,11 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(uint16_t onTime) { @@ -24647,7 +26516,11 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14(uint16_t offWaitTime) { @@ -24667,7 +26540,11 @@ class Test_TC_OO_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15(uint8_t startUpOnOff) { @@ -24789,9 +26666,9 @@ class Test_TC_OO_2_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -24799,9 +26676,9 @@ class Test_TC_OO_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_2(onOff); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, bool onOff) @@ -24809,9 +26686,9 @@ class Test_TC_OO_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_4(onOff); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, bool onOff) @@ -24819,9 +26696,9 @@ class Test_TC_OO_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_6(onOff); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, bool onOff) @@ -24829,9 +26706,9 @@ class Test_TC_OO_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_8(onOff); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, bool onOff) @@ -24839,9 +26716,9 @@ class Test_TC_OO_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_10(onOff); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context, bool onOff) @@ -24849,9 +26726,9 @@ class Test_TC_OO_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_12(onOff); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context, bool onOff) @@ -24880,15 +26757,19 @@ class Test_TC_OO_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -24903,7 +26784,11 @@ class Test_TC_OO_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -24923,15 +26808,19 @@ class Test_TC_OO_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -24946,7 +26835,11 @@ class Test_TC_OO_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(bool onOff) { @@ -24966,15 +26859,19 @@ class Test_TC_OO_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -24989,7 +26886,11 @@ class Test_TC_OO_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(bool onOff) { @@ -25009,15 +26910,19 @@ class Test_TC_OO_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_7(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_7(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -25032,7 +26937,11 @@ class Test_TC_OO_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(bool onOff) { @@ -25052,15 +26961,19 @@ class Test_TC_OO_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_9(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_9(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9() { NextTest(); } @@ -25075,7 +26988,11 @@ class Test_TC_OO_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(bool onOff) { @@ -25095,15 +27012,19 @@ class Test_TC_OO_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_11(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_11(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11() { NextTest(); } @@ -25118,7 +27039,11 @@ class Test_TC_OO_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12(bool onOff) { @@ -25138,15 +27063,19 @@ class Test_TC_OO_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_13(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_13(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13() { NextTest(); } @@ -25161,7 +27090,11 @@ class Test_TC_OO_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14(bool onOff) { @@ -25626,9 +27559,9 @@ class Test_TC_OO_2_3 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, bool onOff) @@ -25636,9 +27569,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_3(onOff); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, bool globalSceneControl) @@ -25646,9 +27579,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_4(globalSceneControl); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, bool onOff) @@ -25656,9 +27589,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_7(onOff); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, bool globalSceneControl) @@ -25666,9 +27599,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_8(globalSceneControl); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, bool onOff) @@ -25676,9 +27609,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_11(onOff); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context, bool globalSceneControl) @@ -25686,9 +27619,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_12(globalSceneControl); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, uint16_t onTime) @@ -25696,9 +27629,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_13(onTime); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context, uint16_t offWaitTime) @@ -25706,9 +27639,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_14(offWaitTime); } - static void OnFailureCallback_16(void * context, EmberAfStatus status) + static void OnFailureCallback_16(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(error); } static void OnSuccessCallback_16(void * context, bool onOff) @@ -25716,9 +27649,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_16(onOff); } - static void OnFailureCallback_17(void * context, EmberAfStatus status) + static void OnFailureCallback_17(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_17(status); + (static_cast(context))->OnFailureResponse_17(error); } static void OnSuccessCallback_17(void * context, uint16_t onTime) @@ -25726,9 +27659,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_17(onTime); } - static void OnFailureCallback_18(void * context, EmberAfStatus status) + static void OnFailureCallback_18(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_18(error); } static void OnSuccessCallback_18(void * context, uint16_t offWaitTime) @@ -25736,9 +27669,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_18(offWaitTime); } - static void OnFailureCallback_20(void * context, EmberAfStatus status) + static void OnFailureCallback_20(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_20(status); + (static_cast(context))->OnFailureResponse_20(error); } static void OnSuccessCallback_20(void * context, bool onOff) @@ -25746,9 +27679,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_20(onOff); } - static void OnFailureCallback_21(void * context, EmberAfStatus status) + static void OnFailureCallback_21(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_21(status); + (static_cast(context))->OnFailureResponse_21(error); } static void OnSuccessCallback_21(void * context, uint16_t onTime) @@ -25756,9 +27689,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_21(onTime); } - static void OnFailureCallback_22(void * context, EmberAfStatus status) + static void OnFailureCallback_22(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_22(status); + (static_cast(context))->OnFailureResponse_22(error); } static void OnSuccessCallback_22(void * context, bool onOff) @@ -25766,9 +27699,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_22(onOff); } - static void OnFailureCallback_23(void * context, EmberAfStatus status) + static void OnFailureCallback_23(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_23(status); + (static_cast(context))->OnFailureResponse_23(error); } static void OnSuccessCallback_23(void * context, uint16_t onTime) @@ -25776,9 +27709,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_23(onTime); } - static void OnFailureCallback_24(void * context, EmberAfStatus status) + static void OnFailureCallback_24(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_24(status); + (static_cast(context))->OnFailureResponse_24(error); } static void OnSuccessCallback_24(void * context, uint16_t offWaitTime) @@ -25786,9 +27719,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_24(offWaitTime); } - static void OnFailureCallback_26(void * context, EmberAfStatus status) + static void OnFailureCallback_26(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_26(status); + (static_cast(context))->OnFailureResponse_26(error); } static void OnSuccessCallback_26(void * context, uint16_t onTime) @@ -25796,9 +27729,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_26(onTime); } - static void OnFailureCallback_27(void * context, EmberAfStatus status) + static void OnFailureCallback_27(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_27(status); + (static_cast(context))->OnFailureResponse_27(error); } static void OnSuccessCallback_27(void * context, uint16_t offWaitTime) @@ -25806,9 +27739,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_27(offWaitTime); } - static void OnFailureCallback_29(void * context, EmberAfStatus status) + static void OnFailureCallback_29(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_29(status); + (static_cast(context))->OnFailureResponse_29(error); } static void OnSuccessCallback_29(void * context, bool onOff) @@ -25816,9 +27749,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_29(onOff); } - static void OnFailureCallback_30(void * context, EmberAfStatus status) + static void OnFailureCallback_30(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_30(status); + (static_cast(context))->OnFailureResponse_30(error); } static void OnSuccessCallback_30(void * context, uint16_t onTime) @@ -25826,9 +27759,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_30(onTime); } - static void OnFailureCallback_31(void * context, EmberAfStatus status) + static void OnFailureCallback_31(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_31(status); + (static_cast(context))->OnFailureResponse_31(error); } static void OnSuccessCallback_31(void * context, bool onOff) @@ -25836,9 +27769,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_31(onOff); } - static void OnFailureCallback_32(void * context, EmberAfStatus status) + static void OnFailureCallback_32(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_32(status); + (static_cast(context))->OnFailureResponse_32(error); } static void OnSuccessCallback_32(void * context, uint16_t onTime) @@ -25846,9 +27779,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_32(onTime); } - static void OnFailureCallback_34(void * context, EmberAfStatus status) + static void OnFailureCallback_34(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_34(status); + (static_cast(context))->OnFailureResponse_34(error); } static void OnSuccessCallback_34(void * context, bool onOff) @@ -25856,9 +27789,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_34(onOff); } - static void OnFailureCallback_35(void * context, EmberAfStatus status) + static void OnFailureCallback_35(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_35(status); + (static_cast(context))->OnFailureResponse_35(error); } static void OnSuccessCallback_35(void * context, uint16_t onTime) @@ -25866,9 +27799,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_35(onTime); } - static void OnFailureCallback_36(void * context, EmberAfStatus status) + static void OnFailureCallback_36(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_36(status); + (static_cast(context))->OnFailureResponse_36(error); } static void OnSuccessCallback_36(void * context, uint16_t offWaitTime) @@ -25876,9 +27809,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_36(offWaitTime); } - static void OnFailureCallback_38(void * context, EmberAfStatus status) + static void OnFailureCallback_38(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_38(status); + (static_cast(context))->OnFailureResponse_38(error); } static void OnSuccessCallback_38(void * context, bool onOff) @@ -25886,9 +27819,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_38(onOff); } - static void OnFailureCallback_39(void * context, EmberAfStatus status) + static void OnFailureCallback_39(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_39(status); + (static_cast(context))->OnFailureResponse_39(error); } static void OnSuccessCallback_39(void * context, uint16_t onTime) @@ -25896,9 +27829,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_39(onTime); } - static void OnFailureCallback_40(void * context, EmberAfStatus status) + static void OnFailureCallback_40(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_40(status); + (static_cast(context))->OnFailureResponse_40(error); } static void OnSuccessCallback_40(void * context, bool onOff) @@ -25906,9 +27839,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_40(onOff); } - static void OnFailureCallback_41(void * context, EmberAfStatus status) + static void OnFailureCallback_41(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_41(status); + (static_cast(context))->OnFailureResponse_41(error); } static void OnSuccessCallback_41(void * context, uint16_t onTime) @@ -25916,9 +27849,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_41(onTime); } - static void OnFailureCallback_42(void * context, EmberAfStatus status) + static void OnFailureCallback_42(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_42(status); + (static_cast(context))->OnFailureResponse_42(error); } static void OnSuccessCallback_42(void * context, uint16_t offWaitTime) @@ -25926,9 +27859,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_42(offWaitTime); } - static void OnFailureCallback_43(void * context, EmberAfStatus status) + static void OnFailureCallback_43(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_43(status); + (static_cast(context))->OnFailureResponse_43(error); } static void OnSuccessCallback_43(void * context, bool onOff) @@ -25936,9 +27869,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_43(onOff); } - static void OnFailureCallback_44(void * context, EmberAfStatus status) + static void OnFailureCallback_44(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_44(status); + (static_cast(context))->OnFailureResponse_44(error); } static void OnSuccessCallback_44(void * context, uint16_t onTime) @@ -25946,9 +27879,9 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_44(onTime); } - static void OnFailureCallback_45(void * context, EmberAfStatus status) + static void OnFailureCallback_45(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_45(status); + (static_cast(context))->OnFailureResponse_45(error); } static void OnSuccessCallback_45(void * context, uint16_t offWaitTime) @@ -25977,15 +27910,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -26006,7 +27943,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(bool onOff) { @@ -26026,7 +27967,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(bool globalSceneControl) { @@ -26046,15 +27991,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -26075,7 +28024,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(bool onOff) { @@ -26095,7 +28048,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(bool globalSceneControl) { @@ -26115,15 +28072,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_9(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_9(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9() { NextTest(); } @@ -26144,7 +28105,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(bool onOff) { @@ -26164,7 +28129,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12(bool globalSceneControl) { @@ -26184,7 +28153,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(uint16_t onTime) { @@ -26204,7 +28177,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14(uint16_t offWaitTime) { @@ -26224,15 +28201,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_15(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_15(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_15(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15() { NextTest(); } @@ -26247,7 +28228,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_16(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_16(bool onOff) { @@ -26267,7 +28252,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_17(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_17(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_17(uint16_t onTime) { @@ -26287,7 +28276,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_18(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_18(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_18(uint16_t offWaitTime) { @@ -26307,15 +28300,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_19(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_19(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_19(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_19(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_19(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_19() { NextTest(); } @@ -26330,7 +28327,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_20(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_20(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_20(bool onOff) { @@ -26350,7 +28351,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_21(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_21(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_21(uint16_t onTime) { @@ -26370,7 +28375,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_22(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_22(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_22(bool onOff) { @@ -26390,7 +28399,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_23(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_23(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_23(uint16_t onTime) { @@ -26410,7 +28423,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_24(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_24(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_24(uint16_t offWaitTime) { @@ -26430,15 +28447,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_25(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_25(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_25(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_25(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_25(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_25() { NextTest(); } @@ -26453,7 +28474,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_26(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_26(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_26(uint16_t onTime) { @@ -26473,7 +28498,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_27(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_27(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_27(uint16_t offWaitTime) { @@ -26493,15 +28522,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_28(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_28(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_28(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_28(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_28(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_28() { NextTest(); } @@ -26516,7 +28549,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_29(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_29(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_29(bool onOff) { @@ -26536,7 +28573,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_30(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_30(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_30(uint16_t onTime) { @@ -26556,7 +28597,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_31(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_31(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_31(bool onOff) { @@ -26576,7 +28621,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_32(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_32(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_32(uint16_t onTime) { @@ -26596,15 +28645,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_33(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_33(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_33(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_33(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_33(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_33() { NextTest(); } @@ -26619,7 +28672,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_34(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_34(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_34(bool onOff) { @@ -26639,7 +28696,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_35(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_35(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_35(uint16_t onTime) { @@ -26659,7 +28720,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_36(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_36(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_36(uint16_t offWaitTime) { @@ -26679,15 +28744,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_37(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_37(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_37(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_37(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_37(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_37() { NextTest(); } @@ -26702,7 +28771,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_38(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_38(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_38(bool onOff) { @@ -26722,7 +28795,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_39(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_39(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_39(uint16_t onTime) { @@ -26742,7 +28819,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_40(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_40(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_40(bool onOff) { @@ -26762,7 +28843,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_41(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_41(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_41(uint16_t onTime) { @@ -26782,7 +28867,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_42(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_42(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_42(uint16_t offWaitTime) { @@ -26802,7 +28891,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_43(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_43(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_43(bool onOff) { @@ -26822,7 +28915,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_44(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_44(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_44(uint16_t onTime) { @@ -26842,7 +28939,11 @@ class Test_TC_OO_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_45(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_45(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_45(uint16_t offWaitTime) { @@ -26862,15 +28963,19 @@ class Test_TC_OO_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_46(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_46(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_46(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_46(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_46(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_46() { NextTest(); } }; @@ -26952,9 +29057,9 @@ class Test_TC_PS_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -26962,9 +29067,9 @@ class Test_TC_PS_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) @@ -26972,16 +29077,16 @@ class Test_TC_PS_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(clusterRevision); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint16_t clusterRevision) @@ -26989,9 +29094,9 @@ class Test_TC_PS_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(clusterRevision); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, const chip::app::DataModel::DecodableList & attributeList) @@ -27020,7 +29125,11 @@ class Test_TC_PS_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -27040,7 +29149,11 @@ class Test_TC_PS_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t clusterRevision) { @@ -27062,9 +29175,10 @@ class Test_TC_PS_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) + void OnFailureResponse_3(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -27081,7 +29195,11 @@ class Test_TC_PS_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint16_t clusterRevision) { @@ -27101,7 +29219,11 @@ class Test_TC_PS_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(const chip::app::DataModel::DecodableList & attributeList) { @@ -27175,9 +29297,9 @@ class Test_TC_PRS_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -27185,9 +29307,9 @@ class Test_TC_PRS_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } @@ -27213,7 +29335,11 @@ class Test_TC_PRS_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -27236,9 +29362,10 @@ class Test_TC_PRS_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -27337,9 +29464,9 @@ class Test_TC_PRS_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, int16_t measuredValue) @@ -27347,16 +29474,16 @@ class Test_TC_PRS_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(measuredValue); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, int16_t measuredValue) @@ -27364,9 +29491,9 @@ class Test_TC_PRS_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(measuredValue); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, int16_t minMeasuredValue) @@ -27374,16 +29501,16 @@ class Test_TC_PRS_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(minMeasuredValue); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, int16_t minMeasuredValue) @@ -27391,9 +29518,9 @@ class Test_TC_PRS_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(minMeasuredValue); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, int16_t maxMeasuredValue) @@ -27401,16 +29528,16 @@ class Test_TC_PRS_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(maxMeasuredValue); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, int16_t maxMeasuredValue) @@ -27439,7 +29566,11 @@ class Test_TC_PRS_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(int16_t measuredValue) { @@ -27461,9 +29592,10 @@ class Test_TC_PRS_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -27480,7 +29612,11 @@ class Test_TC_PRS_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(int16_t measuredValue) { @@ -27501,7 +29637,11 @@ class Test_TC_PRS_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(int16_t minMeasuredValue) { @@ -27524,9 +29664,10 @@ class Test_TC_PRS_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) + void OnFailureResponse_5(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -27544,7 +29685,11 @@ class Test_TC_PRS_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(int16_t minMeasuredValue) { @@ -27565,7 +29710,11 @@ class Test_TC_PRS_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(int16_t maxMeasuredValue) { @@ -27588,9 +29737,10 @@ class Test_TC_PRS_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) + void OnFailureResponse_8(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -27608,7 +29758,11 @@ class Test_TC_PRS_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(int16_t maxMeasuredValue) { @@ -27687,9 +29841,9 @@ class Test_TC_PCC_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -27697,16 +29851,16 @@ class Test_TC_PCC_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint32_t featureMap) @@ -27736,7 +29890,11 @@ class Test_TC_PCC_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -27759,9 +29917,10 @@ class Test_TC_PCC_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -27779,7 +29938,11 @@ class Test_TC_PCC_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint32_t featureMap) { @@ -28040,9 +30203,9 @@ class Test_TC_PCC_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, int16_t maxPressure) @@ -28050,9 +30213,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(maxPressure); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t maxSpeed) @@ -28060,9 +30223,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(maxSpeed); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint16_t maxFlow) @@ -28070,9 +30233,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(maxFlow); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint8_t effectiveOperationMode) @@ -28080,9 +30243,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(effectiveOperationMode); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint8_t effectiveControlMode) @@ -28090,9 +30253,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(effectiveControlMode); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, int16_t capacity) @@ -28100,9 +30263,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(capacity); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, int16_t maxPressure) @@ -28110,9 +30273,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(maxPressure); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, uint16_t maxSpeed) @@ -28120,9 +30283,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_8(maxSpeed); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, uint16_t maxFlow) @@ -28130,9 +30293,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(maxFlow); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, uint8_t effectiveOperationMode) @@ -28140,9 +30303,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_10(effectiveOperationMode); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, uint8_t effectiveControlMode) @@ -28150,9 +30313,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_11(effectiveControlMode); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context, int16_t capacity) @@ -28160,9 +30323,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_12(capacity); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, int16_t minConstPressure) @@ -28170,9 +30333,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_13(minConstPressure); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context, int16_t maxConstPressure) @@ -28180,9 +30343,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_14(maxConstPressure); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_15(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_15(status); + (static_cast(context))->OnFailureResponse_15(error); } static void OnSuccessCallback_15(void * context, int16_t minCompPressure) @@ -28190,9 +30353,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_15(minCompPressure); } - static void OnFailureCallback_16(void * context, EmberAfStatus status) + static void OnFailureCallback_16(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(error); } static void OnSuccessCallback_16(void * context, int16_t maxCompPressure) @@ -28200,9 +30363,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_16(maxCompPressure); } - static void OnFailureCallback_17(void * context, EmberAfStatus status) + static void OnFailureCallback_17(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_17(status); + (static_cast(context))->OnFailureResponse_17(error); } static void OnSuccessCallback_17(void * context, uint16_t minConstSpeed) @@ -28210,9 +30373,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_17(minConstSpeed); } - static void OnFailureCallback_18(void * context, EmberAfStatus status) + static void OnFailureCallback_18(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_18(error); } static void OnSuccessCallback_18(void * context, uint16_t maxConstSpeed) @@ -28220,9 +30383,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_18(maxConstSpeed); } - static void OnFailureCallback_19(void * context, EmberAfStatus status) + static void OnFailureCallback_19(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_19(status); + (static_cast(context))->OnFailureResponse_19(error); } static void OnSuccessCallback_19(void * context, uint16_t minConstFlow) @@ -28230,9 +30393,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_19(minConstFlow); } - static void OnFailureCallback_20(void * context, EmberAfStatus status) + static void OnFailureCallback_20(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_20(status); + (static_cast(context))->OnFailureResponse_20(error); } static void OnSuccessCallback_20(void * context, uint16_t maxConstFlow) @@ -28240,9 +30403,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_20(maxConstFlow); } - static void OnFailureCallback_21(void * context, EmberAfStatus status) + static void OnFailureCallback_21(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_21(status); + (static_cast(context))->OnFailureResponse_21(error); } static void OnSuccessCallback_21(void * context, int16_t minConstTemp) @@ -28250,9 +30413,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_21(minConstTemp); } - static void OnFailureCallback_22(void * context, EmberAfStatus status) + static void OnFailureCallback_22(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_22(status); + (static_cast(context))->OnFailureResponse_22(error); } static void OnSuccessCallback_22(void * context, int16_t maxConstTemp) @@ -28260,9 +30423,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_22(maxConstTemp); } - static void OnFailureCallback_23(void * context, EmberAfStatus status) + static void OnFailureCallback_23(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_23(status); + (static_cast(context))->OnFailureResponse_23(error); } static void OnSuccessCallback_23(void * context, uint16_t pumpStatus) @@ -28270,9 +30433,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_23(pumpStatus); } - static void OnFailureCallback_24(void * context, EmberAfStatus status) + static void OnFailureCallback_24(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_24(status); + (static_cast(context))->OnFailureResponse_24(error); } static void OnSuccessCallback_24(void * context, uint16_t pumpStatus) @@ -28280,9 +30443,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_24(pumpStatus); } - static void OnFailureCallback_25(void * context, EmberAfStatus status) + static void OnFailureCallback_25(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_25(status); + (static_cast(context))->OnFailureResponse_25(error); } static void OnSuccessCallback_25(void * context, uint16_t speed) @@ -28290,9 +30453,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_25(speed); } - static void OnFailureCallback_26(void * context, EmberAfStatus status) + static void OnFailureCallback_26(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_26(status); + (static_cast(context))->OnFailureResponse_26(error); } static void OnSuccessCallback_26(void * context, const chip::app::DataModel::Nullable & lifetimeRunningHours) @@ -28300,9 +30463,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_26(lifetimeRunningHours); } - static void OnFailureCallback_27(void * context, EmberAfStatus status) + static void OnFailureCallback_27(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_27(status); + (static_cast(context))->OnFailureResponse_27(error); } static void OnSuccessCallback_27(void * context, const chip::app::DataModel::Nullable & lifetimeRunningHours) @@ -28310,9 +30473,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_27(lifetimeRunningHours); } - static void OnFailureCallback_28(void * context, EmberAfStatus status) + static void OnFailureCallback_28(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_28(status); + (static_cast(context))->OnFailureResponse_28(error); } static void OnSuccessCallback_28(void * context, uint32_t power) @@ -28320,9 +30483,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_28(power); } - static void OnFailureCallback_29(void * context, EmberAfStatus status) + static void OnFailureCallback_29(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_29(status); + (static_cast(context))->OnFailureResponse_29(error); } static void OnSuccessCallback_29(void * context, const chip::app::DataModel::Nullable & lifetimeEnergyConsumed) @@ -28330,9 +30493,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_29(lifetimeEnergyConsumed); } - static void OnFailureCallback_30(void * context, EmberAfStatus status) + static void OnFailureCallback_30(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_30(status); + (static_cast(context))->OnFailureResponse_30(error); } static void OnSuccessCallback_30(void * context, const chip::app::DataModel::Nullable & lifetimeEnergyConsumed) @@ -28340,16 +30503,16 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_30(lifetimeEnergyConsumed); } - static void OnFailureCallback_31(void * context, EmberAfStatus status) + static void OnFailureCallback_31(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_31(status); + (static_cast(context))->OnFailureResponse_31(error); } static void OnSuccessCallback_31(void * context) { (static_cast(context))->OnSuccessResponse_31(); } - static void OnFailureCallback_32(void * context, EmberAfStatus status) + static void OnFailureCallback_32(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_32(status); + (static_cast(context))->OnFailureResponse_32(error); } static void OnSuccessCallback_32(void * context, int16_t minConstPressure) @@ -28357,9 +30520,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_32(minConstPressure); } - static void OnFailureCallback_33(void * context, EmberAfStatus status) + static void OnFailureCallback_33(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_33(status); + (static_cast(context))->OnFailureResponse_33(error); } static void OnSuccessCallback_33(void * context, int16_t maxConstPressure) @@ -28367,9 +30530,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_33(maxConstPressure); } - static void OnFailureCallback_34(void * context, EmberAfStatus status) + static void OnFailureCallback_34(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_34(status); + (static_cast(context))->OnFailureResponse_34(error); } static void OnSuccessCallback_34(void * context, int16_t minCompPressure) @@ -28377,9 +30540,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_34(minCompPressure); } - static void OnFailureCallback_35(void * context, EmberAfStatus status) + static void OnFailureCallback_35(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_35(status); + (static_cast(context))->OnFailureResponse_35(error); } static void OnSuccessCallback_35(void * context, int16_t maxCompPressure) @@ -28387,9 +30550,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_35(maxCompPressure); } - static void OnFailureCallback_36(void * context, EmberAfStatus status) + static void OnFailureCallback_36(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_36(status); + (static_cast(context))->OnFailureResponse_36(error); } static void OnSuccessCallback_36(void * context, uint16_t minConstSpeed) @@ -28397,9 +30560,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_36(minConstSpeed); } - static void OnFailureCallback_37(void * context, EmberAfStatus status) + static void OnFailureCallback_37(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_37(status); + (static_cast(context))->OnFailureResponse_37(error); } static void OnSuccessCallback_37(void * context, uint16_t maxConstSpeed) @@ -28407,9 +30570,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_37(maxConstSpeed); } - static void OnFailureCallback_38(void * context, EmberAfStatus status) + static void OnFailureCallback_38(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_38(status); + (static_cast(context))->OnFailureResponse_38(error); } static void OnSuccessCallback_38(void * context, uint16_t minConstFlow) @@ -28417,9 +30580,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_38(minConstFlow); } - static void OnFailureCallback_39(void * context, EmberAfStatus status) + static void OnFailureCallback_39(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_39(status); + (static_cast(context))->OnFailureResponse_39(error); } static void OnSuccessCallback_39(void * context, uint16_t maxConstFlow) @@ -28427,9 +30590,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_39(maxConstFlow); } - static void OnFailureCallback_40(void * context, EmberAfStatus status) + static void OnFailureCallback_40(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_40(status); + (static_cast(context))->OnFailureResponse_40(error); } static void OnSuccessCallback_40(void * context, int16_t minConstTemp) @@ -28437,9 +30600,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_40(minConstTemp); } - static void OnFailureCallback_41(void * context, EmberAfStatus status) + static void OnFailureCallback_41(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_41(status); + (static_cast(context))->OnFailureResponse_41(error); } static void OnSuccessCallback_41(void * context, int16_t maxConstTemp) @@ -28447,9 +30610,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_41(maxConstTemp); } - static void OnFailureCallback_42(void * context, EmberAfStatus status) + static void OnFailureCallback_42(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_42(status); + (static_cast(context))->OnFailureResponse_42(error); } static void OnSuccessCallback_42(void * context, uint16_t pumpStatus) @@ -28457,9 +30620,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_42(pumpStatus); } - static void OnFailureCallback_43(void * context, EmberAfStatus status) + static void OnFailureCallback_43(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_43(status); + (static_cast(context))->OnFailureResponse_43(error); } static void OnSuccessCallback_43(void * context, uint16_t pumpStatus) @@ -28467,9 +30630,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_43(pumpStatus); } - static void OnFailureCallback_44(void * context, EmberAfStatus status) + static void OnFailureCallback_44(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_44(status); + (static_cast(context))->OnFailureResponse_44(error); } static void OnSuccessCallback_44(void * context, uint16_t speed) @@ -28477,9 +30640,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_44(speed); } - static void OnFailureCallback_45(void * context, EmberAfStatus status) + static void OnFailureCallback_45(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_45(status); + (static_cast(context))->OnFailureResponse_45(error); } static void OnSuccessCallback_45(void * context, const chip::app::DataModel::Nullable & lifetimeRunningHours) @@ -28487,9 +30650,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_45(lifetimeRunningHours); } - static void OnFailureCallback_46(void * context, EmberAfStatus status) + static void OnFailureCallback_46(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_46(status); + (static_cast(context))->OnFailureResponse_46(error); } static void OnSuccessCallback_46(void * context, const chip::app::DataModel::Nullable & lifetimeRunningHours) @@ -28497,9 +30660,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_46(lifetimeRunningHours); } - static void OnFailureCallback_47(void * context, EmberAfStatus status) + static void OnFailureCallback_47(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_47(status); + (static_cast(context))->OnFailureResponse_47(error); } static void OnSuccessCallback_47(void * context, uint32_t power) @@ -28507,9 +30670,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_47(power); } - static void OnFailureCallback_48(void * context, EmberAfStatus status) + static void OnFailureCallback_48(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_48(status); + (static_cast(context))->OnFailureResponse_48(error); } static void OnSuccessCallback_48(void * context, const chip::app::DataModel::Nullable & lifetimeEnergyConsumed) @@ -28517,9 +30680,9 @@ class Test_TC_PCC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_48(lifetimeEnergyConsumed); } - static void OnFailureCallback_49(void * context, EmberAfStatus status) + static void OnFailureCallback_49(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_49(status); + (static_cast(context))->OnFailureResponse_49(error); } static void OnSuccessCallback_49(void * context, const chip::app::DataModel::Nullable & lifetimeEnergyConsumed) @@ -28549,7 +30712,11 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(int16_t maxPressure) { @@ -28569,7 +30736,11 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t maxSpeed) { @@ -28588,7 +30759,11 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint16_t maxFlow) { @@ -28608,7 +30783,11 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t effectiveOperationMode) { @@ -28628,7 +30807,11 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint8_t effectiveControlMode) { @@ -28648,7 +30831,11 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(int16_t capacity) { @@ -28668,7 +30855,11 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(int16_t maxPressure) { @@ -28688,7 +30879,11 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(uint16_t maxSpeed) { @@ -28707,7 +30902,11 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint16_t maxFlow) { @@ -28727,7 +30926,11 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(uint8_t effectiveOperationMode) { @@ -28747,7 +30950,11 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(uint8_t effectiveControlMode) { @@ -28767,7 +30974,11 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12(int16_t capacity) { @@ -28787,9 +30998,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) + void OnFailureResponse_13(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_13(int16_t minConstPressure) @@ -28810,9 +31022,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) + void OnFailureResponse_14(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_14(int16_t maxConstPressure) @@ -28833,9 +31046,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) + void OnFailureResponse_15(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_15(int16_t minCompPressure) @@ -28856,9 +31070,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) + void OnFailureResponse_16(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_16(int16_t maxCompPressure) @@ -28879,9 +31094,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_17(EmberAfStatus status) + void OnFailureResponse_17(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_17(uint16_t minConstSpeed) @@ -28902,9 +31118,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_18(EmberAfStatus status) + void OnFailureResponse_18(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_18(uint16_t maxConstSpeed) @@ -28925,9 +31142,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_19(EmberAfStatus status) + void OnFailureResponse_19(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_19(uint16_t minConstFlow) @@ -28948,9 +31166,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_20(EmberAfStatus status) + void OnFailureResponse_20(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_20(uint16_t maxConstFlow) @@ -28971,9 +31190,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_21(EmberAfStatus status) + void OnFailureResponse_21(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_21(int16_t minConstTemp) @@ -28995,9 +31215,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_22(EmberAfStatus status) + void OnFailureResponse_22(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_22(int16_t maxConstTemp) @@ -29019,9 +31240,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_23(EmberAfStatus status) + void OnFailureResponse_23(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_23(uint16_t pumpStatus) @@ -29043,9 +31265,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_24(EmberAfStatus status) + void OnFailureResponse_24(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_24(uint16_t pumpStatus) @@ -29065,9 +31288,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_25(EmberAfStatus status) + void OnFailureResponse_25(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_25(uint16_t speed) @@ -29088,9 +31312,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_26(EmberAfStatus status) + void OnFailureResponse_26(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_26(const chip::app::DataModel::Nullable & lifetimeRunningHours) @@ -29113,9 +31338,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_27(EmberAfStatus status) + void OnFailureResponse_27(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_27(const chip::app::DataModel::Nullable & lifetimeRunningHours) @@ -29135,9 +31361,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_28(EmberAfStatus status) + void OnFailureResponse_28(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_28(uint32_t power) @@ -29158,9 +31385,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_29(EmberAfStatus status) + void OnFailureResponse_29(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_29(const chip::app::DataModel::Nullable & lifetimeEnergyConsumed) @@ -29183,9 +31411,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_30(EmberAfStatus status) + void OnFailureResponse_30(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_30(const chip::app::DataModel::Nullable & lifetimeEnergyConsumed) @@ -29210,9 +31439,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_31(EmberAfStatus status) + void OnFailureResponse_31(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_31() { NextTest(); } @@ -29229,9 +31459,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_32(EmberAfStatus status) + void OnFailureResponse_32(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_32(int16_t minConstPressure) @@ -29252,9 +31483,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_33(EmberAfStatus status) + void OnFailureResponse_33(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_33(int16_t maxConstPressure) @@ -29275,9 +31507,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_34(EmberAfStatus status) + void OnFailureResponse_34(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_34(int16_t minCompPressure) @@ -29298,9 +31531,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_35(EmberAfStatus status) + void OnFailureResponse_35(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_35(int16_t maxCompPressure) @@ -29321,9 +31555,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_36(EmberAfStatus status) + void OnFailureResponse_36(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_36(uint16_t minConstSpeed) @@ -29344,9 +31579,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_37(EmberAfStatus status) + void OnFailureResponse_37(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_37(uint16_t maxConstSpeed) @@ -29367,9 +31603,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_38(EmberAfStatus status) + void OnFailureResponse_38(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_38(uint16_t minConstFlow) @@ -29390,9 +31627,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_39(EmberAfStatus status) + void OnFailureResponse_39(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_39(uint16_t maxConstFlow) @@ -29413,9 +31651,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_40(EmberAfStatus status) + void OnFailureResponse_40(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_40(int16_t minConstTemp) @@ -29437,9 +31676,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_41(EmberAfStatus status) + void OnFailureResponse_41(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_41(int16_t maxConstTemp) @@ -29461,9 +31701,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_42(EmberAfStatus status) + void OnFailureResponse_42(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_42(uint16_t pumpStatus) @@ -29485,9 +31726,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_43(EmberAfStatus status) + void OnFailureResponse_43(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_43(uint16_t pumpStatus) @@ -29507,9 +31749,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_44(EmberAfStatus status) + void OnFailureResponse_44(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_44(uint16_t speed) @@ -29530,7 +31773,11 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_45(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_45(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_45(const chip::app::DataModel::Nullable & lifetimeRunningHours) { @@ -29552,9 +31799,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_46(EmberAfStatus status) + void OnFailureResponse_46(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_46(const chip::app::DataModel::Nullable & lifetimeRunningHours) @@ -29574,9 +31822,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_47(EmberAfStatus status) + void OnFailureResponse_47(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_47(uint32_t power) @@ -29597,9 +31846,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_48(EmberAfStatus status) + void OnFailureResponse_48(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_48(const chip::app::DataModel::Nullable & lifetimeEnergyConsumed) @@ -29622,9 +31872,10 @@ class Test_TC_PCC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_49(EmberAfStatus status) + void OnFailureResponse_49(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_49(const chip::app::DataModel::Nullable & lifetimeEnergyConsumed) @@ -29717,23 +31968,23 @@ class Test_TC_PCC_2_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } @@ -29763,7 +32014,11 @@ class Test_TC_PCC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -29782,7 +32037,11 @@ class Test_TC_PCC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2() { NextTest(); } @@ -29801,7 +32060,11 @@ class Test_TC_PCC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } }; @@ -29943,16 +32206,16 @@ class Test_TC_PCC_2_3 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t effectiveOperationMode) @@ -29960,16 +32223,16 @@ class Test_TC_PCC_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_2(effectiveOperationMode); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint8_t effectiveControlMode) @@ -29977,37 +32240,37 @@ class Test_TC_PCC_2_3 : public TestCommand (static_cast(context))->OnSuccessResponse_4(effectiveControlMode); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } @@ -30037,7 +32300,11 @@ class Test_TC_PCC_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -30053,7 +32320,11 @@ class Test_TC_PCC_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t effectiveOperationMode) { @@ -30077,7 +32348,11 @@ class Test_TC_PCC_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -30093,7 +32368,11 @@ class Test_TC_PCC_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t effectiveControlMode) { @@ -30117,7 +32396,11 @@ class Test_TC_PCC_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -30136,7 +32419,11 @@ class Test_TC_PCC_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6() { NextTest(); } @@ -30155,7 +32442,11 @@ class Test_TC_PCC_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -30174,7 +32465,11 @@ class Test_TC_PCC_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8() { NextTest(); } @@ -30193,7 +32488,11 @@ class Test_TC_PCC_2_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9() { NextTest(); } }; @@ -30263,9 +32562,9 @@ class Test_TC_RH_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -30273,9 +32572,9 @@ class Test_TC_RH_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } @@ -30302,7 +32601,11 @@ class Test_TC_RH_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -30325,9 +32628,10 @@ class Test_TC_RH_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -30406,9 +32710,9 @@ class Test_TC_RH_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t measuredValue) @@ -30416,9 +32720,9 @@ class Test_TC_RH_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(measuredValue); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t minMeasuredValue) @@ -30426,9 +32730,9 @@ class Test_TC_RH_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(minMeasuredValue); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint16_t tolerance) @@ -30436,9 +32740,9 @@ class Test_TC_RH_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(tolerance); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint16_t tolerance) @@ -30468,7 +32772,11 @@ class Test_TC_RH_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t measuredValue) { @@ -30488,7 +32796,11 @@ class Test_TC_RH_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t minMeasuredValue) { @@ -30510,9 +32822,10 @@ class Test_TC_RH_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) + void OnFailureResponse_3(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_3(uint16_t tolerance) @@ -30534,9 +32847,10 @@ class Test_TC_RH_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) + void OnFailureResponse_4(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_4(uint16_t tolerance) @@ -30622,9 +32936,9 @@ class Test_TC_RH_2_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t measuredValue) @@ -30632,9 +32946,9 @@ class Test_TC_RH_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(measuredValue); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t measuredValue) @@ -30664,7 +32978,11 @@ class Test_TC_RH_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t measuredValue) { @@ -30684,7 +33002,11 @@ class Test_TC_RH_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t measuredValue) { @@ -30773,9 +33095,9 @@ class Test_TC_SWTCH_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint8_t numberOfPositions) @@ -30783,9 +33105,9 @@ class Test_TC_SWTCH_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(numberOfPositions); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t numberOfPositions) @@ -30793,9 +33115,9 @@ class Test_TC_SWTCH_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(numberOfPositions); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint8_t currentPosition) @@ -30803,9 +33125,9 @@ class Test_TC_SWTCH_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(currentPosition); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint8_t currentPosition) @@ -30813,9 +33135,9 @@ class Test_TC_SWTCH_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(currentPosition); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint8_t multiPressMax) @@ -30823,9 +33145,9 @@ class Test_TC_SWTCH_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(multiPressMax); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint8_t multiPressMax) @@ -30854,7 +33176,11 @@ class Test_TC_SWTCH_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t numberOfPositions) { @@ -30874,7 +33200,11 @@ class Test_TC_SWTCH_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t numberOfPositions) { @@ -30894,7 +33224,11 @@ class Test_TC_SWTCH_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t currentPosition) { @@ -30914,7 +33248,11 @@ class Test_TC_SWTCH_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t currentPosition) { @@ -30934,7 +33272,11 @@ class Test_TC_SWTCH_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint8_t multiPressMax) { @@ -30954,7 +33296,11 @@ class Test_TC_SWTCH_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint8_t multiPressMax) { @@ -31168,9 +33514,9 @@ class Test_TC_SWTCH_2_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint8_t currentPosition) @@ -31178,9 +33524,9 @@ class Test_TC_SWTCH_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_3(currentPosition); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, uint8_t currentPosition) @@ -31221,7 +33567,11 @@ class Test_TC_SWTCH_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t currentPosition) { @@ -31259,7 +33609,11 @@ class Test_TC_SWTCH_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(uint8_t currentPosition) { @@ -31522,9 +33876,9 @@ class Test_TC_TM_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -31532,9 +33886,9 @@ class Test_TC_TM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) @@ -31542,16 +33896,16 @@ class Test_TC_TM_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(clusterRevision); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint16_t clusterRevision) @@ -31581,7 +33935,11 @@ class Test_TC_TM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -31602,7 +33960,11 @@ class Test_TC_TM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t clusterRevision) { @@ -31625,9 +33987,10 @@ class Test_TC_TM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) + void OnFailureResponse_3(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -31645,7 +34008,11 @@ class Test_TC_TM_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint16_t clusterRevision) { @@ -31719,9 +34086,9 @@ class Test_TC_TM_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, int16_t measuredValue) @@ -31729,9 +34096,9 @@ class Test_TC_TM_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(measuredValue); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t tolerance) @@ -31761,7 +34128,11 @@ class Test_TC_TM_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(int16_t measuredValue) { @@ -31780,9 +34151,10 @@ class Test_TC_TM_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_2(uint16_t tolerance) @@ -31868,9 +34240,9 @@ class Test_TC_TM_2_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, int16_t measuredValue) @@ -31878,9 +34250,9 @@ class Test_TC_TM_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(measuredValue); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, int16_t measuredValue) @@ -31910,7 +34282,11 @@ class Test_TC_TM_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(int16_t measuredValue) { @@ -31930,7 +34306,11 @@ class Test_TC_TM_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(int16_t measuredValue) { @@ -32008,9 +34388,9 @@ class Test_TC_TSTAT_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -32018,16 +34398,16 @@ class Test_TC_TSTAT_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint32_t featureMap) @@ -32056,7 +34436,11 @@ class Test_TC_TSTAT_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -32078,9 +34462,10 @@ class Test_TC_TSTAT_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -32097,7 +34482,11 @@ class Test_TC_TSTAT_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint32_t featureMap) { @@ -32448,9 +34837,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, int16_t localTemperature) @@ -32458,9 +34847,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(localTemperature); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, int16_t absMinHeatSetpointLimit) @@ -32468,9 +34857,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(absMinHeatSetpointLimit); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, int16_t absMinHeatSetpointLimit) @@ -32478,16 +34867,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(absMinHeatSetpointLimit); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, int16_t absMinHeatSetpointLimit) @@ -32495,9 +34884,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(absMinHeatSetpointLimit); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, int16_t absMaxHeatSetpointLimit) @@ -32505,9 +34894,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(absMaxHeatSetpointLimit); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, int16_t absMaxHeatSetpointLimit) @@ -32515,16 +34904,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(absMaxHeatSetpointLimit); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, int16_t absMaxHeatSetpointLimit) @@ -32532,9 +34921,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(absMaxHeatSetpointLimit); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, int16_t absMinCoolSetpointLimit) @@ -32542,9 +34931,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_10(absMinCoolSetpointLimit); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, int16_t absMinCoolSetpointLimit) @@ -32552,16 +34941,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_11(absMinCoolSetpointLimit); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, int16_t absMinCoolSetpointLimit) @@ -32569,9 +34958,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_13(absMinCoolSetpointLimit); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context, int16_t absMaxCoolSetpointLimit) @@ -32579,9 +34968,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_14(absMaxCoolSetpointLimit); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_15(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_15(status); + (static_cast(context))->OnFailureResponse_15(error); } static void OnSuccessCallback_15(void * context, int16_t absMaxCoolSetpointLimit) @@ -32589,16 +34978,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_15(absMaxCoolSetpointLimit); } - static void OnFailureCallback_16(void * context, EmberAfStatus status) + static void OnFailureCallback_16(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(error); } static void OnSuccessCallback_16(void * context) { (static_cast(context))->OnSuccessResponse_16(); } - static void OnFailureCallback_17(void * context, EmberAfStatus status) + static void OnFailureCallback_17(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_17(status); + (static_cast(context))->OnFailureResponse_17(error); } static void OnSuccessCallback_17(void * context, int16_t absMaxCoolSetpointLimit) @@ -32606,9 +34995,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_17(absMaxCoolSetpointLimit); } - static void OnFailureCallback_18(void * context, EmberAfStatus status) + static void OnFailureCallback_18(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_18(error); } static void OnSuccessCallback_18(void * context, int16_t occupiedCoolingSetpoint) @@ -32616,9 +35005,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_18(occupiedCoolingSetpoint); } - static void OnFailureCallback_19(void * context, EmberAfStatus status) + static void OnFailureCallback_19(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_19(status); + (static_cast(context))->OnFailureResponse_19(error); } static void OnSuccessCallback_19(void * context, int16_t occupiedCoolingSetpoint) @@ -32626,16 +35015,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_19(occupiedCoolingSetpoint); } - static void OnFailureCallback_20(void * context, EmberAfStatus status) + static void OnFailureCallback_20(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_20(status); + (static_cast(context))->OnFailureResponse_20(error); } static void OnSuccessCallback_20(void * context) { (static_cast(context))->OnSuccessResponse_20(); } - static void OnFailureCallback_21(void * context, EmberAfStatus status) + static void OnFailureCallback_21(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_21(status); + (static_cast(context))->OnFailureResponse_21(error); } static void OnSuccessCallback_21(void * context, int16_t occupiedCoolingSetpoint) @@ -32643,9 +35032,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_21(occupiedCoolingSetpoint); } - static void OnFailureCallback_22(void * context, EmberAfStatus status) + static void OnFailureCallback_22(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_22(status); + (static_cast(context))->OnFailureResponse_22(error); } static void OnSuccessCallback_22(void * context, int16_t occupiedHeatingSetpoint) @@ -32653,9 +35042,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_22(occupiedHeatingSetpoint); } - static void OnFailureCallback_23(void * context, EmberAfStatus status) + static void OnFailureCallback_23(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_23(status); + (static_cast(context))->OnFailureResponse_23(error); } static void OnSuccessCallback_23(void * context, int16_t occupiedHeatingSetpoint) @@ -32663,16 +35052,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_23(occupiedHeatingSetpoint); } - static void OnFailureCallback_24(void * context, EmberAfStatus status) + static void OnFailureCallback_24(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_24(status); + (static_cast(context))->OnFailureResponse_24(error); } static void OnSuccessCallback_24(void * context) { (static_cast(context))->OnSuccessResponse_24(); } - static void OnFailureCallback_25(void * context, EmberAfStatus status) + static void OnFailureCallback_25(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_25(status); + (static_cast(context))->OnFailureResponse_25(error); } static void OnSuccessCallback_25(void * context, int16_t occupiedHeatingSetpoint) @@ -32680,9 +35069,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_25(occupiedHeatingSetpoint); } - static void OnFailureCallback_26(void * context, EmberAfStatus status) + static void OnFailureCallback_26(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_26(status); + (static_cast(context))->OnFailureResponse_26(error); } static void OnSuccessCallback_26(void * context, int16_t minHeatSetpointLimit) @@ -32690,9 +35079,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_26(minHeatSetpointLimit); } - static void OnFailureCallback_27(void * context, EmberAfStatus status) + static void OnFailureCallback_27(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_27(status); + (static_cast(context))->OnFailureResponse_27(error); } static void OnSuccessCallback_27(void * context, int16_t minHeatSetpointLimit) @@ -32700,16 +35089,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_27(minHeatSetpointLimit); } - static void OnFailureCallback_28(void * context, EmberAfStatus status) + static void OnFailureCallback_28(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_28(status); + (static_cast(context))->OnFailureResponse_28(error); } static void OnSuccessCallback_28(void * context) { (static_cast(context))->OnSuccessResponse_28(); } - static void OnFailureCallback_29(void * context, EmberAfStatus status) + static void OnFailureCallback_29(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_29(status); + (static_cast(context))->OnFailureResponse_29(error); } static void OnSuccessCallback_29(void * context, int16_t minHeatSetpointLimit) @@ -32717,9 +35106,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_29(minHeatSetpointLimit); } - static void OnFailureCallback_30(void * context, EmberAfStatus status) + static void OnFailureCallback_30(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_30(status); + (static_cast(context))->OnFailureResponse_30(error); } static void OnSuccessCallback_30(void * context, int16_t maxHeatSetpointLimit) @@ -32727,9 +35116,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_30(maxHeatSetpointLimit); } - static void OnFailureCallback_31(void * context, EmberAfStatus status) + static void OnFailureCallback_31(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_31(status); + (static_cast(context))->OnFailureResponse_31(error); } static void OnSuccessCallback_31(void * context, int16_t maxHeatSetpointLimit) @@ -32737,16 +35126,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_31(maxHeatSetpointLimit); } - static void OnFailureCallback_32(void * context, EmberAfStatus status) + static void OnFailureCallback_32(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_32(status); + (static_cast(context))->OnFailureResponse_32(error); } static void OnSuccessCallback_32(void * context) { (static_cast(context))->OnSuccessResponse_32(); } - static void OnFailureCallback_33(void * context, EmberAfStatus status) + static void OnFailureCallback_33(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_33(status); + (static_cast(context))->OnFailureResponse_33(error); } static void OnSuccessCallback_33(void * context, int16_t maxHeatSetpointLimit) @@ -32754,9 +35143,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_33(maxHeatSetpointLimit); } - static void OnFailureCallback_34(void * context, EmberAfStatus status) + static void OnFailureCallback_34(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_34(status); + (static_cast(context))->OnFailureResponse_34(error); } static void OnSuccessCallback_34(void * context, int16_t minCoolSetpointLimit) @@ -32764,9 +35153,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_34(minCoolSetpointLimit); } - static void OnFailureCallback_35(void * context, EmberAfStatus status) + static void OnFailureCallback_35(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_35(status); + (static_cast(context))->OnFailureResponse_35(error); } static void OnSuccessCallback_35(void * context, int16_t minCoolSetpointLimit) @@ -32774,16 +35163,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_35(minCoolSetpointLimit); } - static void OnFailureCallback_36(void * context, EmberAfStatus status) + static void OnFailureCallback_36(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_36(status); + (static_cast(context))->OnFailureResponse_36(error); } static void OnSuccessCallback_36(void * context) { (static_cast(context))->OnSuccessResponse_36(); } - static void OnFailureCallback_37(void * context, EmberAfStatus status) + static void OnFailureCallback_37(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_37(status); + (static_cast(context))->OnFailureResponse_37(error); } static void OnSuccessCallback_37(void * context, int16_t minCoolSetpointLimit) @@ -32791,9 +35180,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_37(minCoolSetpointLimit); } - static void OnFailureCallback_38(void * context, EmberAfStatus status) + static void OnFailureCallback_38(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_38(status); + (static_cast(context))->OnFailureResponse_38(error); } static void OnSuccessCallback_38(void * context, int16_t maxCoolSetpointLimit) @@ -32801,9 +35190,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_38(maxCoolSetpointLimit); } - static void OnFailureCallback_39(void * context, EmberAfStatus status) + static void OnFailureCallback_39(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_39(status); + (static_cast(context))->OnFailureResponse_39(error); } static void OnSuccessCallback_39(void * context, int16_t maxCoolSetpointLimit) @@ -32811,16 +35200,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_39(maxCoolSetpointLimit); } - static void OnFailureCallback_40(void * context, EmberAfStatus status) + static void OnFailureCallback_40(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_40(status); + (static_cast(context))->OnFailureResponse_40(error); } static void OnSuccessCallback_40(void * context) { (static_cast(context))->OnSuccessResponse_40(); } - static void OnFailureCallback_41(void * context, EmberAfStatus status) + static void OnFailureCallback_41(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_41(status); + (static_cast(context))->OnFailureResponse_41(error); } static void OnSuccessCallback_41(void * context, int16_t maxCoolSetpointLimit) @@ -32828,9 +35217,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_41(maxCoolSetpointLimit); } - static void OnFailureCallback_42(void * context, EmberAfStatus status) + static void OnFailureCallback_42(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_42(status); + (static_cast(context))->OnFailureResponse_42(error); } static void OnSuccessCallback_42(void * context, uint8_t controlSequenceOfOperation) @@ -32838,9 +35227,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_42(controlSequenceOfOperation); } - static void OnFailureCallback_43(void * context, EmberAfStatus status) + static void OnFailureCallback_43(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_43(status); + (static_cast(context))->OnFailureResponse_43(error); } static void OnSuccessCallback_43(void * context, uint8_t controlSequenceOfOperation) @@ -32848,16 +35237,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_43(controlSequenceOfOperation); } - static void OnFailureCallback_44(void * context, EmberAfStatus status) + static void OnFailureCallback_44(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_44(status); + (static_cast(context))->OnFailureResponse_44(error); } static void OnSuccessCallback_44(void * context) { (static_cast(context))->OnSuccessResponse_44(); } - static void OnFailureCallback_45(void * context, EmberAfStatus status) + static void OnFailureCallback_45(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_45(status); + (static_cast(context))->OnFailureResponse_45(error); } static void OnSuccessCallback_45(void * context, uint8_t controlSequenceOfOperation) @@ -32865,9 +35254,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_45(controlSequenceOfOperation); } - static void OnFailureCallback_46(void * context, EmberAfStatus status) + static void OnFailureCallback_46(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_46(status); + (static_cast(context))->OnFailureResponse_46(error); } static void OnSuccessCallback_46(void * context, uint8_t systemMode) @@ -32875,9 +35264,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_46(systemMode); } - static void OnFailureCallback_47(void * context, EmberAfStatus status) + static void OnFailureCallback_47(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_47(status); + (static_cast(context))->OnFailureResponse_47(error); } static void OnSuccessCallback_47(void * context, uint8_t systemMode) @@ -32885,16 +35274,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_47(systemMode); } - static void OnFailureCallback_48(void * context, EmberAfStatus status) + static void OnFailureCallback_48(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_48(status); + (static_cast(context))->OnFailureResponse_48(error); } static void OnSuccessCallback_48(void * context) { (static_cast(context))->OnSuccessResponse_48(); } - static void OnFailureCallback_49(void * context, EmberAfStatus status) + static void OnFailureCallback_49(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_49(status); + (static_cast(context))->OnFailureResponse_49(error); } static void OnSuccessCallback_49(void * context, uint8_t systemMode) @@ -32902,9 +35291,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_49(systemMode); } - static void OnFailureCallback_50(void * context, EmberAfStatus status) + static void OnFailureCallback_50(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_50(status); + (static_cast(context))->OnFailureResponse_50(error); } static void OnSuccessCallback_50(void * context, int8_t minSetpointDeadBand) @@ -32912,9 +35301,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_50(minSetpointDeadBand); } - static void OnFailureCallback_51(void * context, EmberAfStatus status) + static void OnFailureCallback_51(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_51(status); + (static_cast(context))->OnFailureResponse_51(error); } static void OnSuccessCallback_51(void * context, int8_t minSetpointDeadBand) @@ -32922,16 +35311,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_51(minSetpointDeadBand); } - static void OnFailureCallback_52(void * context, EmberAfStatus status) + static void OnFailureCallback_52(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_52(status); + (static_cast(context))->OnFailureResponse_52(error); } static void OnSuccessCallback_52(void * context) { (static_cast(context))->OnSuccessResponse_52(); } - static void OnFailureCallback_53(void * context, EmberAfStatus status) + static void OnFailureCallback_53(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_53(status); + (static_cast(context))->OnFailureResponse_53(error); } static void OnSuccessCallback_53(void * context, int8_t minSetpointDeadBand) @@ -32939,9 +35328,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_53(minSetpointDeadBand); } - static void OnFailureCallback_54(void * context, EmberAfStatus status) + static void OnFailureCallback_54(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_54(status); + (static_cast(context))->OnFailureResponse_54(error); } static void OnSuccessCallback_54(void * context, uint8_t startOfWeek) @@ -32949,16 +35338,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_54(startOfWeek); } - static void OnFailureCallback_55(void * context, EmberAfStatus status) + static void OnFailureCallback_55(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_55(status); + (static_cast(context))->OnFailureResponse_55(error); } static void OnSuccessCallback_55(void * context) { (static_cast(context))->OnSuccessResponse_55(); } - static void OnFailureCallback_56(void * context, EmberAfStatus status) + static void OnFailureCallback_56(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_56(status); + (static_cast(context))->OnFailureResponse_56(error); } static void OnSuccessCallback_56(void * context, uint8_t startOfWeek) @@ -32966,9 +35355,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_56(startOfWeek); } - static void OnFailureCallback_57(void * context, EmberAfStatus status) + static void OnFailureCallback_57(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_57(status); + (static_cast(context))->OnFailureResponse_57(error); } static void OnSuccessCallback_57(void * context, uint8_t numberOfWeeklyTransitions) @@ -32976,16 +35365,16 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_57(numberOfWeeklyTransitions); } - static void OnFailureCallback_58(void * context, EmberAfStatus status) + static void OnFailureCallback_58(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_58(status); + (static_cast(context))->OnFailureResponse_58(error); } static void OnSuccessCallback_58(void * context) { (static_cast(context))->OnSuccessResponse_58(); } - static void OnFailureCallback_59(void * context, EmberAfStatus status) + static void OnFailureCallback_59(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_59(status); + (static_cast(context))->OnFailureResponse_59(error); } static void OnSuccessCallback_59(void * context, uint8_t numberOfDailyTransitions) @@ -32993,9 +35382,9 @@ class Test_TC_TSTAT_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_59(numberOfDailyTransitions); } - static void OnFailureCallback_60(void * context, EmberAfStatus status) + static void OnFailureCallback_60(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_60(status); + (static_cast(context))->OnFailureResponse_60(error); } static void OnSuccessCallback_60(void * context) { (static_cast(context))->OnSuccessResponse_60(); } @@ -33021,7 +35410,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(int16_t localTemperature) { @@ -33040,7 +35433,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(int16_t absMinHeatSetpointLimit) { @@ -33060,7 +35457,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(int16_t absMinHeatSetpointLimit) { @@ -33084,9 +35485,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) + void OnFailureResponse_4(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -33103,7 +35505,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(int16_t absMinHeatSetpointLimit) { @@ -33123,7 +35529,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(int16_t absMaxHeatSetpointLimit) { @@ -33143,7 +35553,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(int16_t absMaxHeatSetpointLimit) { @@ -33167,9 +35581,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) + void OnFailureResponse_8(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -33186,7 +35601,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(int16_t absMaxHeatSetpointLimit) { @@ -33206,7 +35625,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(int16_t absMinCoolSetpointLimit) { @@ -33226,7 +35649,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(int16_t absMinCoolSetpointLimit) { @@ -33250,9 +35677,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) + void OnFailureResponse_12(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -33269,7 +35697,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(int16_t absMinCoolSetpointLimit) { @@ -33289,7 +35721,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14(int16_t absMaxCoolSetpointLimit) { @@ -33309,7 +35745,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15(int16_t absMaxCoolSetpointLimit) { @@ -33333,9 +35773,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) + void OnFailureResponse_16(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -33352,7 +35793,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_17(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_17(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_17(int16_t absMaxCoolSetpointLimit) { @@ -33372,7 +35817,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_18(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_18(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_18(int16_t occupiedCoolingSetpoint) { @@ -33392,7 +35841,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_19(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_19(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_19(int16_t occupiedCoolingSetpoint) { @@ -33416,7 +35869,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_20(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_20(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_20() { NextTest(); } @@ -33431,7 +35888,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_21(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_21(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_21(int16_t occupiedCoolingSetpoint) { @@ -33451,7 +35912,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_22(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_22(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_22(int16_t occupiedHeatingSetpoint) { @@ -33471,7 +35936,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_23(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_23(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_23(int16_t occupiedHeatingSetpoint) { @@ -33495,7 +35964,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_24(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_24(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_24() { NextTest(); } @@ -33510,7 +35983,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_25(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_25(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_25(int16_t occupiedHeatingSetpoint) { @@ -33530,7 +36007,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_26(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_26(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_26(int16_t minHeatSetpointLimit) { @@ -33550,7 +36031,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_27(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_27(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_27(int16_t minHeatSetpointLimit) { @@ -33574,7 +36059,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_28(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_28(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_28() { NextTest(); } @@ -33589,7 +36078,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_29(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_29(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_29(int16_t minHeatSetpointLimit) { @@ -33609,7 +36102,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_30(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_30(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_30(int16_t maxHeatSetpointLimit) { @@ -33629,7 +36126,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_31(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_31(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_31(int16_t maxHeatSetpointLimit) { @@ -33653,7 +36154,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_32(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_32(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_32() { NextTest(); } @@ -33668,7 +36173,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_33(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_33(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_33(int16_t maxHeatSetpointLimit) { @@ -33688,7 +36197,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_34(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_34(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_34(int16_t minCoolSetpointLimit) { @@ -33708,7 +36221,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_35(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_35(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_35(int16_t minCoolSetpointLimit) { @@ -33732,7 +36249,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_36(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_36(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_36() { NextTest(); } @@ -33747,7 +36268,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_37(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_37(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_37(int16_t minCoolSetpointLimit) { @@ -33767,7 +36292,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_38(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_38(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_38(int16_t maxCoolSetpointLimit) { @@ -33787,7 +36316,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_39(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_39(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_39(int16_t maxCoolSetpointLimit) { @@ -33811,7 +36344,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_40(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_40(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_40() { NextTest(); } @@ -33826,7 +36363,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_41(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_41(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_41(int16_t maxCoolSetpointLimit) { @@ -33847,7 +36388,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_42(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_42(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_42(uint8_t controlSequenceOfOperation) { @@ -33868,7 +36413,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_43(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_43(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_43(uint8_t controlSequenceOfOperation) { @@ -33893,7 +36442,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_44(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_44(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_44() { NextTest(); } @@ -33909,7 +36462,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_45(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_45(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_45(uint8_t controlSequenceOfOperation) { @@ -33929,7 +36486,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_46(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_46(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_46(uint8_t systemMode) { @@ -33949,7 +36510,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_47(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_47(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_47(uint8_t systemMode) { @@ -33973,7 +36538,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_48(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_48(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_48() { NextTest(); } @@ -33988,7 +36557,11 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_49(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_49(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_49(uint8_t systemMode) { @@ -34008,9 +36581,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_50(EmberAfStatus status) + void OnFailureResponse_50(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_50(int8_t minSetpointDeadBand) @@ -34031,9 +36605,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_51(EmberAfStatus status) + void OnFailureResponse_51(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_51(int8_t minSetpointDeadBand) @@ -34058,9 +36633,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_52(EmberAfStatus status) + void OnFailureResponse_52(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_52() { NextTest(); } @@ -34076,9 +36652,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_53(EmberAfStatus status) + void OnFailureResponse_53(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_53(int8_t minSetpointDeadBand) @@ -34099,9 +36676,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_54(EmberAfStatus status) + void OnFailureResponse_54(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_54(uint8_t startOfWeek) @@ -34126,9 +36704,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_55(EmberAfStatus status) + void OnFailureResponse_55(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -34145,9 +36724,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_56(EmberAfStatus status) + void OnFailureResponse_56(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_56(uint8_t startOfWeek) @@ -34169,9 +36749,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_57(EmberAfStatus status) + void OnFailureResponse_57(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_57(uint8_t numberOfWeeklyTransitions) @@ -34195,9 +36776,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_58(EmberAfStatus status) + void OnFailureResponse_58(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -34214,9 +36796,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_59(EmberAfStatus status) + void OnFailureResponse_59(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_59(uint8_t numberOfDailyTransitions) @@ -34240,9 +36823,10 @@ class Test_TC_TSTAT_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_60(EmberAfStatus status) + void OnFailureResponse_60(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -34813,9 +37397,9 @@ class Test_TC_TSTAT_2_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, int16_t occupiedCoolingSetpoint) @@ -34823,16 +37407,16 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(occupiedCoolingSetpoint); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, int16_t occupiedCoolingSetpoint) @@ -34840,23 +37424,23 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_3(occupiedCoolingSetpoint); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, int16_t occupiedHeatingSetpoint) @@ -34864,16 +37448,16 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_6(occupiedHeatingSetpoint); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, int16_t occupiedHeatingSetpoint) @@ -34881,23 +37465,23 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_8(occupiedHeatingSetpoint); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, int16_t minHeatSetpointLimit) @@ -34905,16 +37489,16 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_11(minHeatSetpointLimit); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, int16_t minHeatSetpointLimit) @@ -34922,23 +37506,23 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_13(minHeatSetpointLimit); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context) { (static_cast(context))->OnSuccessResponse_14(); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_15(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_15(status); + (static_cast(context))->OnFailureResponse_15(error); } static void OnSuccessCallback_15(void * context) { (static_cast(context))->OnSuccessResponse_15(); } - static void OnFailureCallback_16(void * context, EmberAfStatus status) + static void OnFailureCallback_16(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(error); } static void OnSuccessCallback_16(void * context, int16_t maxHeatSetpointLimit) @@ -34946,16 +37530,16 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_16(maxHeatSetpointLimit); } - static void OnFailureCallback_17(void * context, EmberAfStatus status) + static void OnFailureCallback_17(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_17(status); + (static_cast(context))->OnFailureResponse_17(error); } static void OnSuccessCallback_17(void * context) { (static_cast(context))->OnSuccessResponse_17(); } - static void OnFailureCallback_18(void * context, EmberAfStatus status) + static void OnFailureCallback_18(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_18(error); } static void OnSuccessCallback_18(void * context, int16_t maxHeatSetpointLimit) @@ -34963,23 +37547,23 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_18(maxHeatSetpointLimit); } - static void OnFailureCallback_19(void * context, EmberAfStatus status) + static void OnFailureCallback_19(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_19(status); + (static_cast(context))->OnFailureResponse_19(error); } static void OnSuccessCallback_19(void * context) { (static_cast(context))->OnSuccessResponse_19(); } - static void OnFailureCallback_20(void * context, EmberAfStatus status) + static void OnFailureCallback_20(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_20(status); + (static_cast(context))->OnFailureResponse_20(error); } static void OnSuccessCallback_20(void * context) { (static_cast(context))->OnSuccessResponse_20(); } - static void OnFailureCallback_21(void * context, EmberAfStatus status) + static void OnFailureCallback_21(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_21(status); + (static_cast(context))->OnFailureResponse_21(error); } static void OnSuccessCallback_21(void * context, int16_t minCoolSetpointLimit) @@ -34987,16 +37571,16 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_21(minCoolSetpointLimit); } - static void OnFailureCallback_22(void * context, EmberAfStatus status) + static void OnFailureCallback_22(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_22(status); + (static_cast(context))->OnFailureResponse_22(error); } static void OnSuccessCallback_22(void * context) { (static_cast(context))->OnSuccessResponse_22(); } - static void OnFailureCallback_23(void * context, EmberAfStatus status) + static void OnFailureCallback_23(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_23(status); + (static_cast(context))->OnFailureResponse_23(error); } static void OnSuccessCallback_23(void * context, int16_t minCoolSetpointLimit) @@ -35004,23 +37588,23 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_23(minCoolSetpointLimit); } - static void OnFailureCallback_24(void * context, EmberAfStatus status) + static void OnFailureCallback_24(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_24(status); + (static_cast(context))->OnFailureResponse_24(error); } static void OnSuccessCallback_24(void * context) { (static_cast(context))->OnSuccessResponse_24(); } - static void OnFailureCallback_25(void * context, EmberAfStatus status) + static void OnFailureCallback_25(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_25(status); + (static_cast(context))->OnFailureResponse_25(error); } static void OnSuccessCallback_25(void * context) { (static_cast(context))->OnSuccessResponse_25(); } - static void OnFailureCallback_26(void * context, EmberAfStatus status) + static void OnFailureCallback_26(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_26(status); + (static_cast(context))->OnFailureResponse_26(error); } static void OnSuccessCallback_26(void * context, int16_t maxCoolSetpointLimit) @@ -35028,16 +37612,16 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_26(maxCoolSetpointLimit); } - static void OnFailureCallback_27(void * context, EmberAfStatus status) + static void OnFailureCallback_27(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_27(status); + (static_cast(context))->OnFailureResponse_27(error); } static void OnSuccessCallback_27(void * context) { (static_cast(context))->OnSuccessResponse_27(); } - static void OnFailureCallback_28(void * context, EmberAfStatus status) + static void OnFailureCallback_28(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_28(status); + (static_cast(context))->OnFailureResponse_28(error); } static void OnSuccessCallback_28(void * context, int16_t maxCoolSetpointLimit) @@ -35045,79 +37629,79 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_28(maxCoolSetpointLimit); } - static void OnFailureCallback_29(void * context, EmberAfStatus status) + static void OnFailureCallback_29(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_29(status); + (static_cast(context))->OnFailureResponse_29(error); } static void OnSuccessCallback_29(void * context) { (static_cast(context))->OnSuccessResponse_29(); } - static void OnFailureCallback_30(void * context, EmberAfStatus status) + static void OnFailureCallback_30(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_30(status); + (static_cast(context))->OnFailureResponse_30(error); } static void OnSuccessCallback_30(void * context) { (static_cast(context))->OnSuccessResponse_30(); } - static void OnFailureCallback_31(void * context, EmberAfStatus status) + static void OnFailureCallback_31(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_31(status); + (static_cast(context))->OnFailureResponse_31(error); } static void OnSuccessCallback_31(void * context) { (static_cast(context))->OnSuccessResponse_31(); } - static void OnFailureCallback_32(void * context, EmberAfStatus status) + static void OnFailureCallback_32(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_32(status); + (static_cast(context))->OnFailureResponse_32(error); } static void OnSuccessCallback_32(void * context) { (static_cast(context))->OnSuccessResponse_32(); } - static void OnFailureCallback_33(void * context, EmberAfStatus status) + static void OnFailureCallback_33(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_33(status); + (static_cast(context))->OnFailureResponse_33(error); } static void OnSuccessCallback_33(void * context) { (static_cast(context))->OnSuccessResponse_33(); } - static void OnFailureCallback_34(void * context, EmberAfStatus status) + static void OnFailureCallback_34(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_34(status); + (static_cast(context))->OnFailureResponse_34(error); } static void OnSuccessCallback_34(void * context) { (static_cast(context))->OnSuccessResponse_34(); } - static void OnFailureCallback_35(void * context, EmberAfStatus status) + static void OnFailureCallback_35(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_35(status); + (static_cast(context))->OnFailureResponse_35(error); } static void OnSuccessCallback_35(void * context) { (static_cast(context))->OnSuccessResponse_35(); } - static void OnFailureCallback_36(void * context, EmberAfStatus status) + static void OnFailureCallback_36(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_36(status); + (static_cast(context))->OnFailureResponse_36(error); } static void OnSuccessCallback_36(void * context) { (static_cast(context))->OnSuccessResponse_36(); } - static void OnFailureCallback_37(void * context, EmberAfStatus status) + static void OnFailureCallback_37(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_37(status); + (static_cast(context))->OnFailureResponse_37(error); } static void OnSuccessCallback_37(void * context) { (static_cast(context))->OnSuccessResponse_37(); } - static void OnFailureCallback_38(void * context, EmberAfStatus status) + static void OnFailureCallback_38(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_38(status); + (static_cast(context))->OnFailureResponse_38(error); } static void OnSuccessCallback_38(void * context) { (static_cast(context))->OnSuccessResponse_38(); } - static void OnFailureCallback_39(void * context, EmberAfStatus status) + static void OnFailureCallback_39(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_39(status); + (static_cast(context))->OnFailureResponse_39(error); } static void OnSuccessCallback_39(void * context, uint8_t controlSequenceOfOperation) @@ -35125,16 +37709,16 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_39(controlSequenceOfOperation); } - static void OnFailureCallback_40(void * context, EmberAfStatus status) + static void OnFailureCallback_40(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_40(status); + (static_cast(context))->OnFailureResponse_40(error); } static void OnSuccessCallback_40(void * context) { (static_cast(context))->OnSuccessResponse_40(); } - static void OnFailureCallback_41(void * context, EmberAfStatus status) + static void OnFailureCallback_41(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_41(status); + (static_cast(context))->OnFailureResponse_41(error); } static void OnSuccessCallback_41(void * context, uint8_t controlSequenceOfOperation) @@ -35142,58 +37726,58 @@ class Test_TC_TSTAT_2_2 : public TestCommand (static_cast(context))->OnSuccessResponse_41(controlSequenceOfOperation); } - static void OnFailureCallback_42(void * context, EmberAfStatus status) + static void OnFailureCallback_42(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_42(status); + (static_cast(context))->OnFailureResponse_42(error); } static void OnSuccessCallback_42(void * context) { (static_cast(context))->OnSuccessResponse_42(); } - static void OnFailureCallback_43(void * context, EmberAfStatus status) + static void OnFailureCallback_43(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_43(status); + (static_cast(context))->OnFailureResponse_43(error); } static void OnSuccessCallback_43(void * context) { (static_cast(context))->OnSuccessResponse_43(); } - static void OnFailureCallback_44(void * context, EmberAfStatus status) + static void OnFailureCallback_44(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_44(status); + (static_cast(context))->OnFailureResponse_44(error); } static void OnSuccessCallback_44(void * context) { (static_cast(context))->OnSuccessResponse_44(); } - static void OnFailureCallback_45(void * context, EmberAfStatus status) + static void OnFailureCallback_45(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_45(status); + (static_cast(context))->OnFailureResponse_45(error); } static void OnSuccessCallback_45(void * context) { (static_cast(context))->OnSuccessResponse_45(); } - static void OnFailureCallback_46(void * context, EmberAfStatus status) + static void OnFailureCallback_46(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_46(status); + (static_cast(context))->OnFailureResponse_46(error); } static void OnSuccessCallback_46(void * context) { (static_cast(context))->OnSuccessResponse_46(); } - static void OnFailureCallback_47(void * context, EmberAfStatus status) + static void OnFailureCallback_47(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_47(status); + (static_cast(context))->OnFailureResponse_47(error); } static void OnSuccessCallback_47(void * context) { (static_cast(context))->OnSuccessResponse_47(); } - static void OnFailureCallback_48(void * context, EmberAfStatus status) + static void OnFailureCallback_48(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_48(status); + (static_cast(context))->OnFailureResponse_48(error); } static void OnSuccessCallback_48(void * context) { (static_cast(context))->OnSuccessResponse_48(); } - static void OnFailureCallback_49(void * context, EmberAfStatus status) + static void OnFailureCallback_49(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_49(status); + (static_cast(context))->OnFailureResponse_49(error); } static void OnSuccessCallback_49(void * context) { (static_cast(context))->OnSuccessResponse_49(); } @@ -35219,7 +37803,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(int16_t occupiedCoolingSetpoint) { @@ -35244,7 +37832,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2() { NextTest(); } @@ -35259,7 +37851,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(int16_t occupiedCoolingSetpoint) { @@ -35282,7 +37878,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -35300,7 +37900,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -35315,7 +37919,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(int16_t occupiedHeatingSetpoint) { @@ -35340,7 +37948,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -35355,7 +37967,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(int16_t occupiedHeatingSetpoint) { @@ -35378,7 +37994,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9() { NextTest(); } @@ -35396,7 +38016,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10() { NextTest(); } @@ -35411,7 +38035,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(int16_t minHeatSetpointLimit) { @@ -35436,7 +38064,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12() { NextTest(); } @@ -35451,7 +38083,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(int16_t minHeatSetpointLimit) { @@ -35474,7 +38110,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14() { NextTest(); } @@ -35492,7 +38132,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15() { NextTest(); } @@ -35507,7 +38151,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_16(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_16(int16_t maxHeatSetpointLimit) { @@ -35532,7 +38180,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_17(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_17(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_17() { NextTest(); } @@ -35547,7 +38199,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_18(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_18(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_18(int16_t maxHeatSetpointLimit) { @@ -35570,7 +38226,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_19(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_19(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_19() { NextTest(); } @@ -35588,7 +38248,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_20(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_20(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_20() { NextTest(); } @@ -35603,7 +38267,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_21(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_21(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_21(int16_t minCoolSetpointLimit) { @@ -35628,7 +38296,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_22(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_22(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_22() { NextTest(); } @@ -35643,7 +38315,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_23(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_23(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_23(int16_t minCoolSetpointLimit) { @@ -35666,7 +38342,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_24(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_24(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_24() { NextTest(); } @@ -35684,7 +38364,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_25(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_25(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_25() { NextTest(); } @@ -35699,7 +38383,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_26(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_26(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_26(int16_t maxCoolSetpointLimit) { @@ -35724,7 +38412,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_27(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_27(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_27() { NextTest(); } @@ -35739,7 +38431,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_28(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_28(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_28(int16_t maxCoolSetpointLimit) { @@ -35762,7 +38458,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_29(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_29(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_29() { NextTest(); } @@ -35780,7 +38480,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_30(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_30(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_30() { NextTest(); } @@ -35798,7 +38502,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_31(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_31(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_31() { NextTest(); } @@ -35816,7 +38524,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_32(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_32(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_32() { NextTest(); } @@ -35834,7 +38546,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_33(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_33(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_33() { NextTest(); } @@ -35852,7 +38568,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_34(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_34(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_34() { NextTest(); } @@ -35870,7 +38590,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_35(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_35(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_35() { NextTest(); } @@ -35888,7 +38612,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_36(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_36(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_36() { NextTest(); } @@ -35906,7 +38634,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_37(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_37(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_37() { NextTest(); } @@ -35924,7 +38656,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_38(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_38(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_38() { NextTest(); } @@ -35940,7 +38676,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_39(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_39(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_39(uint8_t controlSequenceOfOperation) { @@ -35966,7 +38706,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_40(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_40(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_40() { NextTest(); } @@ -35982,7 +38726,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_41(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_41(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_41(uint8_t controlSequenceOfOperation) { @@ -36005,7 +38753,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_42(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_42(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_42() { NextTest(); } @@ -36023,7 +38775,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_43(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_43(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_43() { NextTest(); } @@ -36041,7 +38797,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_44(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_44(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_44() { NextTest(); } @@ -36059,7 +38819,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_45(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_45(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_45() { NextTest(); } @@ -36077,7 +38841,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_46(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_46(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_46() { NextTest(); } @@ -36095,7 +38863,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_47(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_47(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_47() { NextTest(); } @@ -36113,7 +38885,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_48(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_48(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_48() { NextTest(); } @@ -36131,7 +38907,11 @@ class Test_TC_TSTAT_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_49(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_49(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_49() { NextTest(); } }; @@ -36201,9 +38981,9 @@ class Test_TC_TSUIC_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -36211,9 +38991,9 @@ class Test_TC_TSUIC_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } @@ -36240,7 +39020,11 @@ class Test_TC_TSUIC_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -36264,9 +39048,10 @@ class Test_TC_TSUIC_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -36389,9 +39174,9 @@ class Test_TC_TSUIC_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint8_t temperatureDisplayMode) @@ -36399,9 +39184,9 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(temperatureDisplayMode); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t temperatureDisplayMode) @@ -36409,16 +39194,16 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(temperatureDisplayMode); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint8_t temperatureDisplayMode) @@ -36426,9 +39211,9 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(temperatureDisplayMode); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint8_t temperatureDisplayMode) @@ -36436,9 +39221,9 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_5(temperatureDisplayMode); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint8_t keypadLockout) @@ -36446,9 +39231,9 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(keypadLockout); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, uint8_t keypadLockout) @@ -36456,16 +39241,16 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(keypadLockout); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, uint8_t keypadLockout) @@ -36473,9 +39258,9 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(keypadLockout); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, uint8_t keypadLockout) @@ -36483,9 +39268,9 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_10(keypadLockout); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, uint8_t scheduleProgrammingVisibility) @@ -36493,9 +39278,9 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_11(scheduleProgrammingVisibility); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context, uint8_t scheduleProgrammingVisibility) @@ -36503,16 +39288,16 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_12(scheduleProgrammingVisibility); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context) { (static_cast(context))->OnSuccessResponse_13(); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context, uint8_t scheduleProgrammingVisibility) @@ -36520,9 +39305,9 @@ class Test_TC_TSUIC_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_14(scheduleProgrammingVisibility); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_15(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_15(status); + (static_cast(context))->OnFailureResponse_15(error); } static void OnSuccessCallback_15(void * context, uint8_t scheduleProgrammingVisibility) @@ -36553,7 +39338,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t temperatureDisplayMode) { @@ -36575,7 +39364,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t temperatureDisplayMode) { @@ -36599,7 +39392,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -36616,7 +39413,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t temperatureDisplayMode) { @@ -36638,7 +39439,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint8_t temperatureDisplayMode) { @@ -36658,7 +39463,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint8_t keypadLockout) { @@ -36679,7 +39488,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(uint8_t keypadLockout) { @@ -36702,7 +39515,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8() { NextTest(); } @@ -36718,7 +39535,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint8_t keypadLockout) { @@ -36739,7 +39560,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(uint8_t keypadLockout) { @@ -36760,7 +39585,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(uint8_t scheduleProgrammingVisibility) { @@ -36782,7 +39611,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12(uint8_t scheduleProgrammingVisibility) { @@ -36806,7 +39639,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13() { NextTest(); } @@ -36823,7 +39660,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14(uint8_t scheduleProgrammingVisibility) { @@ -36845,7 +39686,11 @@ class Test_TC_TSUIC_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15(uint8_t scheduleProgrammingVisibility) { @@ -37002,72 +39847,72 @@ class Test_TC_TSUIC_2_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context) { (static_cast(context))->OnSuccessResponse_4(); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } @@ -37098,7 +39943,11 @@ class Test_TC_TSUIC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -37118,7 +39967,11 @@ class Test_TC_TSUIC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2() { NextTest(); } @@ -37137,7 +39990,11 @@ class Test_TC_TSUIC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -37156,7 +40013,11 @@ class Test_TC_TSUIC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -37175,7 +40036,11 @@ class Test_TC_TSUIC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -37194,7 +40059,11 @@ class Test_TC_TSUIC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6() { NextTest(); } @@ -37213,7 +40082,11 @@ class Test_TC_TSUIC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -37232,7 +40105,11 @@ class Test_TC_TSUIC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8() { NextTest(); } @@ -37252,7 +40129,11 @@ class Test_TC_TSUIC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9() { NextTest(); } @@ -37272,7 +40153,11 @@ class Test_TC_TSUIC_2_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10() { NextTest(); } }; @@ -37350,9 +40235,9 @@ class Test_TC_DIAGTH_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -37360,9 +40245,9 @@ class Test_TC_DIAGTH_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t clusterRevision) @@ -37370,16 +40255,16 @@ class Test_TC_DIAGTH_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(clusterRevision); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint16_t clusterRevision) @@ -37409,7 +40294,11 @@ class Test_TC_DIAGTH_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -37430,7 +40319,11 @@ class Test_TC_DIAGTH_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t clusterRevision) { @@ -37453,9 +40346,10 @@ class Test_TC_DIAGTH_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) + void OnFailureResponse_3(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -37473,7 +40367,11 @@ class Test_TC_DIAGTH_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint16_t clusterRevision) { @@ -37547,9 +40445,9 @@ class Test_TC_WIFIDIAG_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint64_t currentMaxRate) @@ -37557,9 +40455,9 @@ class Test_TC_WIFIDIAG_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(currentMaxRate); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint64_t currentMaxRate) @@ -37589,9 +40487,10 @@ class Test_TC_WIFIDIAG_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) + void OnFailureResponse_1(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_1(uint64_t currentMaxRate) @@ -37613,9 +40512,10 @@ class Test_TC_WIFIDIAG_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_2(uint64_t currentMaxRate) @@ -37774,9 +40674,9 @@ class Test_TC_WNCV_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t clusterRevision) @@ -37784,16 +40684,16 @@ class Test_TC_WNCV_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(clusterRevision); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint16_t clusterRevision) @@ -37801,9 +40701,9 @@ class Test_TC_WNCV_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(clusterRevision); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint32_t featureMap) @@ -37811,16 +40711,16 @@ class Test_TC_WNCV_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(featureMap); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint32_t featureMap) @@ -37849,7 +40749,11 @@ class Test_TC_WNCV_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t clusterRevision) { @@ -37873,9 +40777,10 @@ class Test_TC_WNCV_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -37892,7 +40797,11 @@ class Test_TC_WNCV_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint16_t clusterRevision) { @@ -37913,7 +40822,11 @@ class Test_TC_WNCV_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint32_t featureMap) { @@ -37937,9 +40850,10 @@ class Test_TC_WNCV_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) + void OnFailureResponse_5(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -37956,7 +40870,11 @@ class Test_TC_WNCV_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint32_t featureMap) { @@ -38272,9 +41190,9 @@ class Test_TC_WNCV_2_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint8_t type) @@ -38282,16 +41200,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(type); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint8_t type) @@ -38299,9 +41217,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_3(type); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint8_t configStatus) @@ -38309,16 +41227,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_4(configStatus); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint8_t configStatus) @@ -38326,9 +41244,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_6(configStatus); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, uint8_t operationalStatus) @@ -38336,16 +41254,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_7(operationalStatus); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, uint8_t operationalStatus) @@ -38353,9 +41271,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_9(operationalStatus); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, uint8_t endProductType) @@ -38363,16 +41281,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_10(endProductType); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context, uint8_t endProductType) @@ -38380,9 +41298,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_12(endProductType); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, uint8_t mode) @@ -38390,16 +41308,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_13(mode); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context) { (static_cast(context))->OnSuccessResponse_14(); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_15(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_15(status); + (static_cast(context))->OnFailureResponse_15(error); } static void OnSuccessCallback_15(void * context, uint8_t mode) @@ -38407,9 +41325,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_15(mode); } - static void OnFailureCallback_16(void * context, EmberAfStatus status) + static void OnFailureCallback_16(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(error); } static void OnSuccessCallback_16(void * context, @@ -38418,16 +41336,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_16(targetPositionLiftPercent100ths); } - static void OnFailureCallback_17(void * context, EmberAfStatus status) + static void OnFailureCallback_17(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_17(status); + (static_cast(context))->OnFailureResponse_17(error); } static void OnSuccessCallback_17(void * context) { (static_cast(context))->OnSuccessResponse_17(); } - static void OnFailureCallback_18(void * context, EmberAfStatus status) + static void OnFailureCallback_18(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_18(error); } static void OnSuccessCallback_18(void * context, @@ -38436,9 +41354,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_18(targetPositionLiftPercent100ths); } - static void OnFailureCallback_19(void * context, EmberAfStatus status) + static void OnFailureCallback_19(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_19(status); + (static_cast(context))->OnFailureResponse_19(error); } static void OnSuccessCallback_19(void * context, @@ -38447,16 +41365,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_19(targetPositionTiltPercent100ths); } - static void OnFailureCallback_20(void * context, EmberAfStatus status) + static void OnFailureCallback_20(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_20(status); + (static_cast(context))->OnFailureResponse_20(error); } static void OnSuccessCallback_20(void * context) { (static_cast(context))->OnSuccessResponse_20(); } - static void OnFailureCallback_21(void * context, EmberAfStatus status) + static void OnFailureCallback_21(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_21(status); + (static_cast(context))->OnFailureResponse_21(error); } static void OnSuccessCallback_21(void * context, @@ -38465,9 +41383,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_21(targetPositionTiltPercent100ths); } - static void OnFailureCallback_22(void * context, EmberAfStatus status) + static void OnFailureCallback_22(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_22(status); + (static_cast(context))->OnFailureResponse_22(error); } static void OnSuccessCallback_22(void * context, @@ -38476,16 +41394,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_22(currentPositionLiftPercent100ths); } - static void OnFailureCallback_23(void * context, EmberAfStatus status) + static void OnFailureCallback_23(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_23(status); + (static_cast(context))->OnFailureResponse_23(error); } static void OnSuccessCallback_23(void * context) { (static_cast(context))->OnSuccessResponse_23(); } - static void OnFailureCallback_24(void * context, EmberAfStatus status) + static void OnFailureCallback_24(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_24(status); + (static_cast(context))->OnFailureResponse_24(error); } static void OnSuccessCallback_24(void * context, @@ -38494,9 +41412,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_24(currentPositionLiftPercent100ths); } - static void OnFailureCallback_25(void * context, EmberAfStatus status) + static void OnFailureCallback_25(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_25(status); + (static_cast(context))->OnFailureResponse_25(error); } static void OnSuccessCallback_25(void * context, @@ -38505,16 +41423,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_25(currentPositionTiltPercent100ths); } - static void OnFailureCallback_26(void * context, EmberAfStatus status) + static void OnFailureCallback_26(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_26(status); + (static_cast(context))->OnFailureResponse_26(error); } static void OnSuccessCallback_26(void * context) { (static_cast(context))->OnSuccessResponse_26(); } - static void OnFailureCallback_27(void * context, EmberAfStatus status) + static void OnFailureCallback_27(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_27(status); + (static_cast(context))->OnFailureResponse_27(error); } static void OnSuccessCallback_27(void * context, @@ -38523,9 +41441,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_27(currentPositionTiltPercent100ths); } - static void OnFailureCallback_28(void * context, EmberAfStatus status) + static void OnFailureCallback_28(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_28(status); + (static_cast(context))->OnFailureResponse_28(error); } static void OnSuccessCallback_28(void * context, uint16_t installedOpenLimitLift) @@ -38533,16 +41451,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_28(installedOpenLimitLift); } - static void OnFailureCallback_29(void * context, EmberAfStatus status) + static void OnFailureCallback_29(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_29(status); + (static_cast(context))->OnFailureResponse_29(error); } static void OnSuccessCallback_29(void * context) { (static_cast(context))->OnSuccessResponse_29(); } - static void OnFailureCallback_30(void * context, EmberAfStatus status) + static void OnFailureCallback_30(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_30(status); + (static_cast(context))->OnFailureResponse_30(error); } static void OnSuccessCallback_30(void * context, uint16_t installedOpenLimitLift) @@ -38550,9 +41468,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_30(installedOpenLimitLift); } - static void OnFailureCallback_31(void * context, EmberAfStatus status) + static void OnFailureCallback_31(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_31(status); + (static_cast(context))->OnFailureResponse_31(error); } static void OnSuccessCallback_31(void * context, uint16_t installedClosedLimitLift) @@ -38560,16 +41478,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_31(installedClosedLimitLift); } - static void OnFailureCallback_32(void * context, EmberAfStatus status) + static void OnFailureCallback_32(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_32(status); + (static_cast(context))->OnFailureResponse_32(error); } static void OnSuccessCallback_32(void * context) { (static_cast(context))->OnSuccessResponse_32(); } - static void OnFailureCallback_33(void * context, EmberAfStatus status) + static void OnFailureCallback_33(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_33(status); + (static_cast(context))->OnFailureResponse_33(error); } static void OnSuccessCallback_33(void * context, uint16_t installedClosedLimitLift) @@ -38577,9 +41495,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_33(installedClosedLimitLift); } - static void OnFailureCallback_34(void * context, EmberAfStatus status) + static void OnFailureCallback_34(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_34(status); + (static_cast(context))->OnFailureResponse_34(error); } static void OnSuccessCallback_34(void * context, uint16_t installedOpenLimitTilt) @@ -38587,16 +41505,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_34(installedOpenLimitTilt); } - static void OnFailureCallback_35(void * context, EmberAfStatus status) + static void OnFailureCallback_35(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_35(status); + (static_cast(context))->OnFailureResponse_35(error); } static void OnSuccessCallback_35(void * context) { (static_cast(context))->OnSuccessResponse_35(); } - static void OnFailureCallback_36(void * context, EmberAfStatus status) + static void OnFailureCallback_36(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_36(status); + (static_cast(context))->OnFailureResponse_36(error); } static void OnSuccessCallback_36(void * context, uint16_t installedOpenLimitTilt) @@ -38604,9 +41522,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_36(installedOpenLimitTilt); } - static void OnFailureCallback_37(void * context, EmberAfStatus status) + static void OnFailureCallback_37(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_37(status); + (static_cast(context))->OnFailureResponse_37(error); } static void OnSuccessCallback_37(void * context, uint16_t installedClosedLimitTilt) @@ -38614,16 +41532,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_37(installedClosedLimitTilt); } - static void OnFailureCallback_38(void * context, EmberAfStatus status) + static void OnFailureCallback_38(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_38(status); + (static_cast(context))->OnFailureResponse_38(error); } static void OnSuccessCallback_38(void * context) { (static_cast(context))->OnSuccessResponse_38(); } - static void OnFailureCallback_39(void * context, EmberAfStatus status) + static void OnFailureCallback_39(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_39(status); + (static_cast(context))->OnFailureResponse_39(error); } static void OnSuccessCallback_39(void * context, uint16_t installedClosedLimitTilt) @@ -38631,9 +41549,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_39(installedClosedLimitTilt); } - static void OnFailureCallback_40(void * context, EmberAfStatus status) + static void OnFailureCallback_40(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_40(status); + (static_cast(context))->OnFailureResponse_40(error); } static void OnSuccessCallback_40(void * context, uint16_t safetyStatus) @@ -38641,16 +41559,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_40(safetyStatus); } - static void OnFailureCallback_41(void * context, EmberAfStatus status) + static void OnFailureCallback_41(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_41(status); + (static_cast(context))->OnFailureResponse_41(error); } static void OnSuccessCallback_41(void * context) { (static_cast(context))->OnSuccessResponse_41(); } - static void OnFailureCallback_42(void * context, EmberAfStatus status) + static void OnFailureCallback_42(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_42(status); + (static_cast(context))->OnFailureResponse_42(error); } static void OnSuccessCallback_42(void * context, uint16_t safetyStatus) @@ -38658,9 +41576,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_42(safetyStatus); } - static void OnFailureCallback_43(void * context, EmberAfStatus status) + static void OnFailureCallback_43(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_43(status); + (static_cast(context))->OnFailureResponse_43(error); } static void OnSuccessCallback_43(void * context, const chip::app::DataModel::Nullable & currentPositionLift) @@ -38668,16 +41586,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_43(currentPositionLift); } - static void OnFailureCallback_44(void * context, EmberAfStatus status) + static void OnFailureCallback_44(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_44(status); + (static_cast(context))->OnFailureResponse_44(error); } static void OnSuccessCallback_44(void * context) { (static_cast(context))->OnSuccessResponse_44(); } - static void OnFailureCallback_45(void * context, EmberAfStatus status) + static void OnFailureCallback_45(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_45(status); + (static_cast(context))->OnFailureResponse_45(error); } static void OnSuccessCallback_45(void * context, const chip::app::DataModel::Nullable & currentPositionLift) @@ -38685,9 +41603,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_45(currentPositionLift); } - static void OnFailureCallback_46(void * context, EmberAfStatus status) + static void OnFailureCallback_46(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_46(status); + (static_cast(context))->OnFailureResponse_46(error); } static void OnSuccessCallback_46(void * context, const chip::app::DataModel::Nullable & currentPositionTilt) @@ -38695,16 +41613,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_46(currentPositionTilt); } - static void OnFailureCallback_47(void * context, EmberAfStatus status) + static void OnFailureCallback_47(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_47(status); + (static_cast(context))->OnFailureResponse_47(error); } static void OnSuccessCallback_47(void * context) { (static_cast(context))->OnSuccessResponse_47(); } - static void OnFailureCallback_48(void * context, EmberAfStatus status) + static void OnFailureCallback_48(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_48(status); + (static_cast(context))->OnFailureResponse_48(error); } static void OnSuccessCallback_48(void * context, const chip::app::DataModel::Nullable & currentPositionTilt) @@ -38712,9 +41630,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_48(currentPositionTilt); } - static void OnFailureCallback_49(void * context, EmberAfStatus status) + static void OnFailureCallback_49(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_49(status); + (static_cast(context))->OnFailureResponse_49(error); } static void OnSuccessCallback_49(void * context, @@ -38723,16 +41641,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_49(currentPositionLiftPercentage); } - static void OnFailureCallback_50(void * context, EmberAfStatus status) + static void OnFailureCallback_50(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_50(status); + (static_cast(context))->OnFailureResponse_50(error); } static void OnSuccessCallback_50(void * context) { (static_cast(context))->OnSuccessResponse_50(); } - static void OnFailureCallback_51(void * context, EmberAfStatus status) + static void OnFailureCallback_51(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_51(status); + (static_cast(context))->OnFailureResponse_51(error); } static void OnSuccessCallback_51(void * context, @@ -38741,9 +41659,9 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_51(currentPositionLiftPercentage); } - static void OnFailureCallback_52(void * context, EmberAfStatus status) + static void OnFailureCallback_52(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_52(status); + (static_cast(context))->OnFailureResponse_52(error); } static void OnSuccessCallback_52(void * context, @@ -38752,16 +41670,16 @@ class Test_TC_WNCV_2_1 : public TestCommand (static_cast(context))->OnSuccessResponse_52(currentPositionTiltPercentage); } - static void OnFailureCallback_53(void * context, EmberAfStatus status) + static void OnFailureCallback_53(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_53(status); + (static_cast(context))->OnFailureResponse_53(error); } static void OnSuccessCallback_53(void * context) { (static_cast(context))->OnSuccessResponse_53(); } - static void OnFailureCallback_54(void * context, EmberAfStatus status) + static void OnFailureCallback_54(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_54(status); + (static_cast(context))->OnFailureResponse_54(error); } static void OnSuccessCallback_54(void * context, @@ -38791,7 +41709,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t type) { @@ -38815,9 +41737,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -38834,7 +41757,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t type) { @@ -38855,7 +41782,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t configStatus) { @@ -38879,9 +41810,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) + void OnFailureResponse_5(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -38898,7 +41830,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint8_t configStatus) { @@ -38919,7 +41855,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(uint8_t operationalStatus) { @@ -38943,9 +41883,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) + void OnFailureResponse_8(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -38962,7 +41903,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint8_t operationalStatus) { @@ -38983,7 +41928,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(uint8_t endProductType) { @@ -39007,9 +41956,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) + void OnFailureResponse_11(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -39026,7 +41976,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12(uint8_t endProductType) { @@ -39047,7 +42001,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(uint8_t mode) { @@ -39071,7 +42029,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14() { NextTest(); } @@ -39086,7 +42048,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15(uint8_t mode) { @@ -39107,7 +42073,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_16(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_16(const chip::app::DataModel::Nullable & targetPositionLiftPercent100ths) { @@ -39135,9 +42105,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_17(EmberAfStatus status) + void OnFailureResponse_17(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -39155,7 +42126,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_18(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_18(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_18(const chip::app::DataModel::Nullable & targetPositionLiftPercent100ths) { @@ -39177,7 +42152,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_19(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_19(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_19(const chip::app::DataModel::Nullable & targetPositionTiltPercent100ths) { @@ -39205,9 +42184,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_20(EmberAfStatus status) + void OnFailureResponse_20(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -39225,7 +42205,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_21(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_21(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_21(const chip::app::DataModel::Nullable & targetPositionTiltPercent100ths) { @@ -39247,7 +42231,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_22(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_22(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_22(const chip::app::DataModel::Nullable & currentPositionLiftPercent100ths) { @@ -39275,9 +42263,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_23(EmberAfStatus status) + void OnFailureResponse_23(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -39295,7 +42284,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_24(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_24(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_24(const chip::app::DataModel::Nullable & currentPositionLiftPercent100ths) { @@ -39317,7 +42310,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_25(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_25(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_25(const chip::app::DataModel::Nullable & currentPositionTiltPercent100ths) { @@ -39345,9 +42342,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_26(EmberAfStatus status) + void OnFailureResponse_26(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -39365,7 +42363,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_27(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_27(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_27(const chip::app::DataModel::Nullable & currentPositionTiltPercent100ths) { @@ -39387,7 +42389,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_28(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_28(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_28(uint16_t installedOpenLimitLift) { @@ -39412,9 +42418,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_29(EmberAfStatus status) + void OnFailureResponse_29(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -39432,7 +42439,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_30(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_30(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_30(uint16_t installedOpenLimitLift) { @@ -39454,7 +42465,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_31(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_31(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_31(uint16_t installedClosedLimitLift) { @@ -39479,9 +42494,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_32(EmberAfStatus status) + void OnFailureResponse_32(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -39499,7 +42515,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_33(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_33(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_33(uint16_t installedClosedLimitLift) { @@ -39521,7 +42541,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_34(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_34(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_34(uint16_t installedOpenLimitTilt) { @@ -39546,9 +42570,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_35(EmberAfStatus status) + void OnFailureResponse_35(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -39566,7 +42591,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_36(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_36(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_36(uint16_t installedOpenLimitTilt) { @@ -39588,7 +42617,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_37(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_37(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_37(uint16_t installedClosedLimitTilt) { @@ -39613,9 +42646,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_38(EmberAfStatus status) + void OnFailureResponse_38(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -39633,7 +42667,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_39(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_39(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_39(uint16_t installedClosedLimitTilt) { @@ -39654,7 +42692,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_40(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_40(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_40(uint16_t safetyStatus) { @@ -39678,9 +42720,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_41(EmberAfStatus status) + void OnFailureResponse_41(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -39697,7 +42740,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_42(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_42(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_42(uint16_t safetyStatus) { @@ -39718,7 +42765,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_43(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_43(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_43(const chip::app::DataModel::Nullable & currentPositionLift) { @@ -39743,9 +42794,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_44(EmberAfStatus status) + void OnFailureResponse_44(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -39762,7 +42814,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_45(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_45(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_45(const chip::app::DataModel::Nullable & currentPositionLift) { @@ -39783,7 +42839,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_46(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_46(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_46(const chip::app::DataModel::Nullable & currentPositionTilt) { @@ -39808,9 +42868,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_47(EmberAfStatus status) + void OnFailureResponse_47(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -39827,7 +42888,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_48(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_48(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_48(const chip::app::DataModel::Nullable & currentPositionTilt) { @@ -39849,7 +42914,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_49(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_49(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_49(const chip::app::DataModel::Nullable & currentPositionLiftPercentage) { @@ -39875,9 +42944,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_50(EmberAfStatus status) + void OnFailureResponse_50(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -39895,7 +42965,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_51(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_51(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_51(const chip::app::DataModel::Nullable & currentPositionLiftPercentage) { @@ -39917,7 +42991,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_52(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_52(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_52(const chip::app::DataModel::Nullable & currentPositionTiltPercentage) { @@ -39943,9 +43021,10 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_53(EmberAfStatus status) + void OnFailureResponse_53(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_WRITE)); NextTest(); } @@ -39963,7 +43042,11 @@ class Test_TC_WNCV_2_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_54(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_54(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_54(const chip::app::DataModel::Nullable & currentPositionTiltPercentage) { @@ -40115,9 +43198,9 @@ class Test_TC_WNCV_2_4 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint8_t type) @@ -40125,9 +43208,9 @@ class Test_TC_WNCV_2_4 : public TestCommand (static_cast(context))->OnSuccessResponse_1(type); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t type) @@ -40156,7 +43239,11 @@ class Test_TC_WNCV_2_4 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t type) { @@ -40176,7 +43263,11 @@ class Test_TC_WNCV_2_4 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t type) { @@ -40261,9 +43352,9 @@ class Test_TC_WNCV_2_5 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint8_t endProductType) @@ -40271,9 +43362,9 @@ class Test_TC_WNCV_2_5 : public TestCommand (static_cast(context))->OnSuccessResponse_1(endProductType); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t endProductType) @@ -40302,7 +43393,11 @@ class Test_TC_WNCV_2_5 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t endProductType) { @@ -40322,7 +43417,11 @@ class Test_TC_WNCV_2_5 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t endProductType) { @@ -40401,9 +43500,9 @@ class Test_TC_WNCV_3_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint8_t operationalStatus) @@ -40432,15 +43531,19 @@ class Test_TC_WNCV_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -40455,15 +43558,19 @@ class Test_TC_WNCV_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_2(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2() { NextTest(); } @@ -40478,7 +43585,11 @@ class Test_TC_WNCV_3_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t operationalStatus) { @@ -40556,9 +43667,9 @@ class Test_TC_WNCV_3_2 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint8_t operationalStatus) @@ -40587,15 +43698,19 @@ class Test_TC_WNCV_3_2 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -40610,15 +43725,19 @@ class Test_TC_WNCV_3_2 : public TestCommand (static_cast(context))->OnSuccessResponse_2(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_2(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2() { NextTest(); } @@ -40633,7 +43752,11 @@ class Test_TC_WNCV_3_2 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t operationalStatus) { @@ -40711,9 +43834,9 @@ class Test_TC_WNCV_3_3 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint8_t operationalStatus) @@ -40742,15 +43865,19 @@ class Test_TC_WNCV_3_3 : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -40765,15 +43892,19 @@ class Test_TC_WNCV_3_3 : public TestCommand (static_cast(context))->OnSuccessResponse_2(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_2(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2() { NextTest(); } @@ -40788,7 +43919,11 @@ class Test_TC_WNCV_3_3 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t operationalStatus) { @@ -40866,9 +44001,9 @@ class TV_TargetNavigatorCluster : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1( @@ -40879,9 +44014,9 @@ class TV_TargetNavigatorCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(targetNavigatorList); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t currentNavigatorTarget) @@ -40910,7 +44045,11 @@ class TV_TargetNavigatorCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1( const chip::app::DataModel::DecodableList & @@ -40944,7 +44083,11 @@ class TV_TargetNavigatorCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t currentNavigatorTarget) { @@ -40966,15 +44109,19 @@ class TV_TargetNavigatorCluster : public TestCommand (static_cast(context))->OnSuccessResponse_3(data.status, data.data); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(chip::app::Clusters::TargetNavigator::StatusEnum status, chip::CharSpan data) { @@ -41058,9 +44205,9 @@ class TV_AudioOutputCluster : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1( @@ -41071,9 +44218,9 @@ class TV_AudioOutputCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(audioOutputList); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t currentAudioOutput) @@ -41102,7 +44249,11 @@ class TV_AudioOutputCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1( const chip::app::DataModel::DecodableList & @@ -41142,7 +44293,11 @@ class TV_AudioOutputCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t currentAudioOutput) { @@ -41163,15 +44318,19 @@ class TV_AudioOutputCluster : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -41188,15 +44347,19 @@ class TV_AudioOutputCluster : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } }; @@ -41273,9 +44436,9 @@ class TV_ApplicationLauncherCluster : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, const chip::app::DataModel::DecodableList & applicationLauncherList) @@ -41305,7 +44468,11 @@ class TV_ApplicationLauncherCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(const chip::app::DataModel::DecodableList & applicationLauncherList) { @@ -41336,15 +44503,19 @@ class TV_ApplicationLauncherCluster : public TestCommand (static_cast(context))->OnSuccessResponse_2(data.status, data.data); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_2(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(chip::app::Clusters::ApplicationLauncher::StatusEnum status, chip::CharSpan data) { @@ -41369,15 +44540,19 @@ class TV_ApplicationLauncherCluster : public TestCommand (static_cast(context))->OnSuccessResponse_3(data.status, data.data); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(chip::app::Clusters::ApplicationLauncher::StatusEnum status, chip::CharSpan data) { @@ -41402,15 +44577,19 @@ class TV_ApplicationLauncherCluster : public TestCommand (static_cast(context))->OnSuccessResponse_4(data.status, data.data); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(chip::app::Clusters::ApplicationLauncher::StatusEnum status, chip::CharSpan data) { @@ -41504,15 +44683,19 @@ class TV_KeypadInputCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(data.status); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(chip::app::Clusters::KeypadInput::StatusEnum status) { @@ -41612,8 +44795,8 @@ class TV_AccountLoginCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(data.setupPIN); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure( @@ -41621,7 +44804,11 @@ class TV_AccountLoginCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(chip::CharSpan setupPIN) { @@ -41643,8 +44830,8 @@ class TV_AccountLoginCluster : public TestCommand (static_cast(context))->OnSuccessResponse_2(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_2(error); }; ReturnErrorOnFailure( @@ -41652,7 +44839,11 @@ class TV_AccountLoginCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2() { NextTest(); } @@ -41667,8 +44858,8 @@ class TV_AccountLoginCluster : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure( @@ -41676,7 +44867,11 @@ class TV_AccountLoginCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } }; @@ -41741,9 +44936,9 @@ class TV_WakeOnLanCluster : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, chip::CharSpan wakeOnLanMacAddress) @@ -41772,7 +44967,11 @@ class TV_WakeOnLanCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(chip::CharSpan wakeOnLanMacAddress) { @@ -41862,9 +45061,9 @@ class TV_ApplicationBasicCluster : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, chip::CharSpan vendorName) @@ -41872,9 +45071,9 @@ class TV_ApplicationBasicCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(vendorName); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t vendorId) @@ -41882,9 +45081,9 @@ class TV_ApplicationBasicCluster : public TestCommand (static_cast(context))->OnSuccessResponse_2(vendorId); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, chip::CharSpan applicationName) @@ -41892,9 +45091,9 @@ class TV_ApplicationBasicCluster : public TestCommand (static_cast(context))->OnSuccessResponse_3(applicationName); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint16_t productId) @@ -41902,9 +45101,9 @@ class TV_ApplicationBasicCluster : public TestCommand (static_cast(context))->OnSuccessResponse_4(productId); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, chip::app::Clusters::ApplicationBasic::ApplicationStatusEnum applicationStatus) @@ -41912,9 +45111,9 @@ class TV_ApplicationBasicCluster : public TestCommand (static_cast(context))->OnSuccessResponse_5(applicationStatus); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, chip::CharSpan applicationVersion) @@ -41943,7 +45142,11 @@ class TV_ApplicationBasicCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(chip::CharSpan vendorName) { @@ -41963,7 +45166,11 @@ class TV_ApplicationBasicCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t vendorId) { @@ -41983,7 +45190,11 @@ class TV_ApplicationBasicCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(chip::CharSpan applicationName) { @@ -42003,7 +45214,11 @@ class TV_ApplicationBasicCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint16_t productId) { @@ -42023,7 +45238,11 @@ class TV_ApplicationBasicCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(chip::app::Clusters::ApplicationBasic::ApplicationStatusEnum applicationStatus) { @@ -42043,7 +45262,11 @@ class TV_ApplicationBasicCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(chip::CharSpan applicationVersion) { @@ -42177,9 +45400,9 @@ class TV_MediaPlaybackCluster : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, chip::app::Clusters::MediaPlayback::PlaybackStateEnum playbackState) @@ -42187,9 +45410,9 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(playbackState); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint64_t startTime) @@ -42197,9 +45420,9 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_2(startTime); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint64_t duration) @@ -42207,9 +45430,9 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_3(duration); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, float playbackSpeed) @@ -42217,9 +45440,9 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_4(playbackSpeed); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, uint64_t seekRangeEnd) @@ -42227,9 +45450,9 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_5(seekRangeEnd); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, uint64_t seekRangeStart) @@ -42258,7 +45481,11 @@ class TV_MediaPlaybackCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(chip::app::Clusters::MediaPlayback::PlaybackStateEnum playbackState) { @@ -42278,7 +45505,11 @@ class TV_MediaPlaybackCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint64_t startTime) { @@ -42298,7 +45529,11 @@ class TV_MediaPlaybackCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint64_t duration) { @@ -42318,7 +45553,11 @@ class TV_MediaPlaybackCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(float playbackSpeed) { @@ -42338,7 +45577,11 @@ class TV_MediaPlaybackCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint64_t seekRangeEnd) { @@ -42358,7 +45601,11 @@ class TV_MediaPlaybackCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint64_t seekRangeStart) { @@ -42378,15 +45625,19 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_7(data.status); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_7(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(chip::app::Clusters::MediaPlayback::StatusEnum status) { @@ -42406,15 +45657,19 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_8(data.status); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_8(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(chip::app::Clusters::MediaPlayback::StatusEnum status) { @@ -42434,15 +45689,19 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_9(data.status); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_9(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(chip::app::Clusters::MediaPlayback::StatusEnum status) { @@ -42462,15 +45721,19 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_10(data.status); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_10(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(chip::app::Clusters::MediaPlayback::StatusEnum status) { @@ -42490,15 +45753,19 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_11(data.status); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_11(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(chip::app::Clusters::MediaPlayback::StatusEnum status) { @@ -42518,15 +45785,19 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_12(data.status); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_12(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_12(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12(chip::app::Clusters::MediaPlayback::StatusEnum status) { @@ -42546,15 +45817,19 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_13(data.status); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_13(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(chip::app::Clusters::MediaPlayback::StatusEnum status) { @@ -42574,15 +45849,19 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_14(data.status); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_14(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_14(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14(chip::app::Clusters::MediaPlayback::StatusEnum status) { @@ -42603,15 +45882,19 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_15(data.status); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_15(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_15(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15(chip::app::Clusters::MediaPlayback::StatusEnum status) { @@ -42632,15 +45915,19 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_16(data.status); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_16(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_16(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_16(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_16(chip::app::Clusters::MediaPlayback::StatusEnum status) { @@ -42661,15 +45948,19 @@ class TV_MediaPlaybackCluster : public TestCommand (static_cast(context))->OnSuccessResponse_17(data.status); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_17(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_17(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_17(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_17(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_17(chip::app::Clusters::MediaPlayback::StatusEnum status) { @@ -42751,9 +46042,9 @@ class TV_ChannelCluster : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1( @@ -42784,7 +46075,11 @@ class TV_ChannelCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1( const chip::app::DataModel::DecodableList & channelList) @@ -42825,15 +46120,19 @@ class TV_ChannelCluster : public TestCommand (static_cast(context))->OnSuccessResponse_2(data.channelMatch, data.errorType); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_2(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(const chip::app::Clusters::Channel::Structs::ChannelInfo::DecodableType & channelMatch, chip::app::Clusters::Channel::ErrorTypeEnum errorType) @@ -42863,15 +46162,19 @@ class TV_ChannelCluster : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -42887,15 +46190,19 @@ class TV_ChannelCluster : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } }; @@ -42981,15 +46288,19 @@ class TV_LowPowerCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } }; @@ -43066,9 +46377,9 @@ class TV_ContentLauncherCluster : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, const chip::app::DataModel::DecodableList & acceptHeaderList) @@ -43076,9 +46387,9 @@ class TV_ContentLauncherCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(acceptHeaderList); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint32_t supportedStreamingProtocols) @@ -43107,7 +46418,11 @@ class TV_ContentLauncherCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(const chip::app::DataModel::DecodableList & acceptHeaderList) { @@ -43135,7 +46450,11 @@ class TV_ContentLauncherCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint32_t supportedStreamingProtocols) { @@ -43159,15 +46478,19 @@ class TV_ContentLauncherCluster : public TestCommand (static_cast(context))->OnSuccessResponse_3(data.status, data.data); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(chip::app::Clusters::ContentLauncher::StatusEnum status, chip::CharSpan data) { @@ -43229,15 +46552,19 @@ class TV_ContentLauncherCluster : public TestCommand (static_cast(context))->OnSuccessResponse_4(data.status, data.data); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(chip::app::Clusters::ContentLauncher::StatusEnum status, chip::CharSpan data) { @@ -43329,9 +46656,9 @@ class TV_MediaInputCluster : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1( @@ -43342,9 +46669,9 @@ class TV_MediaInputCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(mediaInputList); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t currentMediaInput) @@ -43373,7 +46700,11 @@ class TV_MediaInputCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1( const chip::app::DataModel::DecodableList & @@ -43410,7 +46741,11 @@ class TV_MediaInputCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t currentMediaInput) { @@ -43431,15 +46766,19 @@ class TV_MediaInputCluster : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -43454,15 +46793,19 @@ class TV_MediaInputCluster : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -43477,15 +46820,19 @@ class TV_MediaInputCluster : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -43502,15 +46849,19 @@ class TV_MediaInputCluster : public TestCommand (static_cast(context))->OnSuccessResponse_6(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_6(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6() { NextTest(); } }; @@ -45575,9 +48926,9 @@ class TestCluster : public TestCommand const chip::app::DataModel::DecodableList & value); Test_TestCluster_list_int8u_ReportCallback mTest_TestCluster_list_int8u_Reported = nullptr; - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, bool boolean) @@ -45585,16 +48936,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_6(boolean); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, bool boolean) @@ -45602,16 +48953,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_8(boolean); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context) { (static_cast(context))->OnSuccessResponse_9(); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, bool boolean) @@ -45619,9 +48970,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_10(boolean); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, uint8_t bitmap8) @@ -45629,16 +48980,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_11(bitmap8); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, uint8_t bitmap8) @@ -45646,16 +48997,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_13(bitmap8); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context) { (static_cast(context))->OnSuccessResponse_14(); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_15(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_15(status); + (static_cast(context))->OnFailureResponse_15(error); } static void OnSuccessCallback_15(void * context, uint8_t bitmap8) @@ -45663,9 +49014,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_15(bitmap8); } - static void OnFailureCallback_16(void * context, EmberAfStatus status) + static void OnFailureCallback_16(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(error); } static void OnSuccessCallback_16(void * context, uint16_t bitmap16) @@ -45673,16 +49024,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_16(bitmap16); } - static void OnFailureCallback_17(void * context, EmberAfStatus status) + static void OnFailureCallback_17(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_17(status); + (static_cast(context))->OnFailureResponse_17(error); } static void OnSuccessCallback_17(void * context) { (static_cast(context))->OnSuccessResponse_17(); } - static void OnFailureCallback_18(void * context, EmberAfStatus status) + static void OnFailureCallback_18(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_18(error); } static void OnSuccessCallback_18(void * context, uint16_t bitmap16) @@ -45690,16 +49041,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_18(bitmap16); } - static void OnFailureCallback_19(void * context, EmberAfStatus status) + static void OnFailureCallback_19(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_19(status); + (static_cast(context))->OnFailureResponse_19(error); } static void OnSuccessCallback_19(void * context) { (static_cast(context))->OnSuccessResponse_19(); } - static void OnFailureCallback_20(void * context, EmberAfStatus status) + static void OnFailureCallback_20(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_20(status); + (static_cast(context))->OnFailureResponse_20(error); } static void OnSuccessCallback_20(void * context, uint16_t bitmap16) @@ -45707,9 +49058,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_20(bitmap16); } - static void OnFailureCallback_21(void * context, EmberAfStatus status) + static void OnFailureCallback_21(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_21(status); + (static_cast(context))->OnFailureResponse_21(error); } static void OnSuccessCallback_21(void * context, uint32_t bitmap32) @@ -45717,16 +49068,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_21(bitmap32); } - static void OnFailureCallback_22(void * context, EmberAfStatus status) + static void OnFailureCallback_22(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_22(status); + (static_cast(context))->OnFailureResponse_22(error); } static void OnSuccessCallback_22(void * context) { (static_cast(context))->OnSuccessResponse_22(); } - static void OnFailureCallback_23(void * context, EmberAfStatus status) + static void OnFailureCallback_23(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_23(status); + (static_cast(context))->OnFailureResponse_23(error); } static void OnSuccessCallback_23(void * context, uint32_t bitmap32) @@ -45734,16 +49085,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_23(bitmap32); } - static void OnFailureCallback_24(void * context, EmberAfStatus status) + static void OnFailureCallback_24(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_24(status); + (static_cast(context))->OnFailureResponse_24(error); } static void OnSuccessCallback_24(void * context) { (static_cast(context))->OnSuccessResponse_24(); } - static void OnFailureCallback_25(void * context, EmberAfStatus status) + static void OnFailureCallback_25(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_25(status); + (static_cast(context))->OnFailureResponse_25(error); } static void OnSuccessCallback_25(void * context, uint32_t bitmap32) @@ -45751,9 +49102,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_25(bitmap32); } - static void OnFailureCallback_26(void * context, EmberAfStatus status) + static void OnFailureCallback_26(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_26(status); + (static_cast(context))->OnFailureResponse_26(error); } static void OnSuccessCallback_26(void * context, uint64_t bitmap64) @@ -45761,16 +49112,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_26(bitmap64); } - static void OnFailureCallback_27(void * context, EmberAfStatus status) + static void OnFailureCallback_27(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_27(status); + (static_cast(context))->OnFailureResponse_27(error); } static void OnSuccessCallback_27(void * context) { (static_cast(context))->OnSuccessResponse_27(); } - static void OnFailureCallback_28(void * context, EmberAfStatus status) + static void OnFailureCallback_28(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_28(status); + (static_cast(context))->OnFailureResponse_28(error); } static void OnSuccessCallback_28(void * context, uint64_t bitmap64) @@ -45778,16 +49129,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_28(bitmap64); } - static void OnFailureCallback_29(void * context, EmberAfStatus status) + static void OnFailureCallback_29(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_29(status); + (static_cast(context))->OnFailureResponse_29(error); } static void OnSuccessCallback_29(void * context) { (static_cast(context))->OnSuccessResponse_29(); } - static void OnFailureCallback_30(void * context, EmberAfStatus status) + static void OnFailureCallback_30(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_30(status); + (static_cast(context))->OnFailureResponse_30(error); } static void OnSuccessCallback_30(void * context, uint64_t bitmap64) @@ -45795,9 +49146,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_30(bitmap64); } - static void OnFailureCallback_31(void * context, EmberAfStatus status) + static void OnFailureCallback_31(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_31(status); + (static_cast(context))->OnFailureResponse_31(error); } static void OnSuccessCallback_31(void * context, uint8_t int8u) @@ -45805,16 +49156,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_31(int8u); } - static void OnFailureCallback_32(void * context, EmberAfStatus status) + static void OnFailureCallback_32(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_32(status); + (static_cast(context))->OnFailureResponse_32(error); } static void OnSuccessCallback_32(void * context) { (static_cast(context))->OnSuccessResponse_32(); } - static void OnFailureCallback_33(void * context, EmberAfStatus status) + static void OnFailureCallback_33(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_33(status); + (static_cast(context))->OnFailureResponse_33(error); } static void OnSuccessCallback_33(void * context, uint8_t int8u) @@ -45822,16 +49173,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_33(int8u); } - static void OnFailureCallback_34(void * context, EmberAfStatus status) + static void OnFailureCallback_34(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_34(status); + (static_cast(context))->OnFailureResponse_34(error); } static void OnSuccessCallback_34(void * context) { (static_cast(context))->OnSuccessResponse_34(); } - static void OnFailureCallback_35(void * context, EmberAfStatus status) + static void OnFailureCallback_35(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_35(status); + (static_cast(context))->OnFailureResponse_35(error); } static void OnSuccessCallback_35(void * context, uint8_t int8u) @@ -45839,9 +49190,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_35(int8u); } - static void OnFailureCallback_36(void * context, EmberAfStatus status) + static void OnFailureCallback_36(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_36(status); + (static_cast(context))->OnFailureResponse_36(error); } static void OnSuccessCallback_36(void * context, uint16_t int16u) @@ -45849,16 +49200,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_36(int16u); } - static void OnFailureCallback_37(void * context, EmberAfStatus status) + static void OnFailureCallback_37(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_37(status); + (static_cast(context))->OnFailureResponse_37(error); } static void OnSuccessCallback_37(void * context) { (static_cast(context))->OnSuccessResponse_37(); } - static void OnFailureCallback_38(void * context, EmberAfStatus status) + static void OnFailureCallback_38(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_38(status); + (static_cast(context))->OnFailureResponse_38(error); } static void OnSuccessCallback_38(void * context, uint16_t int16u) @@ -45866,16 +49217,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_38(int16u); } - static void OnFailureCallback_39(void * context, EmberAfStatus status) + static void OnFailureCallback_39(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_39(status); + (static_cast(context))->OnFailureResponse_39(error); } static void OnSuccessCallback_39(void * context) { (static_cast(context))->OnSuccessResponse_39(); } - static void OnFailureCallback_40(void * context, EmberAfStatus status) + static void OnFailureCallback_40(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_40(status); + (static_cast(context))->OnFailureResponse_40(error); } static void OnSuccessCallback_40(void * context, uint16_t int16u) @@ -45883,9 +49234,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_40(int16u); } - static void OnFailureCallback_41(void * context, EmberAfStatus status) + static void OnFailureCallback_41(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_41(status); + (static_cast(context))->OnFailureResponse_41(error); } static void OnSuccessCallback_41(void * context, uint32_t int32u) @@ -45893,16 +49244,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_41(int32u); } - static void OnFailureCallback_42(void * context, EmberAfStatus status) + static void OnFailureCallback_42(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_42(status); + (static_cast(context))->OnFailureResponse_42(error); } static void OnSuccessCallback_42(void * context) { (static_cast(context))->OnSuccessResponse_42(); } - static void OnFailureCallback_43(void * context, EmberAfStatus status) + static void OnFailureCallback_43(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_43(status); + (static_cast(context))->OnFailureResponse_43(error); } static void OnSuccessCallback_43(void * context, uint32_t int32u) @@ -45910,16 +49261,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_43(int32u); } - static void OnFailureCallback_44(void * context, EmberAfStatus status) + static void OnFailureCallback_44(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_44(status); + (static_cast(context))->OnFailureResponse_44(error); } static void OnSuccessCallback_44(void * context) { (static_cast(context))->OnSuccessResponse_44(); } - static void OnFailureCallback_45(void * context, EmberAfStatus status) + static void OnFailureCallback_45(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_45(status); + (static_cast(context))->OnFailureResponse_45(error); } static void OnSuccessCallback_45(void * context, uint32_t int32u) @@ -45927,9 +49278,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_45(int32u); } - static void OnFailureCallback_46(void * context, EmberAfStatus status) + static void OnFailureCallback_46(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_46(status); + (static_cast(context))->OnFailureResponse_46(error); } static void OnSuccessCallback_46(void * context, uint64_t int64u) @@ -45937,16 +49288,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_46(int64u); } - static void OnFailureCallback_47(void * context, EmberAfStatus status) + static void OnFailureCallback_47(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_47(status); + (static_cast(context))->OnFailureResponse_47(error); } static void OnSuccessCallback_47(void * context) { (static_cast(context))->OnSuccessResponse_47(); } - static void OnFailureCallback_48(void * context, EmberAfStatus status) + static void OnFailureCallback_48(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_48(status); + (static_cast(context))->OnFailureResponse_48(error); } static void OnSuccessCallback_48(void * context, uint64_t int64u) @@ -45954,16 +49305,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_48(int64u); } - static void OnFailureCallback_49(void * context, EmberAfStatus status) + static void OnFailureCallback_49(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_49(status); + (static_cast(context))->OnFailureResponse_49(error); } static void OnSuccessCallback_49(void * context) { (static_cast(context))->OnSuccessResponse_49(); } - static void OnFailureCallback_50(void * context, EmberAfStatus status) + static void OnFailureCallback_50(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_50(status); + (static_cast(context))->OnFailureResponse_50(error); } static void OnSuccessCallback_50(void * context, uint64_t int64u) @@ -45971,9 +49322,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_50(int64u); } - static void OnFailureCallback_51(void * context, EmberAfStatus status) + static void OnFailureCallback_51(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_51(status); + (static_cast(context))->OnFailureResponse_51(error); } static void OnSuccessCallback_51(void * context, int8_t int8s) @@ -45981,16 +49332,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_51(int8s); } - static void OnFailureCallback_52(void * context, EmberAfStatus status) + static void OnFailureCallback_52(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_52(status); + (static_cast(context))->OnFailureResponse_52(error); } static void OnSuccessCallback_52(void * context) { (static_cast(context))->OnSuccessResponse_52(); } - static void OnFailureCallback_53(void * context, EmberAfStatus status) + static void OnFailureCallback_53(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_53(status); + (static_cast(context))->OnFailureResponse_53(error); } static void OnSuccessCallback_53(void * context, int8_t int8s) @@ -45998,16 +49349,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_53(int8s); } - static void OnFailureCallback_54(void * context, EmberAfStatus status) + static void OnFailureCallback_54(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_54(status); + (static_cast(context))->OnFailureResponse_54(error); } static void OnSuccessCallback_54(void * context) { (static_cast(context))->OnSuccessResponse_54(); } - static void OnFailureCallback_55(void * context, EmberAfStatus status) + static void OnFailureCallback_55(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_55(status); + (static_cast(context))->OnFailureResponse_55(error); } static void OnSuccessCallback_55(void * context, int8_t int8s) @@ -46015,16 +49366,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_55(int8s); } - static void OnFailureCallback_56(void * context, EmberAfStatus status) + static void OnFailureCallback_56(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_56(status); + (static_cast(context))->OnFailureResponse_56(error); } static void OnSuccessCallback_56(void * context) { (static_cast(context))->OnSuccessResponse_56(); } - static void OnFailureCallback_57(void * context, EmberAfStatus status) + static void OnFailureCallback_57(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_57(status); + (static_cast(context))->OnFailureResponse_57(error); } static void OnSuccessCallback_57(void * context, int8_t int8s) @@ -46032,9 +49383,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_57(int8s); } - static void OnFailureCallback_58(void * context, EmberAfStatus status) + static void OnFailureCallback_58(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_58(status); + (static_cast(context))->OnFailureResponse_58(error); } static void OnSuccessCallback_58(void * context, int16_t int16s) @@ -46042,16 +49393,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_58(int16s); } - static void OnFailureCallback_59(void * context, EmberAfStatus status) + static void OnFailureCallback_59(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_59(status); + (static_cast(context))->OnFailureResponse_59(error); } static void OnSuccessCallback_59(void * context) { (static_cast(context))->OnSuccessResponse_59(); } - static void OnFailureCallback_60(void * context, EmberAfStatus status) + static void OnFailureCallback_60(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_60(status); + (static_cast(context))->OnFailureResponse_60(error); } static void OnSuccessCallback_60(void * context, int16_t int16s) @@ -46059,16 +49410,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_60(int16s); } - static void OnFailureCallback_61(void * context, EmberAfStatus status) + static void OnFailureCallback_61(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_61(status); + (static_cast(context))->OnFailureResponse_61(error); } static void OnSuccessCallback_61(void * context) { (static_cast(context))->OnSuccessResponse_61(); } - static void OnFailureCallback_62(void * context, EmberAfStatus status) + static void OnFailureCallback_62(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_62(status); + (static_cast(context))->OnFailureResponse_62(error); } static void OnSuccessCallback_62(void * context, int16_t int16s) @@ -46076,16 +49427,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_62(int16s); } - static void OnFailureCallback_63(void * context, EmberAfStatus status) + static void OnFailureCallback_63(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_63(status); + (static_cast(context))->OnFailureResponse_63(error); } static void OnSuccessCallback_63(void * context) { (static_cast(context))->OnSuccessResponse_63(); } - static void OnFailureCallback_64(void * context, EmberAfStatus status) + static void OnFailureCallback_64(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_64(status); + (static_cast(context))->OnFailureResponse_64(error); } static void OnSuccessCallback_64(void * context, int16_t int16s) @@ -46093,9 +49444,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_64(int16s); } - static void OnFailureCallback_65(void * context, EmberAfStatus status) + static void OnFailureCallback_65(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_65(status); + (static_cast(context))->OnFailureResponse_65(error); } static void OnSuccessCallback_65(void * context, int32_t int32s) @@ -46103,16 +49454,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_65(int32s); } - static void OnFailureCallback_66(void * context, EmberAfStatus status) + static void OnFailureCallback_66(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_66(status); + (static_cast(context))->OnFailureResponse_66(error); } static void OnSuccessCallback_66(void * context) { (static_cast(context))->OnSuccessResponse_66(); } - static void OnFailureCallback_67(void * context, EmberAfStatus status) + static void OnFailureCallback_67(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_67(status); + (static_cast(context))->OnFailureResponse_67(error); } static void OnSuccessCallback_67(void * context, int32_t int32s) @@ -46120,16 +49471,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_67(int32s); } - static void OnFailureCallback_68(void * context, EmberAfStatus status) + static void OnFailureCallback_68(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_68(status); + (static_cast(context))->OnFailureResponse_68(error); } static void OnSuccessCallback_68(void * context) { (static_cast(context))->OnSuccessResponse_68(); } - static void OnFailureCallback_69(void * context, EmberAfStatus status) + static void OnFailureCallback_69(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_69(status); + (static_cast(context))->OnFailureResponse_69(error); } static void OnSuccessCallback_69(void * context, int32_t int32s) @@ -46137,16 +49488,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_69(int32s); } - static void OnFailureCallback_70(void * context, EmberAfStatus status) + static void OnFailureCallback_70(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_70(status); + (static_cast(context))->OnFailureResponse_70(error); } static void OnSuccessCallback_70(void * context) { (static_cast(context))->OnSuccessResponse_70(); } - static void OnFailureCallback_71(void * context, EmberAfStatus status) + static void OnFailureCallback_71(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_71(status); + (static_cast(context))->OnFailureResponse_71(error); } static void OnSuccessCallback_71(void * context, int32_t int32s) @@ -46154,9 +49505,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_71(int32s); } - static void OnFailureCallback_72(void * context, EmberAfStatus status) + static void OnFailureCallback_72(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_72(status); + (static_cast(context))->OnFailureResponse_72(error); } static void OnSuccessCallback_72(void * context, int64_t int64s) @@ -46164,16 +49515,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_72(int64s); } - static void OnFailureCallback_73(void * context, EmberAfStatus status) + static void OnFailureCallback_73(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_73(status); + (static_cast(context))->OnFailureResponse_73(error); } static void OnSuccessCallback_73(void * context) { (static_cast(context))->OnSuccessResponse_73(); } - static void OnFailureCallback_74(void * context, EmberAfStatus status) + static void OnFailureCallback_74(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_74(status); + (static_cast(context))->OnFailureResponse_74(error); } static void OnSuccessCallback_74(void * context, int64_t int64s) @@ -46181,16 +49532,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_74(int64s); } - static void OnFailureCallback_75(void * context, EmberAfStatus status) + static void OnFailureCallback_75(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_75(status); + (static_cast(context))->OnFailureResponse_75(error); } static void OnSuccessCallback_75(void * context) { (static_cast(context))->OnSuccessResponse_75(); } - static void OnFailureCallback_76(void * context, EmberAfStatus status) + static void OnFailureCallback_76(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_76(status); + (static_cast(context))->OnFailureResponse_76(error); } static void OnSuccessCallback_76(void * context, int64_t int64s) @@ -46198,16 +49549,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_76(int64s); } - static void OnFailureCallback_77(void * context, EmberAfStatus status) + static void OnFailureCallback_77(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_77(status); + (static_cast(context))->OnFailureResponse_77(error); } static void OnSuccessCallback_77(void * context) { (static_cast(context))->OnSuccessResponse_77(); } - static void OnFailureCallback_78(void * context, EmberAfStatus status) + static void OnFailureCallback_78(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_78(status); + (static_cast(context))->OnFailureResponse_78(error); } static void OnSuccessCallback_78(void * context, int64_t int64s) @@ -46215,9 +49566,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_78(int64s); } - static void OnFailureCallback_79(void * context, EmberAfStatus status) + static void OnFailureCallback_79(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_79(status); + (static_cast(context))->OnFailureResponse_79(error); } static void OnSuccessCallback_79(void * context, float floatSingle) @@ -46225,16 +49576,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_79(floatSingle); } - static void OnFailureCallback_80(void * context, EmberAfStatus status) + static void OnFailureCallback_80(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_80(status); + (static_cast(context))->OnFailureResponse_80(error); } static void OnSuccessCallback_80(void * context) { (static_cast(context))->OnSuccessResponse_80(); } - static void OnFailureCallback_81(void * context, EmberAfStatus status) + static void OnFailureCallback_81(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_81(status); + (static_cast(context))->OnFailureResponse_81(error); } static void OnSuccessCallback_81(void * context, float floatSingle) @@ -46242,16 +49593,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_81(floatSingle); } - static void OnFailureCallback_82(void * context, EmberAfStatus status) + static void OnFailureCallback_82(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_82(status); + (static_cast(context))->OnFailureResponse_82(error); } static void OnSuccessCallback_82(void * context) { (static_cast(context))->OnSuccessResponse_82(); } - static void OnFailureCallback_83(void * context, EmberAfStatus status) + static void OnFailureCallback_83(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_83(status); + (static_cast(context))->OnFailureResponse_83(error); } static void OnSuccessCallback_83(void * context, float floatSingle) @@ -46259,16 +49610,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_83(floatSingle); } - static void OnFailureCallback_84(void * context, EmberAfStatus status) + static void OnFailureCallback_84(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_84(status); + (static_cast(context))->OnFailureResponse_84(error); } static void OnSuccessCallback_84(void * context) { (static_cast(context))->OnSuccessResponse_84(); } - static void OnFailureCallback_85(void * context, EmberAfStatus status) + static void OnFailureCallback_85(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_85(status); + (static_cast(context))->OnFailureResponse_85(error); } static void OnSuccessCallback_85(void * context, float floatSingle) @@ -46276,16 +49627,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_85(floatSingle); } - static void OnFailureCallback_86(void * context, EmberAfStatus status) + static void OnFailureCallback_86(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_86(status); + (static_cast(context))->OnFailureResponse_86(error); } static void OnSuccessCallback_86(void * context) { (static_cast(context))->OnSuccessResponse_86(); } - static void OnFailureCallback_87(void * context, EmberAfStatus status) + static void OnFailureCallback_87(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_87(status); + (static_cast(context))->OnFailureResponse_87(error); } static void OnSuccessCallback_87(void * context, float floatSingle) @@ -46293,9 +49644,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_87(floatSingle); } - static void OnFailureCallback_88(void * context, EmberAfStatus status) + static void OnFailureCallback_88(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_88(status); + (static_cast(context))->OnFailureResponse_88(error); } static void OnSuccessCallback_88(void * context, double floatDouble) @@ -46303,16 +49654,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_88(floatDouble); } - static void OnFailureCallback_89(void * context, EmberAfStatus status) + static void OnFailureCallback_89(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_89(status); + (static_cast(context))->OnFailureResponse_89(error); } static void OnSuccessCallback_89(void * context) { (static_cast(context))->OnSuccessResponse_89(); } - static void OnFailureCallback_90(void * context, EmberAfStatus status) + static void OnFailureCallback_90(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_90(status); + (static_cast(context))->OnFailureResponse_90(error); } static void OnSuccessCallback_90(void * context, double floatDouble) @@ -46320,16 +49671,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_90(floatDouble); } - static void OnFailureCallback_91(void * context, EmberAfStatus status) + static void OnFailureCallback_91(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_91(status); + (static_cast(context))->OnFailureResponse_91(error); } static void OnSuccessCallback_91(void * context) { (static_cast(context))->OnSuccessResponse_91(); } - static void OnFailureCallback_92(void * context, EmberAfStatus status) + static void OnFailureCallback_92(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_92(status); + (static_cast(context))->OnFailureResponse_92(error); } static void OnSuccessCallback_92(void * context, double floatDouble) @@ -46337,16 +49688,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_92(floatDouble); } - static void OnFailureCallback_93(void * context, EmberAfStatus status) + static void OnFailureCallback_93(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_93(status); + (static_cast(context))->OnFailureResponse_93(error); } static void OnSuccessCallback_93(void * context) { (static_cast(context))->OnSuccessResponse_93(); } - static void OnFailureCallback_94(void * context, EmberAfStatus status) + static void OnFailureCallback_94(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_94(status); + (static_cast(context))->OnFailureResponse_94(error); } static void OnSuccessCallback_94(void * context, double floatDouble) @@ -46354,16 +49705,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_94(floatDouble); } - static void OnFailureCallback_95(void * context, EmberAfStatus status) + static void OnFailureCallback_95(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_95(status); + (static_cast(context))->OnFailureResponse_95(error); } static void OnSuccessCallback_95(void * context) { (static_cast(context))->OnSuccessResponse_95(); } - static void OnFailureCallback_96(void * context, EmberAfStatus status) + static void OnFailureCallback_96(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_96(status); + (static_cast(context))->OnFailureResponse_96(error); } static void OnSuccessCallback_96(void * context, double floatDouble) @@ -46371,9 +49722,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_96(floatDouble); } - static void OnFailureCallback_97(void * context, EmberAfStatus status) + static void OnFailureCallback_97(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_97(status); + (static_cast(context))->OnFailureResponse_97(error); } static void OnSuccessCallback_97(void * context, uint8_t enum8) @@ -46381,16 +49732,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_97(enum8); } - static void OnFailureCallback_98(void * context, EmberAfStatus status) + static void OnFailureCallback_98(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_98(status); + (static_cast(context))->OnFailureResponse_98(error); } static void OnSuccessCallback_98(void * context) { (static_cast(context))->OnSuccessResponse_98(); } - static void OnFailureCallback_99(void * context, EmberAfStatus status) + static void OnFailureCallback_99(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_99(status); + (static_cast(context))->OnFailureResponse_99(error); } static void OnSuccessCallback_99(void * context, uint8_t enum8) @@ -46398,16 +49749,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_99(enum8); } - static void OnFailureCallback_100(void * context, EmberAfStatus status) + static void OnFailureCallback_100(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_100(status); + (static_cast(context))->OnFailureResponse_100(error); } static void OnSuccessCallback_100(void * context) { (static_cast(context))->OnSuccessResponse_100(); } - static void OnFailureCallback_101(void * context, EmberAfStatus status) + static void OnFailureCallback_101(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_101(status); + (static_cast(context))->OnFailureResponse_101(error); } static void OnSuccessCallback_101(void * context, uint8_t enum8) @@ -46415,9 +49766,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_101(enum8); } - static void OnFailureCallback_102(void * context, EmberAfStatus status) + static void OnFailureCallback_102(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_102(status); + (static_cast(context))->OnFailureResponse_102(error); } static void OnSuccessCallback_102(void * context, uint16_t enum16) @@ -46425,16 +49776,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_102(enum16); } - static void OnFailureCallback_103(void * context, EmberAfStatus status) + static void OnFailureCallback_103(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_103(status); + (static_cast(context))->OnFailureResponse_103(error); } static void OnSuccessCallback_103(void * context) { (static_cast(context))->OnSuccessResponse_103(); } - static void OnFailureCallback_104(void * context, EmberAfStatus status) + static void OnFailureCallback_104(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_104(status); + (static_cast(context))->OnFailureResponse_104(error); } static void OnSuccessCallback_104(void * context, uint16_t enum16) @@ -46442,16 +49793,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_104(enum16); } - static void OnFailureCallback_105(void * context, EmberAfStatus status) + static void OnFailureCallback_105(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_105(status); + (static_cast(context))->OnFailureResponse_105(error); } static void OnSuccessCallback_105(void * context) { (static_cast(context))->OnSuccessResponse_105(); } - static void OnFailureCallback_106(void * context, EmberAfStatus status) + static void OnFailureCallback_106(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_106(status); + (static_cast(context))->OnFailureResponse_106(error); } static void OnSuccessCallback_106(void * context, uint16_t enum16) @@ -46459,9 +49810,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_106(enum16); } - static void OnFailureCallback_107(void * context, EmberAfStatus status) + static void OnFailureCallback_107(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_107(status); + (static_cast(context))->OnFailureResponse_107(error); } static void OnSuccessCallback_107(void * context, chip::ByteSpan octetString) @@ -46469,16 +49820,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_107(octetString); } - static void OnFailureCallback_108(void * context, EmberAfStatus status) + static void OnFailureCallback_108(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_108(status); + (static_cast(context))->OnFailureResponse_108(error); } static void OnSuccessCallback_108(void * context) { (static_cast(context))->OnSuccessResponse_108(); } - static void OnFailureCallback_109(void * context, EmberAfStatus status) + static void OnFailureCallback_109(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_109(status); + (static_cast(context))->OnFailureResponse_109(error); } static void OnSuccessCallback_109(void * context, chip::ByteSpan octetString) @@ -46486,16 +49837,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_109(octetString); } - static void OnFailureCallback_110(void * context, EmberAfStatus status) + static void OnFailureCallback_110(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_110(status); + (static_cast(context))->OnFailureResponse_110(error); } static void OnSuccessCallback_110(void * context) { (static_cast(context))->OnSuccessResponse_110(); } - static void OnFailureCallback_111(void * context, EmberAfStatus status) + static void OnFailureCallback_111(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_111(status); + (static_cast(context))->OnFailureResponse_111(error); } static void OnSuccessCallback_111(void * context, chip::ByteSpan octetString) @@ -46503,16 +49854,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_111(octetString); } - static void OnFailureCallback_112(void * context, EmberAfStatus status) + static void OnFailureCallback_112(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_112(status); + (static_cast(context))->OnFailureResponse_112(error); } static void OnSuccessCallback_112(void * context) { (static_cast(context))->OnSuccessResponse_112(); } - static void OnFailureCallback_113(void * context, EmberAfStatus status) + static void OnFailureCallback_113(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_113(status); + (static_cast(context))->OnFailureResponse_113(error); } static void OnSuccessCallback_113(void * context, chip::ByteSpan octetString) @@ -46520,16 +49871,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_113(octetString); } - static void OnFailureCallback_114(void * context, EmberAfStatus status) + static void OnFailureCallback_114(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_114(status); + (static_cast(context))->OnFailureResponse_114(error); } static void OnSuccessCallback_114(void * context) { (static_cast(context))->OnSuccessResponse_114(); } - static void OnFailureCallback_115(void * context, EmberAfStatus status) + static void OnFailureCallback_115(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_115(status); + (static_cast(context))->OnFailureResponse_115(error); } static void OnSuccessCallback_115(void * context, chip::ByteSpan octetString) @@ -46537,16 +49888,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_115(octetString); } - static void OnFailureCallback_116(void * context, EmberAfStatus status) + static void OnFailureCallback_116(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_116(status); + (static_cast(context))->OnFailureResponse_116(error); } static void OnSuccessCallback_116(void * context) { (static_cast(context))->OnSuccessResponse_116(); } - static void OnFailureCallback_117(void * context, EmberAfStatus status) + static void OnFailureCallback_117(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_117(status); + (static_cast(context))->OnFailureResponse_117(error); } static void OnSuccessCallback_117(void * context, chip::ByteSpan longOctetString) @@ -46554,16 +49905,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_117(longOctetString); } - static void OnFailureCallback_118(void * context, EmberAfStatus status) + static void OnFailureCallback_118(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_118(status); + (static_cast(context))->OnFailureResponse_118(error); } static void OnSuccessCallback_118(void * context) { (static_cast(context))->OnSuccessResponse_118(); } - static void OnFailureCallback_119(void * context, EmberAfStatus status) + static void OnFailureCallback_119(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_119(status); + (static_cast(context))->OnFailureResponse_119(error); } static void OnSuccessCallback_119(void * context, chip::ByteSpan longOctetString) @@ -46571,16 +49922,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_119(longOctetString); } - static void OnFailureCallback_120(void * context, EmberAfStatus status) + static void OnFailureCallback_120(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_120(status); + (static_cast(context))->OnFailureResponse_120(error); } static void OnSuccessCallback_120(void * context) { (static_cast(context))->OnSuccessResponse_120(); } - static void OnFailureCallback_121(void * context, EmberAfStatus status) + static void OnFailureCallback_121(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_121(status); + (static_cast(context))->OnFailureResponse_121(error); } static void OnSuccessCallback_121(void * context, chip::CharSpan charString) @@ -46588,16 +49939,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_121(charString); } - static void OnFailureCallback_122(void * context, EmberAfStatus status) + static void OnFailureCallback_122(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_122(status); + (static_cast(context))->OnFailureResponse_122(error); } static void OnSuccessCallback_122(void * context) { (static_cast(context))->OnSuccessResponse_122(); } - static void OnFailureCallback_123(void * context, EmberAfStatus status) + static void OnFailureCallback_123(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_123(status); + (static_cast(context))->OnFailureResponse_123(error); } static void OnSuccessCallback_123(void * context, chip::CharSpan charString) @@ -46605,16 +49956,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_123(charString); } - static void OnFailureCallback_124(void * context, EmberAfStatus status) + static void OnFailureCallback_124(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_124(status); + (static_cast(context))->OnFailureResponse_124(error); } static void OnSuccessCallback_124(void * context) { (static_cast(context))->OnSuccessResponse_124(); } - static void OnFailureCallback_125(void * context, EmberAfStatus status) + static void OnFailureCallback_125(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_125(status); + (static_cast(context))->OnFailureResponse_125(error); } static void OnSuccessCallback_125(void * context, chip::CharSpan charString) @@ -46622,16 +49973,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_125(charString); } - static void OnFailureCallback_126(void * context, EmberAfStatus status) + static void OnFailureCallback_126(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_126(status); + (static_cast(context))->OnFailureResponse_126(error); } static void OnSuccessCallback_126(void * context) { (static_cast(context))->OnSuccessResponse_126(); } - static void OnFailureCallback_127(void * context, EmberAfStatus status) + static void OnFailureCallback_127(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_127(status); + (static_cast(context))->OnFailureResponse_127(error); } static void OnSuccessCallback_127(void * context, chip::CharSpan longCharString) @@ -46639,16 +49990,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_127(longCharString); } - static void OnFailureCallback_128(void * context, EmberAfStatus status) + static void OnFailureCallback_128(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_128(status); + (static_cast(context))->OnFailureResponse_128(error); } static void OnSuccessCallback_128(void * context) { (static_cast(context))->OnSuccessResponse_128(); } - static void OnFailureCallback_129(void * context, EmberAfStatus status) + static void OnFailureCallback_129(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_129(status); + (static_cast(context))->OnFailureResponse_129(error); } static void OnSuccessCallback_129(void * context, chip::CharSpan longCharString) @@ -46656,16 +50007,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_129(longCharString); } - static void OnFailureCallback_130(void * context, EmberAfStatus status) + static void OnFailureCallback_130(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_130(status); + (static_cast(context))->OnFailureResponse_130(error); } static void OnSuccessCallback_130(void * context) { (static_cast(context))->OnSuccessResponse_130(); } - static void OnFailureCallback_131(void * context, EmberAfStatus status) + static void OnFailureCallback_131(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_131(status); + (static_cast(context))->OnFailureResponse_131(error); } static void OnSuccessCallback_131(void * context, @@ -46674,9 +50025,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_131(listLongOctetString); } - static void OnFailureCallback_132(void * context, EmberAfStatus status) + static void OnFailureCallback_132(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_132(status); + (static_cast(context))->OnFailureResponse_132(error); } static void OnSuccessCallback_132(void * context, uint64_t epochUs) @@ -46684,16 +50035,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_132(epochUs); } - static void OnFailureCallback_133(void * context, EmberAfStatus status) + static void OnFailureCallback_133(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_133(status); + (static_cast(context))->OnFailureResponse_133(error); } static void OnSuccessCallback_133(void * context) { (static_cast(context))->OnSuccessResponse_133(); } - static void OnFailureCallback_134(void * context, EmberAfStatus status) + static void OnFailureCallback_134(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_134(status); + (static_cast(context))->OnFailureResponse_134(error); } static void OnSuccessCallback_134(void * context, uint64_t epochUs) @@ -46701,16 +50052,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_134(epochUs); } - static void OnFailureCallback_135(void * context, EmberAfStatus status) + static void OnFailureCallback_135(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_135(status); + (static_cast(context))->OnFailureResponse_135(error); } static void OnSuccessCallback_135(void * context) { (static_cast(context))->OnSuccessResponse_135(); } - static void OnFailureCallback_136(void * context, EmberAfStatus status) + static void OnFailureCallback_136(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_136(status); + (static_cast(context))->OnFailureResponse_136(error); } static void OnSuccessCallback_136(void * context, uint64_t epochUs) @@ -46718,9 +50069,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_136(epochUs); } - static void OnFailureCallback_137(void * context, EmberAfStatus status) + static void OnFailureCallback_137(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_137(status); + (static_cast(context))->OnFailureResponse_137(error); } static void OnSuccessCallback_137(void * context, uint32_t epochS) @@ -46728,16 +50079,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_137(epochS); } - static void OnFailureCallback_138(void * context, EmberAfStatus status) + static void OnFailureCallback_138(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_138(status); + (static_cast(context))->OnFailureResponse_138(error); } static void OnSuccessCallback_138(void * context) { (static_cast(context))->OnSuccessResponse_138(); } - static void OnFailureCallback_139(void * context, EmberAfStatus status) + static void OnFailureCallback_139(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_139(status); + (static_cast(context))->OnFailureResponse_139(error); } static void OnSuccessCallback_139(void * context, uint32_t epochS) @@ -46745,16 +50096,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_139(epochS); } - static void OnFailureCallback_140(void * context, EmberAfStatus status) + static void OnFailureCallback_140(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_140(status); + (static_cast(context))->OnFailureResponse_140(error); } static void OnSuccessCallback_140(void * context) { (static_cast(context))->OnSuccessResponse_140(); } - static void OnFailureCallback_141(void * context, EmberAfStatus status) + static void OnFailureCallback_141(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_141(status); + (static_cast(context))->OnFailureResponse_141(error); } static void OnSuccessCallback_141(void * context, uint32_t epochS) @@ -46762,9 +50113,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_141(epochS); } - static void OnFailureCallback_142(void * context, EmberAfStatus status) + static void OnFailureCallback_142(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_142(status); + (static_cast(context))->OnFailureResponse_142(error); } static void OnSuccessCallback_142(void * context, bool unsupported) @@ -46772,16 +50123,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_142(unsupported); } - static void OnFailureCallback_143(void * context, EmberAfStatus status) + static void OnFailureCallback_143(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_143(status); + (static_cast(context))->OnFailureResponse_143(error); } static void OnSuccessCallback_143(void * context) { (static_cast(context))->OnSuccessResponse_143(); } - static void OnFailureCallback_146(void * context, EmberAfStatus status) + static void OnFailureCallback_146(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_146(status); + (static_cast(context))->OnFailureResponse_146(error); } static void OnSuccessCallback_146(void * context, chip::VendorId vendorId) @@ -46789,16 +50140,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_146(vendorId); } - static void OnFailureCallback_147(void * context, EmberAfStatus status) + static void OnFailureCallback_147(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_147(status); + (static_cast(context))->OnFailureResponse_147(error); } static void OnSuccessCallback_147(void * context) { (static_cast(context))->OnSuccessResponse_147(); } - static void OnFailureCallback_148(void * context, EmberAfStatus status) + static void OnFailureCallback_148(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_148(status); + (static_cast(context))->OnFailureResponse_148(error); } static void OnSuccessCallback_148(void * context, chip::VendorId vendorId) @@ -46806,23 +50157,23 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_148(vendorId); } - static void OnFailureCallback_149(void * context, EmberAfStatus status) + static void OnFailureCallback_149(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_149(status); + (static_cast(context))->OnFailureResponse_149(error); } static void OnSuccessCallback_149(void * context) { (static_cast(context))->OnSuccessResponse_149(); } - static void OnFailureCallback_166(void * context, EmberAfStatus status) + static void OnFailureCallback_166(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_166(status); + (static_cast(context))->OnFailureResponse_166(error); } static void OnSuccessCallback_166(void * context) { (static_cast(context))->OnSuccessResponse_166(); } - static void OnFailureCallback_167(void * context, EmberAfStatus status) + static void OnFailureCallback_167(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_167(status); + (static_cast(context))->OnFailureResponse_167(error); } static void OnSuccessCallback_167(void * context, const chip::app::DataModel::DecodableList & listInt8u) @@ -46830,16 +50181,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_167(listInt8u); } - static void OnFailureCallback_168(void * context, EmberAfStatus status) + static void OnFailureCallback_168(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_168(status); + (static_cast(context))->OnFailureResponse_168(error); } static void OnSuccessCallback_168(void * context) { (static_cast(context))->OnSuccessResponse_168(); } - static void OnFailureCallback_169(void * context, EmberAfStatus status) + static void OnFailureCallback_169(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_169(status); + (static_cast(context))->OnFailureResponse_169(error); } static void OnSuccessCallback_169(void * context, const chip::app::DataModel::DecodableList & listOctetString) @@ -46847,16 +50198,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_169(listOctetString); } - static void OnFailureCallback_170(void * context, EmberAfStatus status) + static void OnFailureCallback_170(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_170(status); + (static_cast(context))->OnFailureResponse_170(error); } static void OnSuccessCallback_170(void * context) { (static_cast(context))->OnSuccessResponse_170(); } - static void OnFailureCallback_171(void * context, EmberAfStatus status) + static void OnFailureCallback_171(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_171(status); + (static_cast(context))->OnFailureResponse_171(error); } static void OnSuccessCallback_171( @@ -46867,9 +50218,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_171(listStructOctetString); } - static void OnFailureCallback_174(void * context, EmberAfStatus status) + static void OnFailureCallback_174(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_174(status); + (static_cast(context))->OnFailureResponse_174(error); } static void OnSuccessCallback_174(void * context, @@ -46880,16 +50231,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_174(listNullablesAndOptionalsStruct); } - static void OnFailureCallback_175(void * context, EmberAfStatus status) + static void OnFailureCallback_175(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_175(status); + (static_cast(context))->OnFailureResponse_175(error); } static void OnSuccessCallback_175(void * context) { (static_cast(context))->OnSuccessResponse_175(); } - static void OnFailureCallback_176(void * context, EmberAfStatus status) + static void OnFailureCallback_176(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_176(status); + (static_cast(context))->OnFailureResponse_176(error); } static void OnSuccessCallback_176(void * context, @@ -46900,16 +50251,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_176(listNullablesAndOptionalsStruct); } - static void OnFailureCallback_177(void * context, EmberAfStatus status) + static void OnFailureCallback_177(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_177(status); + (static_cast(context))->OnFailureResponse_177(error); } static void OnSuccessCallback_177(void * context) { (static_cast(context))->OnSuccessResponse_177(); } - static void OnFailureCallback_178(void * context, EmberAfStatus status) + static void OnFailureCallback_178(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_178(status); + (static_cast(context))->OnFailureResponse_178(error); } static void OnSuccessCallback_178(void * context, const chip::app::DataModel::Nullable & nullableBoolean) @@ -46917,16 +50268,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_178(nullableBoolean); } - static void OnFailureCallback_179(void * context, EmberAfStatus status) + static void OnFailureCallback_179(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_179(status); + (static_cast(context))->OnFailureResponse_179(error); } static void OnSuccessCallback_179(void * context) { (static_cast(context))->OnSuccessResponse_179(); } - static void OnFailureCallback_180(void * context, EmberAfStatus status) + static void OnFailureCallback_180(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_180(status); + (static_cast(context))->OnFailureResponse_180(error); } static void OnSuccessCallback_180(void * context, const chip::app::DataModel::Nullable & nullableBoolean) @@ -46934,16 +50285,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_180(nullableBoolean); } - static void OnFailureCallback_181(void * context, EmberAfStatus status) + static void OnFailureCallback_181(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_181(status); + (static_cast(context))->OnFailureResponse_181(error); } static void OnSuccessCallback_181(void * context) { (static_cast(context))->OnSuccessResponse_181(); } - static void OnFailureCallback_182(void * context, EmberAfStatus status) + static void OnFailureCallback_182(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_182(status); + (static_cast(context))->OnFailureResponse_182(error); } static void OnSuccessCallback_182(void * context, const chip::app::DataModel::Nullable & nullableBitmap8) @@ -46951,16 +50302,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_182(nullableBitmap8); } - static void OnFailureCallback_183(void * context, EmberAfStatus status) + static void OnFailureCallback_183(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_183(status); + (static_cast(context))->OnFailureResponse_183(error); } static void OnSuccessCallback_183(void * context) { (static_cast(context))->OnSuccessResponse_183(); } - static void OnFailureCallback_184(void * context, EmberAfStatus status) + static void OnFailureCallback_184(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_184(status); + (static_cast(context))->OnFailureResponse_184(error); } static void OnSuccessCallback_184(void * context, const chip::app::DataModel::Nullable & nullableBitmap8) @@ -46968,16 +50319,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_184(nullableBitmap8); } - static void OnFailureCallback_185(void * context, EmberAfStatus status) + static void OnFailureCallback_185(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_185(status); + (static_cast(context))->OnFailureResponse_185(error); } static void OnSuccessCallback_185(void * context) { (static_cast(context))->OnSuccessResponse_185(); } - static void OnFailureCallback_186(void * context, EmberAfStatus status) + static void OnFailureCallback_186(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_186(status); + (static_cast(context))->OnFailureResponse_186(error); } static void OnSuccessCallback_186(void * context, const chip::app::DataModel::Nullable & nullableBitmap8) @@ -46985,16 +50336,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_186(nullableBitmap8); } - static void OnFailureCallback_187(void * context, EmberAfStatus status) + static void OnFailureCallback_187(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_187(status); + (static_cast(context))->OnFailureResponse_187(error); } static void OnSuccessCallback_187(void * context) { (static_cast(context))->OnSuccessResponse_187(); } - static void OnFailureCallback_188(void * context, EmberAfStatus status) + static void OnFailureCallback_188(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_188(status); + (static_cast(context))->OnFailureResponse_188(error); } static void OnSuccessCallback_188(void * context, const chip::app::DataModel::Nullable & nullableBitmap16) @@ -47002,16 +50353,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_188(nullableBitmap16); } - static void OnFailureCallback_189(void * context, EmberAfStatus status) + static void OnFailureCallback_189(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_189(status); + (static_cast(context))->OnFailureResponse_189(error); } static void OnSuccessCallback_189(void * context) { (static_cast(context))->OnSuccessResponse_189(); } - static void OnFailureCallback_190(void * context, EmberAfStatus status) + static void OnFailureCallback_190(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_190(status); + (static_cast(context))->OnFailureResponse_190(error); } static void OnSuccessCallback_190(void * context, const chip::app::DataModel::Nullable & nullableBitmap16) @@ -47019,16 +50370,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_190(nullableBitmap16); } - static void OnFailureCallback_191(void * context, EmberAfStatus status) + static void OnFailureCallback_191(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_191(status); + (static_cast(context))->OnFailureResponse_191(error); } static void OnSuccessCallback_191(void * context) { (static_cast(context))->OnSuccessResponse_191(); } - static void OnFailureCallback_192(void * context, EmberAfStatus status) + static void OnFailureCallback_192(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_192(status); + (static_cast(context))->OnFailureResponse_192(error); } static void OnSuccessCallback_192(void * context, const chip::app::DataModel::Nullable & nullableBitmap16) @@ -47036,16 +50387,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_192(nullableBitmap16); } - static void OnFailureCallback_193(void * context, EmberAfStatus status) + static void OnFailureCallback_193(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_193(status); + (static_cast(context))->OnFailureResponse_193(error); } static void OnSuccessCallback_193(void * context) { (static_cast(context))->OnSuccessResponse_193(); } - static void OnFailureCallback_194(void * context, EmberAfStatus status) + static void OnFailureCallback_194(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_194(status); + (static_cast(context))->OnFailureResponse_194(error); } static void OnSuccessCallback_194(void * context, const chip::app::DataModel::Nullable & nullableBitmap32) @@ -47053,16 +50404,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_194(nullableBitmap32); } - static void OnFailureCallback_195(void * context, EmberAfStatus status) + static void OnFailureCallback_195(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_195(status); + (static_cast(context))->OnFailureResponse_195(error); } static void OnSuccessCallback_195(void * context) { (static_cast(context))->OnSuccessResponse_195(); } - static void OnFailureCallback_196(void * context, EmberAfStatus status) + static void OnFailureCallback_196(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_196(status); + (static_cast(context))->OnFailureResponse_196(error); } static void OnSuccessCallback_196(void * context, const chip::app::DataModel::Nullable & nullableBitmap32) @@ -47070,16 +50421,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_196(nullableBitmap32); } - static void OnFailureCallback_197(void * context, EmberAfStatus status) + static void OnFailureCallback_197(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_197(status); + (static_cast(context))->OnFailureResponse_197(error); } static void OnSuccessCallback_197(void * context) { (static_cast(context))->OnSuccessResponse_197(); } - static void OnFailureCallback_198(void * context, EmberAfStatus status) + static void OnFailureCallback_198(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_198(status); + (static_cast(context))->OnFailureResponse_198(error); } static void OnSuccessCallback_198(void * context, const chip::app::DataModel::Nullable & nullableBitmap32) @@ -47087,16 +50438,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_198(nullableBitmap32); } - static void OnFailureCallback_199(void * context, EmberAfStatus status) + static void OnFailureCallback_199(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_199(status); + (static_cast(context))->OnFailureResponse_199(error); } static void OnSuccessCallback_199(void * context) { (static_cast(context))->OnSuccessResponse_199(); } - static void OnFailureCallback_200(void * context, EmberAfStatus status) + static void OnFailureCallback_200(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_200(status); + (static_cast(context))->OnFailureResponse_200(error); } static void OnSuccessCallback_200(void * context, const chip::app::DataModel::Nullable & nullableBitmap64) @@ -47104,16 +50455,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_200(nullableBitmap64); } - static void OnFailureCallback_201(void * context, EmberAfStatus status) + static void OnFailureCallback_201(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_201(status); + (static_cast(context))->OnFailureResponse_201(error); } static void OnSuccessCallback_201(void * context) { (static_cast(context))->OnSuccessResponse_201(); } - static void OnFailureCallback_202(void * context, EmberAfStatus status) + static void OnFailureCallback_202(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_202(status); + (static_cast(context))->OnFailureResponse_202(error); } static void OnSuccessCallback_202(void * context, const chip::app::DataModel::Nullable & nullableBitmap64) @@ -47121,16 +50472,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_202(nullableBitmap64); } - static void OnFailureCallback_203(void * context, EmberAfStatus status) + static void OnFailureCallback_203(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_203(status); + (static_cast(context))->OnFailureResponse_203(error); } static void OnSuccessCallback_203(void * context) { (static_cast(context))->OnSuccessResponse_203(); } - static void OnFailureCallback_204(void * context, EmberAfStatus status) + static void OnFailureCallback_204(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_204(status); + (static_cast(context))->OnFailureResponse_204(error); } static void OnSuccessCallback_204(void * context, const chip::app::DataModel::Nullable & nullableBitmap64) @@ -47138,16 +50489,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_204(nullableBitmap64); } - static void OnFailureCallback_205(void * context, EmberAfStatus status) + static void OnFailureCallback_205(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_205(status); + (static_cast(context))->OnFailureResponse_205(error); } static void OnSuccessCallback_205(void * context) { (static_cast(context))->OnSuccessResponse_205(); } - static void OnFailureCallback_206(void * context, EmberAfStatus status) + static void OnFailureCallback_206(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_206(status); + (static_cast(context))->OnFailureResponse_206(error); } static void OnSuccessCallback_206(void * context, const chip::app::DataModel::Nullable & nullableInt8u) @@ -47155,16 +50506,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_206(nullableInt8u); } - static void OnFailureCallback_207(void * context, EmberAfStatus status) + static void OnFailureCallback_207(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_207(status); + (static_cast(context))->OnFailureResponse_207(error); } static void OnSuccessCallback_207(void * context) { (static_cast(context))->OnSuccessResponse_207(); } - static void OnFailureCallback_208(void * context, EmberAfStatus status) + static void OnFailureCallback_208(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_208(status); + (static_cast(context))->OnFailureResponse_208(error); } static void OnSuccessCallback_208(void * context, const chip::app::DataModel::Nullable & nullableInt8u) @@ -47172,16 +50523,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_208(nullableInt8u); } - static void OnFailureCallback_209(void * context, EmberAfStatus status) + static void OnFailureCallback_209(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_209(status); + (static_cast(context))->OnFailureResponse_209(error); } static void OnSuccessCallback_209(void * context) { (static_cast(context))->OnSuccessResponse_209(); } - static void OnFailureCallback_210(void * context, EmberAfStatus status) + static void OnFailureCallback_210(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_210(status); + (static_cast(context))->OnFailureResponse_210(error); } static void OnSuccessCallback_210(void * context, const chip::app::DataModel::Nullable & nullableInt8u) @@ -47189,9 +50540,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_210(nullableInt8u); } - static void OnFailureCallback_211(void * context, EmberAfStatus status) + static void OnFailureCallback_211(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_211(status); + (static_cast(context))->OnFailureResponse_211(error); } static void OnSuccessCallback_211(void * context, const chip::app::DataModel::Nullable & nullableInt8u) @@ -47199,16 +50550,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_211(nullableInt8u); } - static void OnFailureCallback_212(void * context, EmberAfStatus status) + static void OnFailureCallback_212(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_212(status); + (static_cast(context))->OnFailureResponse_212(error); } static void OnSuccessCallback_212(void * context) { (static_cast(context))->OnSuccessResponse_212(); } - static void OnFailureCallback_213(void * context, EmberAfStatus status) + static void OnFailureCallback_213(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_213(status); + (static_cast(context))->OnFailureResponse_213(error); } static void OnSuccessCallback_213(void * context, const chip::app::DataModel::Nullable & nullableInt8u) @@ -47216,9 +50567,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_213(nullableInt8u); } - static void OnFailureCallback_214(void * context, EmberAfStatus status) + static void OnFailureCallback_214(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_214(status); + (static_cast(context))->OnFailureResponse_214(error); } static void OnSuccessCallback_214(void * context, const chip::app::DataModel::Nullable & nullableInt8u) @@ -47226,9 +50577,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_214(nullableInt8u); } - static void OnFailureCallback_215(void * context, EmberAfStatus status) + static void OnFailureCallback_215(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_215(status); + (static_cast(context))->OnFailureResponse_215(error); } static void OnSuccessCallback_215(void * context, const chip::app::DataModel::Nullable & nullableInt8u) @@ -47236,16 +50587,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_215(nullableInt8u); } - static void OnFailureCallback_216(void * context, EmberAfStatus status) + static void OnFailureCallback_216(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_216(status); + (static_cast(context))->OnFailureResponse_216(error); } static void OnSuccessCallback_216(void * context) { (static_cast(context))->OnSuccessResponse_216(); } - static void OnFailureCallback_217(void * context, EmberAfStatus status) + static void OnFailureCallback_217(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_217(status); + (static_cast(context))->OnFailureResponse_217(error); } static void OnSuccessCallback_217(void * context, const chip::app::DataModel::Nullable & nullableInt8u) @@ -47253,9 +50604,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_217(nullableInt8u); } - static void OnFailureCallback_218(void * context, EmberAfStatus status) + static void OnFailureCallback_218(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_218(status); + (static_cast(context))->OnFailureResponse_218(error); } static void OnSuccessCallback_218(void * context, const chip::app::DataModel::Nullable & nullableInt8u) @@ -47263,16 +50614,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_218(nullableInt8u); } - static void OnFailureCallback_219(void * context, EmberAfStatus status) + static void OnFailureCallback_219(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_219(status); + (static_cast(context))->OnFailureResponse_219(error); } static void OnSuccessCallback_219(void * context) { (static_cast(context))->OnSuccessResponse_219(); } - static void OnFailureCallback_220(void * context, EmberAfStatus status) + static void OnFailureCallback_220(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_220(status); + (static_cast(context))->OnFailureResponse_220(error); } static void OnSuccessCallback_220(void * context, const chip::app::DataModel::Nullable & nullableInt16u) @@ -47280,16 +50631,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_220(nullableInt16u); } - static void OnFailureCallback_221(void * context, EmberAfStatus status) + static void OnFailureCallback_221(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_221(status); + (static_cast(context))->OnFailureResponse_221(error); } static void OnSuccessCallback_221(void * context) { (static_cast(context))->OnSuccessResponse_221(); } - static void OnFailureCallback_222(void * context, EmberAfStatus status) + static void OnFailureCallback_222(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_222(status); + (static_cast(context))->OnFailureResponse_222(error); } static void OnSuccessCallback_222(void * context, const chip::app::DataModel::Nullable & nullableInt16u) @@ -47297,16 +50648,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_222(nullableInt16u); } - static void OnFailureCallback_223(void * context, EmberAfStatus status) + static void OnFailureCallback_223(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_223(status); + (static_cast(context))->OnFailureResponse_223(error); } static void OnSuccessCallback_223(void * context) { (static_cast(context))->OnSuccessResponse_223(); } - static void OnFailureCallback_224(void * context, EmberAfStatus status) + static void OnFailureCallback_224(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_224(status); + (static_cast(context))->OnFailureResponse_224(error); } static void OnSuccessCallback_224(void * context, const chip::app::DataModel::Nullable & nullableInt16u) @@ -47314,16 +50665,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_224(nullableInt16u); } - static void OnFailureCallback_225(void * context, EmberAfStatus status) + static void OnFailureCallback_225(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_225(status); + (static_cast(context))->OnFailureResponse_225(error); } static void OnSuccessCallback_225(void * context) { (static_cast(context))->OnSuccessResponse_225(); } - static void OnFailureCallback_226(void * context, EmberAfStatus status) + static void OnFailureCallback_226(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_226(status); + (static_cast(context))->OnFailureResponse_226(error); } static void OnSuccessCallback_226(void * context, const chip::app::DataModel::Nullable & nullableInt16u) @@ -47331,9 +50682,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_226(nullableInt16u); } - static void OnFailureCallback_227(void * context, EmberAfStatus status) + static void OnFailureCallback_227(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_227(status); + (static_cast(context))->OnFailureResponse_227(error); } static void OnSuccessCallback_227(void * context, const chip::app::DataModel::Nullable & nullableInt16u) @@ -47341,9 +50692,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_227(nullableInt16u); } - static void OnFailureCallback_228(void * context, EmberAfStatus status) + static void OnFailureCallback_228(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_228(status); + (static_cast(context))->OnFailureResponse_228(error); } static void OnSuccessCallback_228(void * context, const chip::app::DataModel::Nullable & nullableInt16u) @@ -47351,16 +50702,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_228(nullableInt16u); } - static void OnFailureCallback_229(void * context, EmberAfStatus status) + static void OnFailureCallback_229(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_229(status); + (static_cast(context))->OnFailureResponse_229(error); } static void OnSuccessCallback_229(void * context) { (static_cast(context))->OnSuccessResponse_229(); } - static void OnFailureCallback_230(void * context, EmberAfStatus status) + static void OnFailureCallback_230(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_230(status); + (static_cast(context))->OnFailureResponse_230(error); } static void OnSuccessCallback_230(void * context, const chip::app::DataModel::Nullable & nullableInt16u) @@ -47368,9 +50719,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_230(nullableInt16u); } - static void OnFailureCallback_231(void * context, EmberAfStatus status) + static void OnFailureCallback_231(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_231(status); + (static_cast(context))->OnFailureResponse_231(error); } static void OnSuccessCallback_231(void * context, const chip::app::DataModel::Nullable & nullableInt16u) @@ -47378,16 +50729,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_231(nullableInt16u); } - static void OnFailureCallback_232(void * context, EmberAfStatus status) + static void OnFailureCallback_232(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_232(status); + (static_cast(context))->OnFailureResponse_232(error); } static void OnSuccessCallback_232(void * context) { (static_cast(context))->OnSuccessResponse_232(); } - static void OnFailureCallback_233(void * context, EmberAfStatus status) + static void OnFailureCallback_233(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_233(status); + (static_cast(context))->OnFailureResponse_233(error); } static void OnSuccessCallback_233(void * context, const chip::app::DataModel::Nullable & nullableInt32u) @@ -47395,16 +50746,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_233(nullableInt32u); } - static void OnFailureCallback_234(void * context, EmberAfStatus status) + static void OnFailureCallback_234(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_234(status); + (static_cast(context))->OnFailureResponse_234(error); } static void OnSuccessCallback_234(void * context) { (static_cast(context))->OnSuccessResponse_234(); } - static void OnFailureCallback_235(void * context, EmberAfStatus status) + static void OnFailureCallback_235(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_235(status); + (static_cast(context))->OnFailureResponse_235(error); } static void OnSuccessCallback_235(void * context, const chip::app::DataModel::Nullable & nullableInt32u) @@ -47412,16 +50763,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_235(nullableInt32u); } - static void OnFailureCallback_236(void * context, EmberAfStatus status) + static void OnFailureCallback_236(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_236(status); + (static_cast(context))->OnFailureResponse_236(error); } static void OnSuccessCallback_236(void * context) { (static_cast(context))->OnSuccessResponse_236(); } - static void OnFailureCallback_237(void * context, EmberAfStatus status) + static void OnFailureCallback_237(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_237(status); + (static_cast(context))->OnFailureResponse_237(error); } static void OnSuccessCallback_237(void * context, const chip::app::DataModel::Nullable & nullableInt32u) @@ -47429,16 +50780,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_237(nullableInt32u); } - static void OnFailureCallback_238(void * context, EmberAfStatus status) + static void OnFailureCallback_238(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_238(status); + (static_cast(context))->OnFailureResponse_238(error); } static void OnSuccessCallback_238(void * context) { (static_cast(context))->OnSuccessResponse_238(); } - static void OnFailureCallback_239(void * context, EmberAfStatus status) + static void OnFailureCallback_239(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_239(status); + (static_cast(context))->OnFailureResponse_239(error); } static void OnSuccessCallback_239(void * context, const chip::app::DataModel::Nullable & nullableInt32u) @@ -47446,9 +50797,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_239(nullableInt32u); } - static void OnFailureCallback_240(void * context, EmberAfStatus status) + static void OnFailureCallback_240(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_240(status); + (static_cast(context))->OnFailureResponse_240(error); } static void OnSuccessCallback_240(void * context, const chip::app::DataModel::Nullable & nullableInt32u) @@ -47456,9 +50807,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_240(nullableInt32u); } - static void OnFailureCallback_241(void * context, EmberAfStatus status) + static void OnFailureCallback_241(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_241(status); + (static_cast(context))->OnFailureResponse_241(error); } static void OnSuccessCallback_241(void * context, const chip::app::DataModel::Nullable & nullableInt32u) @@ -47466,16 +50817,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_241(nullableInt32u); } - static void OnFailureCallback_242(void * context, EmberAfStatus status) + static void OnFailureCallback_242(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_242(status); + (static_cast(context))->OnFailureResponse_242(error); } static void OnSuccessCallback_242(void * context) { (static_cast(context))->OnSuccessResponse_242(); } - static void OnFailureCallback_243(void * context, EmberAfStatus status) + static void OnFailureCallback_243(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_243(status); + (static_cast(context))->OnFailureResponse_243(error); } static void OnSuccessCallback_243(void * context, const chip::app::DataModel::Nullable & nullableInt32u) @@ -47483,9 +50834,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_243(nullableInt32u); } - static void OnFailureCallback_244(void * context, EmberAfStatus status) + static void OnFailureCallback_244(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_244(status); + (static_cast(context))->OnFailureResponse_244(error); } static void OnSuccessCallback_244(void * context, const chip::app::DataModel::Nullable & nullableInt32u) @@ -47493,16 +50844,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_244(nullableInt32u); } - static void OnFailureCallback_245(void * context, EmberAfStatus status) + static void OnFailureCallback_245(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_245(status); + (static_cast(context))->OnFailureResponse_245(error); } static void OnSuccessCallback_245(void * context) { (static_cast(context))->OnSuccessResponse_245(); } - static void OnFailureCallback_246(void * context, EmberAfStatus status) + static void OnFailureCallback_246(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_246(status); + (static_cast(context))->OnFailureResponse_246(error); } static void OnSuccessCallback_246(void * context, const chip::app::DataModel::Nullable & nullableInt64u) @@ -47510,16 +50861,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_246(nullableInt64u); } - static void OnFailureCallback_247(void * context, EmberAfStatus status) + static void OnFailureCallback_247(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_247(status); + (static_cast(context))->OnFailureResponse_247(error); } static void OnSuccessCallback_247(void * context) { (static_cast(context))->OnSuccessResponse_247(); } - static void OnFailureCallback_248(void * context, EmberAfStatus status) + static void OnFailureCallback_248(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_248(status); + (static_cast(context))->OnFailureResponse_248(error); } static void OnSuccessCallback_248(void * context, const chip::app::DataModel::Nullable & nullableInt64u) @@ -47527,16 +50878,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_248(nullableInt64u); } - static void OnFailureCallback_249(void * context, EmberAfStatus status) + static void OnFailureCallback_249(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_249(status); + (static_cast(context))->OnFailureResponse_249(error); } static void OnSuccessCallback_249(void * context) { (static_cast(context))->OnSuccessResponse_249(); } - static void OnFailureCallback_250(void * context, EmberAfStatus status) + static void OnFailureCallback_250(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_250(status); + (static_cast(context))->OnFailureResponse_250(error); } static void OnSuccessCallback_250(void * context, const chip::app::DataModel::Nullable & nullableInt64u) @@ -47544,16 +50895,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_250(nullableInt64u); } - static void OnFailureCallback_251(void * context, EmberAfStatus status) + static void OnFailureCallback_251(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_251(status); + (static_cast(context))->OnFailureResponse_251(error); } static void OnSuccessCallback_251(void * context) { (static_cast(context))->OnSuccessResponse_251(); } - static void OnFailureCallback_252(void * context, EmberAfStatus status) + static void OnFailureCallback_252(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_252(status); + (static_cast(context))->OnFailureResponse_252(error); } static void OnSuccessCallback_252(void * context, const chip::app::DataModel::Nullable & nullableInt64u) @@ -47561,9 +50912,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_252(nullableInt64u); } - static void OnFailureCallback_253(void * context, EmberAfStatus status) + static void OnFailureCallback_253(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_253(status); + (static_cast(context))->OnFailureResponse_253(error); } static void OnSuccessCallback_253(void * context, const chip::app::DataModel::Nullable & nullableInt64u) @@ -47571,9 +50922,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_253(nullableInt64u); } - static void OnFailureCallback_254(void * context, EmberAfStatus status) + static void OnFailureCallback_254(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_254(status); + (static_cast(context))->OnFailureResponse_254(error); } static void OnSuccessCallback_254(void * context, const chip::app::DataModel::Nullable & nullableInt64u) @@ -47581,16 +50932,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_254(nullableInt64u); } - static void OnFailureCallback_255(void * context, EmberAfStatus status) + static void OnFailureCallback_255(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_255(status); + (static_cast(context))->OnFailureResponse_255(error); } static void OnSuccessCallback_255(void * context) { (static_cast(context))->OnSuccessResponse_255(); } - static void OnFailureCallback_256(void * context, EmberAfStatus status) + static void OnFailureCallback_256(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_256(status); + (static_cast(context))->OnFailureResponse_256(error); } static void OnSuccessCallback_256(void * context, const chip::app::DataModel::Nullable & nullableInt64u) @@ -47598,9 +50949,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_256(nullableInt64u); } - static void OnFailureCallback_257(void * context, EmberAfStatus status) + static void OnFailureCallback_257(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_257(status); + (static_cast(context))->OnFailureResponse_257(error); } static void OnSuccessCallback_257(void * context, const chip::app::DataModel::Nullable & nullableInt64u) @@ -47608,16 +50959,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_257(nullableInt64u); } - static void OnFailureCallback_258(void * context, EmberAfStatus status) + static void OnFailureCallback_258(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_258(status); + (static_cast(context))->OnFailureResponse_258(error); } static void OnSuccessCallback_258(void * context) { (static_cast(context))->OnSuccessResponse_258(); } - static void OnFailureCallback_259(void * context, EmberAfStatus status) + static void OnFailureCallback_259(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_259(status); + (static_cast(context))->OnFailureResponse_259(error); } static void OnSuccessCallback_259(void * context, const chip::app::DataModel::Nullable & nullableInt8s) @@ -47625,16 +50976,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_259(nullableInt8s); } - static void OnFailureCallback_260(void * context, EmberAfStatus status) + static void OnFailureCallback_260(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_260(status); + (static_cast(context))->OnFailureResponse_260(error); } static void OnSuccessCallback_260(void * context) { (static_cast(context))->OnSuccessResponse_260(); } - static void OnFailureCallback_261(void * context, EmberAfStatus status) + static void OnFailureCallback_261(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_261(status); + (static_cast(context))->OnFailureResponse_261(error); } static void OnSuccessCallback_261(void * context, const chip::app::DataModel::Nullable & nullableInt8s) @@ -47642,16 +50993,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_261(nullableInt8s); } - static void OnFailureCallback_262(void * context, EmberAfStatus status) + static void OnFailureCallback_262(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_262(status); + (static_cast(context))->OnFailureResponse_262(error); } static void OnSuccessCallback_262(void * context) { (static_cast(context))->OnSuccessResponse_262(); } - static void OnFailureCallback_263(void * context, EmberAfStatus status) + static void OnFailureCallback_263(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_263(status); + (static_cast(context))->OnFailureResponse_263(error); } static void OnSuccessCallback_263(void * context, const chip::app::DataModel::Nullable & nullableInt8s) @@ -47659,9 +51010,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_263(nullableInt8s); } - static void OnFailureCallback_264(void * context, EmberAfStatus status) + static void OnFailureCallback_264(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_264(status); + (static_cast(context))->OnFailureResponse_264(error); } static void OnSuccessCallback_264(void * context, const chip::app::DataModel::Nullable & nullableInt8s) @@ -47669,9 +51020,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_264(nullableInt8s); } - static void OnFailureCallback_265(void * context, EmberAfStatus status) + static void OnFailureCallback_265(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_265(status); + (static_cast(context))->OnFailureResponse_265(error); } static void OnSuccessCallback_265(void * context, const chip::app::DataModel::Nullable & nullableInt8s) @@ -47679,16 +51030,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_265(nullableInt8s); } - static void OnFailureCallback_266(void * context, EmberAfStatus status) + static void OnFailureCallback_266(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_266(status); + (static_cast(context))->OnFailureResponse_266(error); } static void OnSuccessCallback_266(void * context) { (static_cast(context))->OnSuccessResponse_266(); } - static void OnFailureCallback_267(void * context, EmberAfStatus status) + static void OnFailureCallback_267(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_267(status); + (static_cast(context))->OnFailureResponse_267(error); } static void OnSuccessCallback_267(void * context, const chip::app::DataModel::Nullable & nullableInt8s) @@ -47696,9 +51047,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_267(nullableInt8s); } - static void OnFailureCallback_268(void * context, EmberAfStatus status) + static void OnFailureCallback_268(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_268(status); + (static_cast(context))->OnFailureResponse_268(error); } static void OnSuccessCallback_268(void * context, const chip::app::DataModel::Nullable & nullableInt8s) @@ -47706,16 +51057,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_268(nullableInt8s); } - static void OnFailureCallback_269(void * context, EmberAfStatus status) + static void OnFailureCallback_269(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_269(status); + (static_cast(context))->OnFailureResponse_269(error); } static void OnSuccessCallback_269(void * context) { (static_cast(context))->OnSuccessResponse_269(); } - static void OnFailureCallback_270(void * context, EmberAfStatus status) + static void OnFailureCallback_270(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_270(status); + (static_cast(context))->OnFailureResponse_270(error); } static void OnSuccessCallback_270(void * context, const chip::app::DataModel::Nullable & nullableInt16s) @@ -47723,16 +51074,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_270(nullableInt16s); } - static void OnFailureCallback_271(void * context, EmberAfStatus status) + static void OnFailureCallback_271(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_271(status); + (static_cast(context))->OnFailureResponse_271(error); } static void OnSuccessCallback_271(void * context) { (static_cast(context))->OnSuccessResponse_271(); } - static void OnFailureCallback_272(void * context, EmberAfStatus status) + static void OnFailureCallback_272(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_272(status); + (static_cast(context))->OnFailureResponse_272(error); } static void OnSuccessCallback_272(void * context, const chip::app::DataModel::Nullable & nullableInt16s) @@ -47740,16 +51091,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_272(nullableInt16s); } - static void OnFailureCallback_273(void * context, EmberAfStatus status) + static void OnFailureCallback_273(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_273(status); + (static_cast(context))->OnFailureResponse_273(error); } static void OnSuccessCallback_273(void * context) { (static_cast(context))->OnSuccessResponse_273(); } - static void OnFailureCallback_274(void * context, EmberAfStatus status) + static void OnFailureCallback_274(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_274(status); + (static_cast(context))->OnFailureResponse_274(error); } static void OnSuccessCallback_274(void * context, const chip::app::DataModel::Nullable & nullableInt16s) @@ -47757,9 +51108,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_274(nullableInt16s); } - static void OnFailureCallback_275(void * context, EmberAfStatus status) + static void OnFailureCallback_275(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_275(status); + (static_cast(context))->OnFailureResponse_275(error); } static void OnSuccessCallback_275(void * context, const chip::app::DataModel::Nullable & nullableInt16s) @@ -47767,9 +51118,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_275(nullableInt16s); } - static void OnFailureCallback_276(void * context, EmberAfStatus status) + static void OnFailureCallback_276(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_276(status); + (static_cast(context))->OnFailureResponse_276(error); } static void OnSuccessCallback_276(void * context, const chip::app::DataModel::Nullable & nullableInt16s) @@ -47777,16 +51128,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_276(nullableInt16s); } - static void OnFailureCallback_277(void * context, EmberAfStatus status) + static void OnFailureCallback_277(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_277(status); + (static_cast(context))->OnFailureResponse_277(error); } static void OnSuccessCallback_277(void * context) { (static_cast(context))->OnSuccessResponse_277(); } - static void OnFailureCallback_278(void * context, EmberAfStatus status) + static void OnFailureCallback_278(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_278(status); + (static_cast(context))->OnFailureResponse_278(error); } static void OnSuccessCallback_278(void * context, const chip::app::DataModel::Nullable & nullableInt16s) @@ -47794,9 +51145,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_278(nullableInt16s); } - static void OnFailureCallback_279(void * context, EmberAfStatus status) + static void OnFailureCallback_279(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_279(status); + (static_cast(context))->OnFailureResponse_279(error); } static void OnSuccessCallback_279(void * context, const chip::app::DataModel::Nullable & nullableInt16s) @@ -47804,16 +51155,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_279(nullableInt16s); } - static void OnFailureCallback_280(void * context, EmberAfStatus status) + static void OnFailureCallback_280(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_280(status); + (static_cast(context))->OnFailureResponse_280(error); } static void OnSuccessCallback_280(void * context) { (static_cast(context))->OnSuccessResponse_280(); } - static void OnFailureCallback_281(void * context, EmberAfStatus status) + static void OnFailureCallback_281(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_281(status); + (static_cast(context))->OnFailureResponse_281(error); } static void OnSuccessCallback_281(void * context, const chip::app::DataModel::Nullable & nullableInt32s) @@ -47821,16 +51172,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_281(nullableInt32s); } - static void OnFailureCallback_282(void * context, EmberAfStatus status) + static void OnFailureCallback_282(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_282(status); + (static_cast(context))->OnFailureResponse_282(error); } static void OnSuccessCallback_282(void * context) { (static_cast(context))->OnSuccessResponse_282(); } - static void OnFailureCallback_283(void * context, EmberAfStatus status) + static void OnFailureCallback_283(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_283(status); + (static_cast(context))->OnFailureResponse_283(error); } static void OnSuccessCallback_283(void * context, const chip::app::DataModel::Nullable & nullableInt32s) @@ -47838,16 +51189,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_283(nullableInt32s); } - static void OnFailureCallback_284(void * context, EmberAfStatus status) + static void OnFailureCallback_284(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_284(status); + (static_cast(context))->OnFailureResponse_284(error); } static void OnSuccessCallback_284(void * context) { (static_cast(context))->OnSuccessResponse_284(); } - static void OnFailureCallback_285(void * context, EmberAfStatus status) + static void OnFailureCallback_285(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_285(status); + (static_cast(context))->OnFailureResponse_285(error); } static void OnSuccessCallback_285(void * context, const chip::app::DataModel::Nullable & nullableInt32s) @@ -47855,9 +51206,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_285(nullableInt32s); } - static void OnFailureCallback_286(void * context, EmberAfStatus status) + static void OnFailureCallback_286(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_286(status); + (static_cast(context))->OnFailureResponse_286(error); } static void OnSuccessCallback_286(void * context, const chip::app::DataModel::Nullable & nullableInt32s) @@ -47865,9 +51216,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_286(nullableInt32s); } - static void OnFailureCallback_287(void * context, EmberAfStatus status) + static void OnFailureCallback_287(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_287(status); + (static_cast(context))->OnFailureResponse_287(error); } static void OnSuccessCallback_287(void * context, const chip::app::DataModel::Nullable & nullableInt32s) @@ -47875,16 +51226,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_287(nullableInt32s); } - static void OnFailureCallback_288(void * context, EmberAfStatus status) + static void OnFailureCallback_288(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_288(status); + (static_cast(context))->OnFailureResponse_288(error); } static void OnSuccessCallback_288(void * context) { (static_cast(context))->OnSuccessResponse_288(); } - static void OnFailureCallback_289(void * context, EmberAfStatus status) + static void OnFailureCallback_289(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_289(status); + (static_cast(context))->OnFailureResponse_289(error); } static void OnSuccessCallback_289(void * context, const chip::app::DataModel::Nullable & nullableInt32s) @@ -47892,9 +51243,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_289(nullableInt32s); } - static void OnFailureCallback_290(void * context, EmberAfStatus status) + static void OnFailureCallback_290(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_290(status); + (static_cast(context))->OnFailureResponse_290(error); } static void OnSuccessCallback_290(void * context, const chip::app::DataModel::Nullable & nullableInt32s) @@ -47902,16 +51253,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_290(nullableInt32s); } - static void OnFailureCallback_291(void * context, EmberAfStatus status) + static void OnFailureCallback_291(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_291(status); + (static_cast(context))->OnFailureResponse_291(error); } static void OnSuccessCallback_291(void * context) { (static_cast(context))->OnSuccessResponse_291(); } - static void OnFailureCallback_292(void * context, EmberAfStatus status) + static void OnFailureCallback_292(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_292(status); + (static_cast(context))->OnFailureResponse_292(error); } static void OnSuccessCallback_292(void * context, const chip::app::DataModel::Nullable & nullableInt64s) @@ -47919,16 +51270,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_292(nullableInt64s); } - static void OnFailureCallback_293(void * context, EmberAfStatus status) + static void OnFailureCallback_293(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_293(status); + (static_cast(context))->OnFailureResponse_293(error); } static void OnSuccessCallback_293(void * context) { (static_cast(context))->OnSuccessResponse_293(); } - static void OnFailureCallback_294(void * context, EmberAfStatus status) + static void OnFailureCallback_294(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_294(status); + (static_cast(context))->OnFailureResponse_294(error); } static void OnSuccessCallback_294(void * context, const chip::app::DataModel::Nullable & nullableInt64s) @@ -47936,16 +51287,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_294(nullableInt64s); } - static void OnFailureCallback_295(void * context, EmberAfStatus status) + static void OnFailureCallback_295(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_295(status); + (static_cast(context))->OnFailureResponse_295(error); } static void OnSuccessCallback_295(void * context) { (static_cast(context))->OnSuccessResponse_295(); } - static void OnFailureCallback_296(void * context, EmberAfStatus status) + static void OnFailureCallback_296(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_296(status); + (static_cast(context))->OnFailureResponse_296(error); } static void OnSuccessCallback_296(void * context, const chip::app::DataModel::Nullable & nullableInt64s) @@ -47953,9 +51304,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_296(nullableInt64s); } - static void OnFailureCallback_297(void * context, EmberAfStatus status) + static void OnFailureCallback_297(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_297(status); + (static_cast(context))->OnFailureResponse_297(error); } static void OnSuccessCallback_297(void * context, const chip::app::DataModel::Nullable & nullableInt64s) @@ -47963,9 +51314,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_297(nullableInt64s); } - static void OnFailureCallback_298(void * context, EmberAfStatus status) + static void OnFailureCallback_298(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_298(status); + (static_cast(context))->OnFailureResponse_298(error); } static void OnSuccessCallback_298(void * context, const chip::app::DataModel::Nullable & nullableInt64s) @@ -47973,16 +51324,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_298(nullableInt64s); } - static void OnFailureCallback_299(void * context, EmberAfStatus status) + static void OnFailureCallback_299(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_299(status); + (static_cast(context))->OnFailureResponse_299(error); } static void OnSuccessCallback_299(void * context) { (static_cast(context))->OnSuccessResponse_299(); } - static void OnFailureCallback_300(void * context, EmberAfStatus status) + static void OnFailureCallback_300(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_300(status); + (static_cast(context))->OnFailureResponse_300(error); } static void OnSuccessCallback_300(void * context, const chip::app::DataModel::Nullable & nullableInt64s) @@ -47990,9 +51341,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_300(nullableInt64s); } - static void OnFailureCallback_301(void * context, EmberAfStatus status) + static void OnFailureCallback_301(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_301(status); + (static_cast(context))->OnFailureResponse_301(error); } static void OnSuccessCallback_301(void * context, const chip::app::DataModel::Nullable & nullableInt64s) @@ -48000,16 +51351,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_301(nullableInt64s); } - static void OnFailureCallback_302(void * context, EmberAfStatus status) + static void OnFailureCallback_302(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_302(status); + (static_cast(context))->OnFailureResponse_302(error); } static void OnSuccessCallback_302(void * context) { (static_cast(context))->OnSuccessResponse_302(); } - static void OnFailureCallback_303(void * context, EmberAfStatus status) + static void OnFailureCallback_303(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_303(status); + (static_cast(context))->OnFailureResponse_303(error); } static void OnSuccessCallback_303(void * context, const chip::app::DataModel::Nullable & nullableFloatSingle) @@ -48017,16 +51368,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_303(nullableFloatSingle); } - static void OnFailureCallback_304(void * context, EmberAfStatus status) + static void OnFailureCallback_304(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_304(status); + (static_cast(context))->OnFailureResponse_304(error); } static void OnSuccessCallback_304(void * context) { (static_cast(context))->OnSuccessResponse_304(); } - static void OnFailureCallback_305(void * context, EmberAfStatus status) + static void OnFailureCallback_305(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_305(status); + (static_cast(context))->OnFailureResponse_305(error); } static void OnSuccessCallback_305(void * context, const chip::app::DataModel::Nullable & nullableFloatSingle) @@ -48034,16 +51385,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_305(nullableFloatSingle); } - static void OnFailureCallback_306(void * context, EmberAfStatus status) + static void OnFailureCallback_306(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_306(status); + (static_cast(context))->OnFailureResponse_306(error); } static void OnSuccessCallback_306(void * context) { (static_cast(context))->OnSuccessResponse_306(); } - static void OnFailureCallback_307(void * context, EmberAfStatus status) + static void OnFailureCallback_307(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_307(status); + (static_cast(context))->OnFailureResponse_307(error); } static void OnSuccessCallback_307(void * context, const chip::app::DataModel::Nullable & nullableFloatSingle) @@ -48051,16 +51402,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_307(nullableFloatSingle); } - static void OnFailureCallback_308(void * context, EmberAfStatus status) + static void OnFailureCallback_308(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_308(status); + (static_cast(context))->OnFailureResponse_308(error); } static void OnSuccessCallback_308(void * context) { (static_cast(context))->OnSuccessResponse_308(); } - static void OnFailureCallback_309(void * context, EmberAfStatus status) + static void OnFailureCallback_309(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_309(status); + (static_cast(context))->OnFailureResponse_309(error); } static void OnSuccessCallback_309(void * context, const chip::app::DataModel::Nullable & nullableFloatSingle) @@ -48068,16 +51419,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_309(nullableFloatSingle); } - static void OnFailureCallback_310(void * context, EmberAfStatus status) + static void OnFailureCallback_310(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_310(status); + (static_cast(context))->OnFailureResponse_310(error); } static void OnSuccessCallback_310(void * context) { (static_cast(context))->OnSuccessResponse_310(); } - static void OnFailureCallback_311(void * context, EmberAfStatus status) + static void OnFailureCallback_311(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_311(status); + (static_cast(context))->OnFailureResponse_311(error); } static void OnSuccessCallback_311(void * context, const chip::app::DataModel::Nullable & nullableFloatSingle) @@ -48085,16 +51436,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_311(nullableFloatSingle); } - static void OnFailureCallback_312(void * context, EmberAfStatus status) + static void OnFailureCallback_312(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_312(status); + (static_cast(context))->OnFailureResponse_312(error); } static void OnSuccessCallback_312(void * context) { (static_cast(context))->OnSuccessResponse_312(); } - static void OnFailureCallback_313(void * context, EmberAfStatus status) + static void OnFailureCallback_313(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_313(status); + (static_cast(context))->OnFailureResponse_313(error); } static void OnSuccessCallback_313(void * context, const chip::app::DataModel::Nullable & nullableFloatDouble) @@ -48102,16 +51453,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_313(nullableFloatDouble); } - static void OnFailureCallback_314(void * context, EmberAfStatus status) + static void OnFailureCallback_314(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_314(status); + (static_cast(context))->OnFailureResponse_314(error); } static void OnSuccessCallback_314(void * context) { (static_cast(context))->OnSuccessResponse_314(); } - static void OnFailureCallback_315(void * context, EmberAfStatus status) + static void OnFailureCallback_315(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_315(status); + (static_cast(context))->OnFailureResponse_315(error); } static void OnSuccessCallback_315(void * context, const chip::app::DataModel::Nullable & nullableFloatDouble) @@ -48119,16 +51470,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_315(nullableFloatDouble); } - static void OnFailureCallback_316(void * context, EmberAfStatus status) + static void OnFailureCallback_316(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_316(status); + (static_cast(context))->OnFailureResponse_316(error); } static void OnSuccessCallback_316(void * context) { (static_cast(context))->OnSuccessResponse_316(); } - static void OnFailureCallback_317(void * context, EmberAfStatus status) + static void OnFailureCallback_317(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_317(status); + (static_cast(context))->OnFailureResponse_317(error); } static void OnSuccessCallback_317(void * context, const chip::app::DataModel::Nullable & nullableFloatDouble) @@ -48136,16 +51487,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_317(nullableFloatDouble); } - static void OnFailureCallback_318(void * context, EmberAfStatus status) + static void OnFailureCallback_318(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_318(status); + (static_cast(context))->OnFailureResponse_318(error); } static void OnSuccessCallback_318(void * context) { (static_cast(context))->OnSuccessResponse_318(); } - static void OnFailureCallback_319(void * context, EmberAfStatus status) + static void OnFailureCallback_319(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_319(status); + (static_cast(context))->OnFailureResponse_319(error); } static void OnSuccessCallback_319(void * context, const chip::app::DataModel::Nullable & nullableFloatDouble) @@ -48153,16 +51504,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_319(nullableFloatDouble); } - static void OnFailureCallback_320(void * context, EmberAfStatus status) + static void OnFailureCallback_320(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_320(status); + (static_cast(context))->OnFailureResponse_320(error); } static void OnSuccessCallback_320(void * context) { (static_cast(context))->OnSuccessResponse_320(); } - static void OnFailureCallback_321(void * context, EmberAfStatus status) + static void OnFailureCallback_321(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_321(status); + (static_cast(context))->OnFailureResponse_321(error); } static void OnSuccessCallback_321(void * context, const chip::app::DataModel::Nullable & nullableFloatDouble) @@ -48170,16 +51521,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_321(nullableFloatDouble); } - static void OnFailureCallback_322(void * context, EmberAfStatus status) + static void OnFailureCallback_322(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_322(status); + (static_cast(context))->OnFailureResponse_322(error); } static void OnSuccessCallback_322(void * context) { (static_cast(context))->OnSuccessResponse_322(); } - static void OnFailureCallback_323(void * context, EmberAfStatus status) + static void OnFailureCallback_323(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_323(status); + (static_cast(context))->OnFailureResponse_323(error); } static void OnSuccessCallback_323(void * context, const chip::app::DataModel::Nullable & nullableEnum8) @@ -48187,16 +51538,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_323(nullableEnum8); } - static void OnFailureCallback_324(void * context, EmberAfStatus status) + static void OnFailureCallback_324(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_324(status); + (static_cast(context))->OnFailureResponse_324(error); } static void OnSuccessCallback_324(void * context) { (static_cast(context))->OnSuccessResponse_324(); } - static void OnFailureCallback_325(void * context, EmberAfStatus status) + static void OnFailureCallback_325(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_325(status); + (static_cast(context))->OnFailureResponse_325(error); } static void OnSuccessCallback_325(void * context, const chip::app::DataModel::Nullable & nullableEnum8) @@ -48204,16 +51555,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_325(nullableEnum8); } - static void OnFailureCallback_326(void * context, EmberAfStatus status) + static void OnFailureCallback_326(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_326(status); + (static_cast(context))->OnFailureResponse_326(error); } static void OnSuccessCallback_326(void * context) { (static_cast(context))->OnSuccessResponse_326(); } - static void OnFailureCallback_327(void * context, EmberAfStatus status) + static void OnFailureCallback_327(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_327(status); + (static_cast(context))->OnFailureResponse_327(error); } static void OnSuccessCallback_327(void * context, const chip::app::DataModel::Nullable & nullableEnum8) @@ -48221,16 +51572,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_327(nullableEnum8); } - static void OnFailureCallback_328(void * context, EmberAfStatus status) + static void OnFailureCallback_328(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_328(status); + (static_cast(context))->OnFailureResponse_328(error); } static void OnSuccessCallback_328(void * context) { (static_cast(context))->OnSuccessResponse_328(); } - static void OnFailureCallback_329(void * context, EmberAfStatus status) + static void OnFailureCallback_329(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_329(status); + (static_cast(context))->OnFailureResponse_329(error); } static void OnSuccessCallback_329(void * context, const chip::app::DataModel::Nullable & nullableEnum8) @@ -48238,16 +51589,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_329(nullableEnum8); } - static void OnFailureCallback_330(void * context, EmberAfStatus status) + static void OnFailureCallback_330(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_330(status); + (static_cast(context))->OnFailureResponse_330(error); } static void OnSuccessCallback_330(void * context) { (static_cast(context))->OnSuccessResponse_330(); } - static void OnFailureCallback_331(void * context, EmberAfStatus status) + static void OnFailureCallback_331(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_331(status); + (static_cast(context))->OnFailureResponse_331(error); } static void OnSuccessCallback_331(void * context, const chip::app::DataModel::Nullable & nullableEnum16) @@ -48255,16 +51606,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_331(nullableEnum16); } - static void OnFailureCallback_332(void * context, EmberAfStatus status) + static void OnFailureCallback_332(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_332(status); + (static_cast(context))->OnFailureResponse_332(error); } static void OnSuccessCallback_332(void * context) { (static_cast(context))->OnSuccessResponse_332(); } - static void OnFailureCallback_333(void * context, EmberAfStatus status) + static void OnFailureCallback_333(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_333(status); + (static_cast(context))->OnFailureResponse_333(error); } static void OnSuccessCallback_333(void * context, const chip::app::DataModel::Nullable & nullableEnum16) @@ -48272,16 +51623,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_333(nullableEnum16); } - static void OnFailureCallback_334(void * context, EmberAfStatus status) + static void OnFailureCallback_334(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_334(status); + (static_cast(context))->OnFailureResponse_334(error); } static void OnSuccessCallback_334(void * context) { (static_cast(context))->OnSuccessResponse_334(); } - static void OnFailureCallback_335(void * context, EmberAfStatus status) + static void OnFailureCallback_335(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_335(status); + (static_cast(context))->OnFailureResponse_335(error); } static void OnSuccessCallback_335(void * context, const chip::app::DataModel::Nullable & nullableEnum16) @@ -48289,16 +51640,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_335(nullableEnum16); } - static void OnFailureCallback_336(void * context, EmberAfStatus status) + static void OnFailureCallback_336(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_336(status); + (static_cast(context))->OnFailureResponse_336(error); } static void OnSuccessCallback_336(void * context) { (static_cast(context))->OnSuccessResponse_336(); } - static void OnFailureCallback_337(void * context, EmberAfStatus status) + static void OnFailureCallback_337(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_337(status); + (static_cast(context))->OnFailureResponse_337(error); } static void OnSuccessCallback_337(void * context, const chip::app::DataModel::Nullable & nullableEnum16) @@ -48306,16 +51657,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_337(nullableEnum16); } - static void OnFailureCallback_338(void * context, EmberAfStatus status) + static void OnFailureCallback_338(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_338(status); + (static_cast(context))->OnFailureResponse_338(error); } static void OnSuccessCallback_338(void * context) { (static_cast(context))->OnSuccessResponse_338(); } - static void OnFailureCallback_339(void * context, EmberAfStatus status) + static void OnFailureCallback_339(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_339(status); + (static_cast(context))->OnFailureResponse_339(error); } static void @@ -48325,16 +51676,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_339(nullableEnumAttr); } - static void OnFailureCallback_340(void * context, EmberAfStatus status) + static void OnFailureCallback_340(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_340(status); + (static_cast(context))->OnFailureResponse_340(error); } static void OnSuccessCallback_340(void * context) { (static_cast(context))->OnSuccessResponse_340(); } - static void OnFailureCallback_341(void * context, EmberAfStatus status) + static void OnFailureCallback_341(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_341(status); + (static_cast(context))->OnFailureResponse_341(error); } static void @@ -48344,16 +51695,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_341(nullableEnumAttr); } - static void OnFailureCallback_342(void * context, EmberAfStatus status) + static void OnFailureCallback_342(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_342(status); + (static_cast(context))->OnFailureResponse_342(error); } static void OnSuccessCallback_342(void * context) { (static_cast(context))->OnSuccessResponse_342(); } - static void OnFailureCallback_343(void * context, EmberAfStatus status) + static void OnFailureCallback_343(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_343(status); + (static_cast(context))->OnFailureResponse_343(error); } static void @@ -48363,16 +51714,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_343(nullableEnumAttr); } - static void OnFailureCallback_344(void * context, EmberAfStatus status) + static void OnFailureCallback_344(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_344(status); + (static_cast(context))->OnFailureResponse_344(error); } static void OnSuccessCallback_344(void * context) { (static_cast(context))->OnSuccessResponse_344(); } - static void OnFailureCallback_345(void * context, EmberAfStatus status) + static void OnFailureCallback_345(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_345(status); + (static_cast(context))->OnFailureResponse_345(error); } static void @@ -48382,9 +51733,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_345(nullableEnumAttr); } - static void OnFailureCallback_346(void * context, EmberAfStatus status) + static void OnFailureCallback_346(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_346(status); + (static_cast(context))->OnFailureResponse_346(error); } static void OnSuccessCallback_346(void * context, const chip::app::DataModel::Nullable & nullableOctetString) @@ -48392,16 +51743,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_346(nullableOctetString); } - static void OnFailureCallback_347(void * context, EmberAfStatus status) + static void OnFailureCallback_347(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_347(status); + (static_cast(context))->OnFailureResponse_347(error); } static void OnSuccessCallback_347(void * context) { (static_cast(context))->OnSuccessResponse_347(); } - static void OnFailureCallback_348(void * context, EmberAfStatus status) + static void OnFailureCallback_348(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_348(status); + (static_cast(context))->OnFailureResponse_348(error); } static void OnSuccessCallback_348(void * context, const chip::app::DataModel::Nullable & nullableOctetString) @@ -48409,16 +51760,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_348(nullableOctetString); } - static void OnFailureCallback_349(void * context, EmberAfStatus status) + static void OnFailureCallback_349(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_349(status); + (static_cast(context))->OnFailureResponse_349(error); } static void OnSuccessCallback_349(void * context) { (static_cast(context))->OnSuccessResponse_349(); } - static void OnFailureCallback_350(void * context, EmberAfStatus status) + static void OnFailureCallback_350(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_350(status); + (static_cast(context))->OnFailureResponse_350(error); } static void OnSuccessCallback_350(void * context, const chip::app::DataModel::Nullable & nullableOctetString) @@ -48426,16 +51777,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_350(nullableOctetString); } - static void OnFailureCallback_351(void * context, EmberAfStatus status) + static void OnFailureCallback_351(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_351(status); + (static_cast(context))->OnFailureResponse_351(error); } static void OnSuccessCallback_351(void * context) { (static_cast(context))->OnSuccessResponse_351(); } - static void OnFailureCallback_352(void * context, EmberAfStatus status) + static void OnFailureCallback_352(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_352(status); + (static_cast(context))->OnFailureResponse_352(error); } static void OnSuccessCallback_352(void * context, const chip::app::DataModel::Nullable & nullableOctetString) @@ -48443,9 +51794,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_352(nullableOctetString); } - static void OnFailureCallback_353(void * context, EmberAfStatus status) + static void OnFailureCallback_353(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_353(status); + (static_cast(context))->OnFailureResponse_353(error); } static void OnSuccessCallback_353(void * context, const chip::app::DataModel::Nullable & nullableCharString) @@ -48453,16 +51804,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_353(nullableCharString); } - static void OnFailureCallback_354(void * context, EmberAfStatus status) + static void OnFailureCallback_354(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_354(status); + (static_cast(context))->OnFailureResponse_354(error); } static void OnSuccessCallback_354(void * context) { (static_cast(context))->OnSuccessResponse_354(); } - static void OnFailureCallback_355(void * context, EmberAfStatus status) + static void OnFailureCallback_355(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_355(status); + (static_cast(context))->OnFailureResponse_355(error); } static void OnSuccessCallback_355(void * context, const chip::app::DataModel::Nullable & nullableCharString) @@ -48470,16 +51821,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_355(nullableCharString); } - static void OnFailureCallback_356(void * context, EmberAfStatus status) + static void OnFailureCallback_356(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_356(status); + (static_cast(context))->OnFailureResponse_356(error); } static void OnSuccessCallback_356(void * context) { (static_cast(context))->OnSuccessResponse_356(); } - static void OnFailureCallback_357(void * context, EmberAfStatus status) + static void OnFailureCallback_357(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_357(status); + (static_cast(context))->OnFailureResponse_357(error); } static void OnSuccessCallback_357(void * context, const chip::app::DataModel::Nullable & nullableCharString) @@ -48487,16 +51838,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_357(nullableCharString); } - static void OnFailureCallback_358(void * context, EmberAfStatus status) + static void OnFailureCallback_358(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_358(status); + (static_cast(context))->OnFailureResponse_358(error); } static void OnSuccessCallback_358(void * context) { (static_cast(context))->OnSuccessResponse_358(); } - static void OnFailureCallback_359(void * context, EmberAfStatus status) + static void OnFailureCallback_359(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_359(status); + (static_cast(context))->OnFailureResponse_359(error); } static void OnSuccessCallback_359(void * context, const chip::app::DataModel::Nullable & nullableCharString) @@ -48504,9 +51855,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_359(nullableCharString); } - static void OnFailureCallback_360(void * context, EmberAfStatus status) + static void OnFailureCallback_360(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_360(status); + (static_cast(context))->OnFailureResponse_360(error); } static void OnSuccessCallback_360(void * context, const chip::app::DataModel::DecodableList & listInt8u) @@ -48514,9 +51865,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_360(listInt8u); } - static void OnFailureCallback_361(void * context, EmberAfStatus status) + static void OnFailureCallback_361(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_361(status); + (static_cast(context))->OnFailureResponse_361(error); } static void OnSuccessCallback_361(void * context, const chip::app::DataModel::DecodableList & listInt8u) @@ -48524,9 +51875,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_361(listInt8u); } - static void OnFailureCallback_364(void * context, EmberAfStatus status) + static void OnFailureCallback_364(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_364(status); + (static_cast(context))->OnFailureResponse_364(error); } static void OnSuccessCallback_364(void * context, const chip::app::DataModel::DecodableList & listInt8u) @@ -48536,9 +51887,9 @@ class TestCluster : public TestCommand bool mReceivedReport_364 = false; - static void OnFailureCallback_365(void * context, EmberAfStatus status) + static void OnFailureCallback_365(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_365(status); + (static_cast(context))->OnFailureResponse_365(error); } static void OnSuccessCallback_365(void * context, const chip::app::DataModel::DecodableList & listInt8u) @@ -48551,16 +51902,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSubscriptionEstablishedResponse_365(); } - static void OnFailureCallback_366(void * context, EmberAfStatus status) + static void OnFailureCallback_366(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_366(status); + (static_cast(context))->OnFailureResponse_366(error); } static void OnSuccessCallback_366(void * context) { (static_cast(context))->OnSuccessResponse_366(); } - static void OnFailureCallback_367(void * context, EmberAfStatus status) + static void OnFailureCallback_367(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_367(status); + (static_cast(context))->OnFailureResponse_367(error); } static void OnSuccessCallback_367(void * context, const chip::app::DataModel::DecodableList & listInt8u) @@ -48570,9 +51921,9 @@ class TestCluster : public TestCommand bool mReceivedReport_367 = false; - static void OnFailureCallback_368(void * context, EmberAfStatus status) + static void OnFailureCallback_368(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_368(status); + (static_cast(context))->OnFailureResponse_368(error); } static void OnSuccessCallback_368(void * context, uint8_t rangeRestrictedInt8u) @@ -48580,37 +51931,37 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_368(rangeRestrictedInt8u); } - static void OnFailureCallback_369(void * context, EmberAfStatus status) + static void OnFailureCallback_369(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_369(status); + (static_cast(context))->OnFailureResponse_369(error); } static void OnSuccessCallback_369(void * context) { (static_cast(context))->OnSuccessResponse_369(); } - static void OnFailureCallback_370(void * context, EmberAfStatus status) + static void OnFailureCallback_370(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_370(status); + (static_cast(context))->OnFailureResponse_370(error); } static void OnSuccessCallback_370(void * context) { (static_cast(context))->OnSuccessResponse_370(); } - static void OnFailureCallback_371(void * context, EmberAfStatus status) + static void OnFailureCallback_371(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_371(status); + (static_cast(context))->OnFailureResponse_371(error); } static void OnSuccessCallback_371(void * context) { (static_cast(context))->OnSuccessResponse_371(); } - static void OnFailureCallback_372(void * context, EmberAfStatus status) + static void OnFailureCallback_372(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_372(status); + (static_cast(context))->OnFailureResponse_372(error); } static void OnSuccessCallback_372(void * context) { (static_cast(context))->OnSuccessResponse_372(); } - static void OnFailureCallback_373(void * context, EmberAfStatus status) + static void OnFailureCallback_373(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_373(status); + (static_cast(context))->OnFailureResponse_373(error); } static void OnSuccessCallback_373(void * context, uint8_t rangeRestrictedInt8u) @@ -48618,16 +51969,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_373(rangeRestrictedInt8u); } - static void OnFailureCallback_374(void * context, EmberAfStatus status) + static void OnFailureCallback_374(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_374(status); + (static_cast(context))->OnFailureResponse_374(error); } static void OnSuccessCallback_374(void * context) { (static_cast(context))->OnSuccessResponse_374(); } - static void OnFailureCallback_375(void * context, EmberAfStatus status) + static void OnFailureCallback_375(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_375(status); + (static_cast(context))->OnFailureResponse_375(error); } static void OnSuccessCallback_375(void * context, uint8_t rangeRestrictedInt8u) @@ -48635,16 +51986,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_375(rangeRestrictedInt8u); } - static void OnFailureCallback_376(void * context, EmberAfStatus status) + static void OnFailureCallback_376(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_376(status); + (static_cast(context))->OnFailureResponse_376(error); } static void OnSuccessCallback_376(void * context) { (static_cast(context))->OnSuccessResponse_376(); } - static void OnFailureCallback_377(void * context, EmberAfStatus status) + static void OnFailureCallback_377(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_377(status); + (static_cast(context))->OnFailureResponse_377(error); } static void OnSuccessCallback_377(void * context, uint8_t rangeRestrictedInt8u) @@ -48652,16 +52003,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_377(rangeRestrictedInt8u); } - static void OnFailureCallback_378(void * context, EmberAfStatus status) + static void OnFailureCallback_378(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_378(status); + (static_cast(context))->OnFailureResponse_378(error); } static void OnSuccessCallback_378(void * context) { (static_cast(context))->OnSuccessResponse_378(); } - static void OnFailureCallback_379(void * context, EmberAfStatus status) + static void OnFailureCallback_379(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_379(status); + (static_cast(context))->OnFailureResponse_379(error); } static void OnSuccessCallback_379(void * context, uint8_t rangeRestrictedInt8u) @@ -48669,9 +52020,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_379(rangeRestrictedInt8u); } - static void OnFailureCallback_380(void * context, EmberAfStatus status) + static void OnFailureCallback_380(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_380(status); + (static_cast(context))->OnFailureResponse_380(error); } static void OnSuccessCallback_380(void * context, uint16_t rangeRestrictedInt16u) @@ -48679,37 +52030,37 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_380(rangeRestrictedInt16u); } - static void OnFailureCallback_381(void * context, EmberAfStatus status) + static void OnFailureCallback_381(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_381(status); + (static_cast(context))->OnFailureResponse_381(error); } static void OnSuccessCallback_381(void * context) { (static_cast(context))->OnSuccessResponse_381(); } - static void OnFailureCallback_382(void * context, EmberAfStatus status) + static void OnFailureCallback_382(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_382(status); + (static_cast(context))->OnFailureResponse_382(error); } static void OnSuccessCallback_382(void * context) { (static_cast(context))->OnSuccessResponse_382(); } - static void OnFailureCallback_383(void * context, EmberAfStatus status) + static void OnFailureCallback_383(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_383(status); + (static_cast(context))->OnFailureResponse_383(error); } static void OnSuccessCallback_383(void * context) { (static_cast(context))->OnSuccessResponse_383(); } - static void OnFailureCallback_384(void * context, EmberAfStatus status) + static void OnFailureCallback_384(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_384(status); + (static_cast(context))->OnFailureResponse_384(error); } static void OnSuccessCallback_384(void * context) { (static_cast(context))->OnSuccessResponse_384(); } - static void OnFailureCallback_385(void * context, EmberAfStatus status) + static void OnFailureCallback_385(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_385(status); + (static_cast(context))->OnFailureResponse_385(error); } static void OnSuccessCallback_385(void * context, uint16_t rangeRestrictedInt16u) @@ -48717,16 +52068,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_385(rangeRestrictedInt16u); } - static void OnFailureCallback_386(void * context, EmberAfStatus status) + static void OnFailureCallback_386(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_386(status); + (static_cast(context))->OnFailureResponse_386(error); } static void OnSuccessCallback_386(void * context) { (static_cast(context))->OnSuccessResponse_386(); } - static void OnFailureCallback_387(void * context, EmberAfStatus status) + static void OnFailureCallback_387(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_387(status); + (static_cast(context))->OnFailureResponse_387(error); } static void OnSuccessCallback_387(void * context, uint16_t rangeRestrictedInt16u) @@ -48734,16 +52085,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_387(rangeRestrictedInt16u); } - static void OnFailureCallback_388(void * context, EmberAfStatus status) + static void OnFailureCallback_388(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_388(status); + (static_cast(context))->OnFailureResponse_388(error); } static void OnSuccessCallback_388(void * context) { (static_cast(context))->OnSuccessResponse_388(); } - static void OnFailureCallback_389(void * context, EmberAfStatus status) + static void OnFailureCallback_389(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_389(status); + (static_cast(context))->OnFailureResponse_389(error); } static void OnSuccessCallback_389(void * context, uint16_t rangeRestrictedInt16u) @@ -48751,16 +52102,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_389(rangeRestrictedInt16u); } - static void OnFailureCallback_390(void * context, EmberAfStatus status) + static void OnFailureCallback_390(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_390(status); + (static_cast(context))->OnFailureResponse_390(error); } static void OnSuccessCallback_390(void * context) { (static_cast(context))->OnSuccessResponse_390(); } - static void OnFailureCallback_391(void * context, EmberAfStatus status) + static void OnFailureCallback_391(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_391(status); + (static_cast(context))->OnFailureResponse_391(error); } static void OnSuccessCallback_391(void * context, uint16_t rangeRestrictedInt16u) @@ -48768,9 +52119,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_391(rangeRestrictedInt16u); } - static void OnFailureCallback_392(void * context, EmberAfStatus status) + static void OnFailureCallback_392(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_392(status); + (static_cast(context))->OnFailureResponse_392(error); } static void OnSuccessCallback_392(void * context, int8_t rangeRestrictedInt8s) @@ -48778,37 +52129,37 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_392(rangeRestrictedInt8s); } - static void OnFailureCallback_393(void * context, EmberAfStatus status) + static void OnFailureCallback_393(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_393(status); + (static_cast(context))->OnFailureResponse_393(error); } static void OnSuccessCallback_393(void * context) { (static_cast(context))->OnSuccessResponse_393(); } - static void OnFailureCallback_394(void * context, EmberAfStatus status) + static void OnFailureCallback_394(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_394(status); + (static_cast(context))->OnFailureResponse_394(error); } static void OnSuccessCallback_394(void * context) { (static_cast(context))->OnSuccessResponse_394(); } - static void OnFailureCallback_395(void * context, EmberAfStatus status) + static void OnFailureCallback_395(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_395(status); + (static_cast(context))->OnFailureResponse_395(error); } static void OnSuccessCallback_395(void * context) { (static_cast(context))->OnSuccessResponse_395(); } - static void OnFailureCallback_396(void * context, EmberAfStatus status) + static void OnFailureCallback_396(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_396(status); + (static_cast(context))->OnFailureResponse_396(error); } static void OnSuccessCallback_396(void * context) { (static_cast(context))->OnSuccessResponse_396(); } - static void OnFailureCallback_397(void * context, EmberAfStatus status) + static void OnFailureCallback_397(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_397(status); + (static_cast(context))->OnFailureResponse_397(error); } static void OnSuccessCallback_397(void * context, int8_t rangeRestrictedInt8s) @@ -48816,16 +52167,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_397(rangeRestrictedInt8s); } - static void OnFailureCallback_398(void * context, EmberAfStatus status) + static void OnFailureCallback_398(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_398(status); + (static_cast(context))->OnFailureResponse_398(error); } static void OnSuccessCallback_398(void * context) { (static_cast(context))->OnSuccessResponse_398(); } - static void OnFailureCallback_399(void * context, EmberAfStatus status) + static void OnFailureCallback_399(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_399(status); + (static_cast(context))->OnFailureResponse_399(error); } static void OnSuccessCallback_399(void * context, int8_t rangeRestrictedInt8s) @@ -48833,16 +52184,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_399(rangeRestrictedInt8s); } - static void OnFailureCallback_400(void * context, EmberAfStatus status) + static void OnFailureCallback_400(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_400(status); + (static_cast(context))->OnFailureResponse_400(error); } static void OnSuccessCallback_400(void * context) { (static_cast(context))->OnSuccessResponse_400(); } - static void OnFailureCallback_401(void * context, EmberAfStatus status) + static void OnFailureCallback_401(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_401(status); + (static_cast(context))->OnFailureResponse_401(error); } static void OnSuccessCallback_401(void * context, int8_t rangeRestrictedInt8s) @@ -48850,16 +52201,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_401(rangeRestrictedInt8s); } - static void OnFailureCallback_402(void * context, EmberAfStatus status) + static void OnFailureCallback_402(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_402(status); + (static_cast(context))->OnFailureResponse_402(error); } static void OnSuccessCallback_402(void * context) { (static_cast(context))->OnSuccessResponse_402(); } - static void OnFailureCallback_403(void * context, EmberAfStatus status) + static void OnFailureCallback_403(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_403(status); + (static_cast(context))->OnFailureResponse_403(error); } static void OnSuccessCallback_403(void * context, int8_t rangeRestrictedInt8s) @@ -48867,9 +52218,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_403(rangeRestrictedInt8s); } - static void OnFailureCallback_404(void * context, EmberAfStatus status) + static void OnFailureCallback_404(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_404(status); + (static_cast(context))->OnFailureResponse_404(error); } static void OnSuccessCallback_404(void * context, int16_t rangeRestrictedInt16s) @@ -48877,37 +52228,37 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_404(rangeRestrictedInt16s); } - static void OnFailureCallback_405(void * context, EmberAfStatus status) + static void OnFailureCallback_405(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_405(status); + (static_cast(context))->OnFailureResponse_405(error); } static void OnSuccessCallback_405(void * context) { (static_cast(context))->OnSuccessResponse_405(); } - static void OnFailureCallback_406(void * context, EmberAfStatus status) + static void OnFailureCallback_406(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_406(status); + (static_cast(context))->OnFailureResponse_406(error); } static void OnSuccessCallback_406(void * context) { (static_cast(context))->OnSuccessResponse_406(); } - static void OnFailureCallback_407(void * context, EmberAfStatus status) + static void OnFailureCallback_407(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_407(status); + (static_cast(context))->OnFailureResponse_407(error); } static void OnSuccessCallback_407(void * context) { (static_cast(context))->OnSuccessResponse_407(); } - static void OnFailureCallback_408(void * context, EmberAfStatus status) + static void OnFailureCallback_408(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_408(status); + (static_cast(context))->OnFailureResponse_408(error); } static void OnSuccessCallback_408(void * context) { (static_cast(context))->OnSuccessResponse_408(); } - static void OnFailureCallback_409(void * context, EmberAfStatus status) + static void OnFailureCallback_409(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_409(status); + (static_cast(context))->OnFailureResponse_409(error); } static void OnSuccessCallback_409(void * context, int16_t rangeRestrictedInt16s) @@ -48915,16 +52266,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_409(rangeRestrictedInt16s); } - static void OnFailureCallback_410(void * context, EmberAfStatus status) + static void OnFailureCallback_410(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_410(status); + (static_cast(context))->OnFailureResponse_410(error); } static void OnSuccessCallback_410(void * context) { (static_cast(context))->OnSuccessResponse_410(); } - static void OnFailureCallback_411(void * context, EmberAfStatus status) + static void OnFailureCallback_411(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_411(status); + (static_cast(context))->OnFailureResponse_411(error); } static void OnSuccessCallback_411(void * context, int16_t rangeRestrictedInt16s) @@ -48932,16 +52283,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_411(rangeRestrictedInt16s); } - static void OnFailureCallback_412(void * context, EmberAfStatus status) + static void OnFailureCallback_412(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_412(status); + (static_cast(context))->OnFailureResponse_412(error); } static void OnSuccessCallback_412(void * context) { (static_cast(context))->OnSuccessResponse_412(); } - static void OnFailureCallback_413(void * context, EmberAfStatus status) + static void OnFailureCallback_413(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_413(status); + (static_cast(context))->OnFailureResponse_413(error); } static void OnSuccessCallback_413(void * context, int16_t rangeRestrictedInt16s) @@ -48949,16 +52300,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_413(rangeRestrictedInt16s); } - static void OnFailureCallback_414(void * context, EmberAfStatus status) + static void OnFailureCallback_414(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_414(status); + (static_cast(context))->OnFailureResponse_414(error); } static void OnSuccessCallback_414(void * context) { (static_cast(context))->OnSuccessResponse_414(); } - static void OnFailureCallback_415(void * context, EmberAfStatus status) + static void OnFailureCallback_415(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_415(status); + (static_cast(context))->OnFailureResponse_415(error); } static void OnSuccessCallback_415(void * context, int16_t rangeRestrictedInt16s) @@ -48966,9 +52317,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_415(rangeRestrictedInt16s); } - static void OnFailureCallback_416(void * context, EmberAfStatus status) + static void OnFailureCallback_416(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_416(status); + (static_cast(context))->OnFailureResponse_416(error); } static void OnSuccessCallback_416(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8u) @@ -48976,37 +52327,37 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_416(nullableRangeRestrictedInt8u); } - static void OnFailureCallback_417(void * context, EmberAfStatus status) + static void OnFailureCallback_417(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_417(status); + (static_cast(context))->OnFailureResponse_417(error); } static void OnSuccessCallback_417(void * context) { (static_cast(context))->OnSuccessResponse_417(); } - static void OnFailureCallback_418(void * context, EmberAfStatus status) + static void OnFailureCallback_418(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_418(status); + (static_cast(context))->OnFailureResponse_418(error); } static void OnSuccessCallback_418(void * context) { (static_cast(context))->OnSuccessResponse_418(); } - static void OnFailureCallback_419(void * context, EmberAfStatus status) + static void OnFailureCallback_419(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_419(status); + (static_cast(context))->OnFailureResponse_419(error); } static void OnSuccessCallback_419(void * context) { (static_cast(context))->OnSuccessResponse_419(); } - static void OnFailureCallback_420(void * context, EmberAfStatus status) + static void OnFailureCallback_420(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_420(status); + (static_cast(context))->OnFailureResponse_420(error); } static void OnSuccessCallback_420(void * context) { (static_cast(context))->OnSuccessResponse_420(); } - static void OnFailureCallback_421(void * context, EmberAfStatus status) + static void OnFailureCallback_421(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_421(status); + (static_cast(context))->OnFailureResponse_421(error); } static void OnSuccessCallback_421(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8u) @@ -49014,16 +52365,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_421(nullableRangeRestrictedInt8u); } - static void OnFailureCallback_422(void * context, EmberAfStatus status) + static void OnFailureCallback_422(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_422(status); + (static_cast(context))->OnFailureResponse_422(error); } static void OnSuccessCallback_422(void * context) { (static_cast(context))->OnSuccessResponse_422(); } - static void OnFailureCallback_423(void * context, EmberAfStatus status) + static void OnFailureCallback_423(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_423(status); + (static_cast(context))->OnFailureResponse_423(error); } static void OnSuccessCallback_423(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8u) @@ -49031,16 +52382,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_423(nullableRangeRestrictedInt8u); } - static void OnFailureCallback_424(void * context, EmberAfStatus status) + static void OnFailureCallback_424(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_424(status); + (static_cast(context))->OnFailureResponse_424(error); } static void OnSuccessCallback_424(void * context) { (static_cast(context))->OnSuccessResponse_424(); } - static void OnFailureCallback_425(void * context, EmberAfStatus status) + static void OnFailureCallback_425(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_425(status); + (static_cast(context))->OnFailureResponse_425(error); } static void OnSuccessCallback_425(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8u) @@ -49048,16 +52399,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_425(nullableRangeRestrictedInt8u); } - static void OnFailureCallback_426(void * context, EmberAfStatus status) + static void OnFailureCallback_426(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_426(status); + (static_cast(context))->OnFailureResponse_426(error); } static void OnSuccessCallback_426(void * context) { (static_cast(context))->OnSuccessResponse_426(); } - static void OnFailureCallback_427(void * context, EmberAfStatus status) + static void OnFailureCallback_427(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_427(status); + (static_cast(context))->OnFailureResponse_427(error); } static void OnSuccessCallback_427(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8u) @@ -49065,16 +52416,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_427(nullableRangeRestrictedInt8u); } - static void OnFailureCallback_428(void * context, EmberAfStatus status) + static void OnFailureCallback_428(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_428(status); + (static_cast(context))->OnFailureResponse_428(error); } static void OnSuccessCallback_428(void * context) { (static_cast(context))->OnSuccessResponse_428(); } - static void OnFailureCallback_429(void * context, EmberAfStatus status) + static void OnFailureCallback_429(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_429(status); + (static_cast(context))->OnFailureResponse_429(error); } static void OnSuccessCallback_429(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8u) @@ -49082,9 +52433,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_429(nullableRangeRestrictedInt8u); } - static void OnFailureCallback_430(void * context, EmberAfStatus status) + static void OnFailureCallback_430(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_430(status); + (static_cast(context))->OnFailureResponse_430(error); } static void OnSuccessCallback_430(void * context, @@ -49093,37 +52444,37 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_430(nullableRangeRestrictedInt16u); } - static void OnFailureCallback_431(void * context, EmberAfStatus status) + static void OnFailureCallback_431(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_431(status); + (static_cast(context))->OnFailureResponse_431(error); } static void OnSuccessCallback_431(void * context) { (static_cast(context))->OnSuccessResponse_431(); } - static void OnFailureCallback_432(void * context, EmberAfStatus status) + static void OnFailureCallback_432(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_432(status); + (static_cast(context))->OnFailureResponse_432(error); } static void OnSuccessCallback_432(void * context) { (static_cast(context))->OnSuccessResponse_432(); } - static void OnFailureCallback_433(void * context, EmberAfStatus status) + static void OnFailureCallback_433(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_433(status); + (static_cast(context))->OnFailureResponse_433(error); } static void OnSuccessCallback_433(void * context) { (static_cast(context))->OnSuccessResponse_433(); } - static void OnFailureCallback_434(void * context, EmberAfStatus status) + static void OnFailureCallback_434(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_434(status); + (static_cast(context))->OnFailureResponse_434(error); } static void OnSuccessCallback_434(void * context) { (static_cast(context))->OnSuccessResponse_434(); } - static void OnFailureCallback_435(void * context, EmberAfStatus status) + static void OnFailureCallback_435(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_435(status); + (static_cast(context))->OnFailureResponse_435(error); } static void OnSuccessCallback_435(void * context, @@ -49132,16 +52483,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_435(nullableRangeRestrictedInt16u); } - static void OnFailureCallback_436(void * context, EmberAfStatus status) + static void OnFailureCallback_436(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_436(status); + (static_cast(context))->OnFailureResponse_436(error); } static void OnSuccessCallback_436(void * context) { (static_cast(context))->OnSuccessResponse_436(); } - static void OnFailureCallback_437(void * context, EmberAfStatus status) + static void OnFailureCallback_437(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_437(status); + (static_cast(context))->OnFailureResponse_437(error); } static void OnSuccessCallback_437(void * context, @@ -49150,16 +52501,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_437(nullableRangeRestrictedInt16u); } - static void OnFailureCallback_438(void * context, EmberAfStatus status) + static void OnFailureCallback_438(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_438(status); + (static_cast(context))->OnFailureResponse_438(error); } static void OnSuccessCallback_438(void * context) { (static_cast(context))->OnSuccessResponse_438(); } - static void OnFailureCallback_439(void * context, EmberAfStatus status) + static void OnFailureCallback_439(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_439(status); + (static_cast(context))->OnFailureResponse_439(error); } static void OnSuccessCallback_439(void * context, @@ -49168,16 +52519,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_439(nullableRangeRestrictedInt16u); } - static void OnFailureCallback_440(void * context, EmberAfStatus status) + static void OnFailureCallback_440(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_440(status); + (static_cast(context))->OnFailureResponse_440(error); } static void OnSuccessCallback_440(void * context) { (static_cast(context))->OnSuccessResponse_440(); } - static void OnFailureCallback_441(void * context, EmberAfStatus status) + static void OnFailureCallback_441(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_441(status); + (static_cast(context))->OnFailureResponse_441(error); } static void OnSuccessCallback_441(void * context, @@ -49186,16 +52537,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_441(nullableRangeRestrictedInt16u); } - static void OnFailureCallback_442(void * context, EmberAfStatus status) + static void OnFailureCallback_442(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_442(status); + (static_cast(context))->OnFailureResponse_442(error); } static void OnSuccessCallback_442(void * context) { (static_cast(context))->OnSuccessResponse_442(); } - static void OnFailureCallback_443(void * context, EmberAfStatus status) + static void OnFailureCallback_443(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_443(status); + (static_cast(context))->OnFailureResponse_443(error); } static void OnSuccessCallback_443(void * context, @@ -49204,9 +52555,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_443(nullableRangeRestrictedInt16u); } - static void OnFailureCallback_444(void * context, EmberAfStatus status) + static void OnFailureCallback_444(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_444(status); + (static_cast(context))->OnFailureResponse_444(error); } static void OnSuccessCallback_444(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8s) @@ -49214,37 +52565,37 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_444(nullableRangeRestrictedInt8s); } - static void OnFailureCallback_445(void * context, EmberAfStatus status) + static void OnFailureCallback_445(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_445(status); + (static_cast(context))->OnFailureResponse_445(error); } static void OnSuccessCallback_445(void * context) { (static_cast(context))->OnSuccessResponse_445(); } - static void OnFailureCallback_446(void * context, EmberAfStatus status) + static void OnFailureCallback_446(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_446(status); + (static_cast(context))->OnFailureResponse_446(error); } static void OnSuccessCallback_446(void * context) { (static_cast(context))->OnSuccessResponse_446(); } - static void OnFailureCallback_447(void * context, EmberAfStatus status) + static void OnFailureCallback_447(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_447(status); + (static_cast(context))->OnFailureResponse_447(error); } static void OnSuccessCallback_447(void * context) { (static_cast(context))->OnSuccessResponse_447(); } - static void OnFailureCallback_448(void * context, EmberAfStatus status) + static void OnFailureCallback_448(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_448(status); + (static_cast(context))->OnFailureResponse_448(error); } static void OnSuccessCallback_448(void * context) { (static_cast(context))->OnSuccessResponse_448(); } - static void OnFailureCallback_449(void * context, EmberAfStatus status) + static void OnFailureCallback_449(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_449(status); + (static_cast(context))->OnFailureResponse_449(error); } static void OnSuccessCallback_449(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8s) @@ -49252,16 +52603,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_449(nullableRangeRestrictedInt8s); } - static void OnFailureCallback_450(void * context, EmberAfStatus status) + static void OnFailureCallback_450(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_450(status); + (static_cast(context))->OnFailureResponse_450(error); } static void OnSuccessCallback_450(void * context) { (static_cast(context))->OnSuccessResponse_450(); } - static void OnFailureCallback_451(void * context, EmberAfStatus status) + static void OnFailureCallback_451(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_451(status); + (static_cast(context))->OnFailureResponse_451(error); } static void OnSuccessCallback_451(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8s) @@ -49269,16 +52620,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_451(nullableRangeRestrictedInt8s); } - static void OnFailureCallback_452(void * context, EmberAfStatus status) + static void OnFailureCallback_452(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_452(status); + (static_cast(context))->OnFailureResponse_452(error); } static void OnSuccessCallback_452(void * context) { (static_cast(context))->OnSuccessResponse_452(); } - static void OnFailureCallback_453(void * context, EmberAfStatus status) + static void OnFailureCallback_453(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_453(status); + (static_cast(context))->OnFailureResponse_453(error); } static void OnSuccessCallback_453(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8s) @@ -49286,16 +52637,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_453(nullableRangeRestrictedInt8s); } - static void OnFailureCallback_454(void * context, EmberAfStatus status) + static void OnFailureCallback_454(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_454(status); + (static_cast(context))->OnFailureResponse_454(error); } static void OnSuccessCallback_454(void * context) { (static_cast(context))->OnSuccessResponse_454(); } - static void OnFailureCallback_455(void * context, EmberAfStatus status) + static void OnFailureCallback_455(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_455(status); + (static_cast(context))->OnFailureResponse_455(error); } static void OnSuccessCallback_455(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8s) @@ -49303,16 +52654,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_455(nullableRangeRestrictedInt8s); } - static void OnFailureCallback_456(void * context, EmberAfStatus status) + static void OnFailureCallback_456(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_456(status); + (static_cast(context))->OnFailureResponse_456(error); } static void OnSuccessCallback_456(void * context) { (static_cast(context))->OnSuccessResponse_456(); } - static void OnFailureCallback_457(void * context, EmberAfStatus status) + static void OnFailureCallback_457(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_457(status); + (static_cast(context))->OnFailureResponse_457(error); } static void OnSuccessCallback_457(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8s) @@ -49320,9 +52671,9 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_457(nullableRangeRestrictedInt8s); } - static void OnFailureCallback_458(void * context, EmberAfStatus status) + static void OnFailureCallback_458(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_458(status); + (static_cast(context))->OnFailureResponse_458(error); } static void OnSuccessCallback_458(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16s) @@ -49330,37 +52681,37 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_458(nullableRangeRestrictedInt16s); } - static void OnFailureCallback_459(void * context, EmberAfStatus status) + static void OnFailureCallback_459(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_459(status); + (static_cast(context))->OnFailureResponse_459(error); } static void OnSuccessCallback_459(void * context) { (static_cast(context))->OnSuccessResponse_459(); } - static void OnFailureCallback_460(void * context, EmberAfStatus status) + static void OnFailureCallback_460(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_460(status); + (static_cast(context))->OnFailureResponse_460(error); } static void OnSuccessCallback_460(void * context) { (static_cast(context))->OnSuccessResponse_460(); } - static void OnFailureCallback_461(void * context, EmberAfStatus status) + static void OnFailureCallback_461(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_461(status); + (static_cast(context))->OnFailureResponse_461(error); } static void OnSuccessCallback_461(void * context) { (static_cast(context))->OnSuccessResponse_461(); } - static void OnFailureCallback_462(void * context, EmberAfStatus status) + static void OnFailureCallback_462(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_462(status); + (static_cast(context))->OnFailureResponse_462(error); } static void OnSuccessCallback_462(void * context) { (static_cast(context))->OnSuccessResponse_462(); } - static void OnFailureCallback_463(void * context, EmberAfStatus status) + static void OnFailureCallback_463(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_463(status); + (static_cast(context))->OnFailureResponse_463(error); } static void OnSuccessCallback_463(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16s) @@ -49368,16 +52719,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_463(nullableRangeRestrictedInt16s); } - static void OnFailureCallback_464(void * context, EmberAfStatus status) + static void OnFailureCallback_464(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_464(status); + (static_cast(context))->OnFailureResponse_464(error); } static void OnSuccessCallback_464(void * context) { (static_cast(context))->OnSuccessResponse_464(); } - static void OnFailureCallback_465(void * context, EmberAfStatus status) + static void OnFailureCallback_465(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_465(status); + (static_cast(context))->OnFailureResponse_465(error); } static void OnSuccessCallback_465(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16s) @@ -49385,16 +52736,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_465(nullableRangeRestrictedInt16s); } - static void OnFailureCallback_466(void * context, EmberAfStatus status) + static void OnFailureCallback_466(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_466(status); + (static_cast(context))->OnFailureResponse_466(error); } static void OnSuccessCallback_466(void * context) { (static_cast(context))->OnSuccessResponse_466(); } - static void OnFailureCallback_467(void * context, EmberAfStatus status) + static void OnFailureCallback_467(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_467(status); + (static_cast(context))->OnFailureResponse_467(error); } static void OnSuccessCallback_467(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16s) @@ -49402,16 +52753,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_467(nullableRangeRestrictedInt16s); } - static void OnFailureCallback_468(void * context, EmberAfStatus status) + static void OnFailureCallback_468(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_468(status); + (static_cast(context))->OnFailureResponse_468(error); } static void OnSuccessCallback_468(void * context) { (static_cast(context))->OnSuccessResponse_468(); } - static void OnFailureCallback_469(void * context, EmberAfStatus status) + static void OnFailureCallback_469(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_469(status); + (static_cast(context))->OnFailureResponse_469(error); } static void OnSuccessCallback_469(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16s) @@ -49419,16 +52770,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_469(nullableRangeRestrictedInt16s); } - static void OnFailureCallback_470(void * context, EmberAfStatus status) + static void OnFailureCallback_470(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_470(status); + (static_cast(context))->OnFailureResponse_470(error); } static void OnSuccessCallback_470(void * context) { (static_cast(context))->OnSuccessResponse_470(); } - static void OnFailureCallback_471(void * context, EmberAfStatus status) + static void OnFailureCallback_471(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_471(status); + (static_cast(context))->OnFailureResponse_471(error); } static void OnSuccessCallback_471(void * context, const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16s) @@ -49457,15 +52808,17 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); - }; + auto failure = [](void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -49480,17 +52833,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_2(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); - }; + auto failure = [](void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_2(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_INVALID_COMMAND)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); } @@ -49507,15 +52859,17 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_3(data.returnValue); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); - }; + auto failure = [](void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t returnValue) { @@ -49537,15 +52891,17 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_4(data.returnValue); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); - }; + auto failure = [](void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t returnValue) { @@ -49567,17 +52923,16 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_5(data.returnValue); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); - }; + auto failure = [](void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) + void OnFailureResponse_5(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_INVALID_COMMAND)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_COMMAND)); NextTest(); } @@ -49594,7 +52949,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(bool boolean) { @@ -49617,7 +52976,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -49632,7 +52995,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(bool boolean) { @@ -49655,7 +53022,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9() { NextTest(); } @@ -49670,7 +53041,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(bool boolean) { @@ -49690,7 +53065,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(uint8_t bitmap8) { @@ -49713,7 +53092,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12() { NextTest(); } @@ -49728,7 +53111,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(uint8_t bitmap8) { @@ -49751,7 +53138,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14() { NextTest(); } @@ -49766,7 +53157,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15(uint8_t bitmap8) { @@ -49786,7 +53181,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_16(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_16(uint16_t bitmap16) { @@ -49809,7 +53208,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_17(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_17(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_17() { NextTest(); } @@ -49824,7 +53227,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_18(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_18(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_18(uint16_t bitmap16) { @@ -49847,7 +53254,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_19(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_19(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_19() { NextTest(); } @@ -49862,7 +53273,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_20(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_20(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_20(uint16_t bitmap16) { @@ -49882,7 +53297,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_21(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_21(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_21(uint32_t bitmap32) { @@ -49905,7 +53324,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_22(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_22(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_22() { NextTest(); } @@ -49920,7 +53343,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_23(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_23(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_23(uint32_t bitmap32) { @@ -49943,7 +53370,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_24(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_24(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_24() { NextTest(); } @@ -49958,7 +53389,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_25(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_25(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_25(uint32_t bitmap32) { @@ -49978,7 +53413,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_26(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_26(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_26(uint64_t bitmap64) { @@ -50001,7 +53440,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_27(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_27(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_27() { NextTest(); } @@ -50016,7 +53459,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_28(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_28(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_28(uint64_t bitmap64) { @@ -50039,7 +53486,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_29(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_29(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_29() { NextTest(); } @@ -50054,7 +53505,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_30(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_30(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_30(uint64_t bitmap64) { @@ -50074,7 +53529,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_31(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_31(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_31(uint8_t int8u) { @@ -50097,7 +53556,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_32(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_32(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_32() { NextTest(); } @@ -50112,7 +53575,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_33(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_33(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_33(uint8_t int8u) { @@ -50135,7 +53602,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_34(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_34(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_34() { NextTest(); } @@ -50150,7 +53621,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_35(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_35(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_35(uint8_t int8u) { @@ -50170,7 +53645,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_36(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_36(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_36(uint16_t int16u) { @@ -50193,7 +53672,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_37(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_37(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_37() { NextTest(); } @@ -50208,7 +53691,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_38(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_38(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_38(uint16_t int16u) { @@ -50231,7 +53718,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_39(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_39(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_39() { NextTest(); } @@ -50246,7 +53737,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_40(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_40(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_40(uint16_t int16u) { @@ -50266,7 +53761,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_41(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_41(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_41(uint32_t int32u) { @@ -50289,7 +53788,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_42(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_42(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_42() { NextTest(); } @@ -50304,7 +53807,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_43(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_43(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_43(uint32_t int32u) { @@ -50327,7 +53834,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_44(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_44(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_44() { NextTest(); } @@ -50342,7 +53853,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_45(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_45(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_45(uint32_t int32u) { @@ -50362,7 +53877,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_46(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_46(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_46(uint64_t int64u) { @@ -50385,7 +53904,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_47(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_47(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_47() { NextTest(); } @@ -50400,7 +53923,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_48(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_48(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_48(uint64_t int64u) { @@ -50423,7 +53950,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_49(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_49(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_49() { NextTest(); } @@ -50438,7 +53969,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_50(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_50(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_50(uint64_t int64u) { @@ -50458,7 +53993,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_51(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_51(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_51(int8_t int8s) { @@ -50481,7 +54020,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_52(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_52(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_52() { NextTest(); } @@ -50496,7 +54039,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_53(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_53(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_53(int8_t int8s) { @@ -50519,7 +54066,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_54(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_54(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_54() { NextTest(); } @@ -50534,7 +54085,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_55(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_55(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_55(int8_t int8s) { @@ -50557,7 +54112,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_56(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_56(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_56() { NextTest(); } @@ -50572,7 +54131,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_57(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_57(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_57(int8_t int8s) { @@ -50592,7 +54155,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_58(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_58(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_58(int16_t int16s) { @@ -50615,7 +54182,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_59(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_59(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_59() { NextTest(); } @@ -50630,7 +54201,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_60(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_60(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_60(int16_t int16s) { @@ -50653,7 +54228,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_61(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_61(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_61() { NextTest(); } @@ -50668,7 +54247,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_62(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_62(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_62(int16_t int16s) { @@ -50691,7 +54274,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_63(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_63(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_63() { NextTest(); } @@ -50706,7 +54293,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_64(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_64(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_64(int16_t int16s) { @@ -50726,7 +54317,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_65(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_65(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_65(int32_t int32s) { @@ -50749,7 +54344,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_66(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_66(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_66() { NextTest(); } @@ -50764,7 +54363,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_67(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_67(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_67(int32_t int32s) { @@ -50787,7 +54390,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_68(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_68(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_68() { NextTest(); } @@ -50802,7 +54409,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_69(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_69(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_69(int32_t int32s) { @@ -50825,7 +54436,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_70(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_70(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_70() { NextTest(); } @@ -50840,7 +54455,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_71(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_71(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_71(int32_t int32s) { @@ -50860,7 +54479,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_72(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_72(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_72(int64_t int64s) { @@ -50883,7 +54506,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_73(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_73(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_73() { NextTest(); } @@ -50898,7 +54525,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_74(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_74(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_74(int64_t int64s) { @@ -50921,7 +54552,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_75(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_75(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_75() { NextTest(); } @@ -50936,7 +54571,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_76(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_76(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_76(int64_t int64s) { @@ -50959,7 +54598,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_77(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_77(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_77() { NextTest(); } @@ -50974,7 +54617,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_78(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_78(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_78(int64_t int64s) { @@ -50994,7 +54641,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_79(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_79(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_79(float floatSingle) { @@ -51017,7 +54668,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_80(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_80(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_80() { NextTest(); } @@ -51032,7 +54687,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_81(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_81(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_81(float floatSingle) { @@ -51055,7 +54714,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_82(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_82(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_82() { NextTest(); } @@ -51070,7 +54733,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_83(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_83(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_83(float floatSingle) { @@ -51093,7 +54760,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_84(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_84(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_84() { NextTest(); } @@ -51108,7 +54779,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_85(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_85(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_85(float floatSingle) { @@ -51131,7 +54806,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_86(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_86(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_86() { NextTest(); } @@ -51146,7 +54825,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_87(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_87(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_87(float floatSingle) { @@ -51166,7 +54849,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_88(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_88(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_88(double floatDouble) { @@ -51189,7 +54876,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_89(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_89(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_89() { NextTest(); } @@ -51204,7 +54895,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_90(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_90(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_90(double floatDouble) { @@ -51227,7 +54922,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_91(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_91(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_91() { NextTest(); } @@ -51242,7 +54941,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_92(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_92(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_92(double floatDouble) { @@ -51265,7 +54968,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_93(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_93(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_93() { NextTest(); } @@ -51280,7 +54987,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_94(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_94(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_94(double floatDouble) { @@ -51303,7 +55014,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_95(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_95(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_95() { NextTest(); } @@ -51318,7 +55033,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_96(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_96(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_96(double floatDouble) { @@ -51338,7 +55057,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_97(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_97(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_97(uint8_t enum8) { @@ -51361,7 +55084,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_98(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_98(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_98() { NextTest(); } @@ -51376,7 +55103,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_99(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_99(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_99(uint8_t enum8) { @@ -51399,7 +55130,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_100(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_100(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_100() { NextTest(); } @@ -51414,7 +55149,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_101(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_101(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_101(uint8_t enum8) { @@ -51434,7 +55173,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_102(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_102(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_102(uint16_t enum16) { @@ -51457,7 +55200,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_103(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_103(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_103() { NextTest(); } @@ -51472,7 +55219,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_104(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_104(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_104(uint16_t enum16) { @@ -51495,7 +55246,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_105(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_105(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_105() { NextTest(); } @@ -51510,7 +55265,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_106(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_106(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_106(uint16_t enum16) { @@ -51530,7 +55289,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_107(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_107(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_107(chip::ByteSpan octetString) { @@ -51553,7 +55316,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_108(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_108(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_108() { NextTest(); } @@ -51568,7 +55335,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_109(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_109(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_109(chip::ByteSpan octetString) { @@ -51593,7 +55364,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_110(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_110(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_110() { NextTest(); } @@ -51608,7 +55383,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_111(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_111(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_111(chip::ByteSpan octetString) { @@ -51632,7 +55411,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_112(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_112(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_112() { NextTest(); } @@ -51647,7 +55430,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_113(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_113(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_113(chip::ByteSpan octetString) { @@ -51672,9 +55459,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_114(EmberAfStatus status) + void OnFailureResponse_114(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -51691,7 +55479,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_115(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_115(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_115(chip::ByteSpan octetString) { @@ -51715,7 +55507,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_116(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_116(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_116() { NextTest(); } @@ -51730,7 +55526,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_117(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_117(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_117(chip::ByteSpan longOctetString) { @@ -51758,7 +55558,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_118(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_118(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_118() { NextTest(); } @@ -51773,7 +55577,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_119(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_119(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_119(chip::ByteSpan longOctetString) { @@ -51803,7 +55611,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_120(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_120(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_120() { NextTest(); } @@ -51818,7 +55630,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_121(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_121(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_121(chip::CharSpan charString) { @@ -51841,7 +55657,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_122(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_122(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_122() { NextTest(); } @@ -51856,7 +55676,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_123(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_123(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_123(chip::CharSpan charString) { @@ -51879,9 +55703,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_124(EmberAfStatus status) + void OnFailureResponse_124(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -51898,7 +55723,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_125(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_125(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_125(chip::CharSpan charString) { @@ -51921,7 +55750,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_126(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_126(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_126() { NextTest(); } @@ -51936,7 +55769,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_127(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_127(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_127(chip::CharSpan longCharString) { @@ -51963,7 +55800,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_128(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_128(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_128() { NextTest(); } @@ -51978,7 +55819,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_129(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_129(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_129(chip::CharSpan longCharString) { @@ -52006,7 +55851,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_130(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_130(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_130() { NextTest(); } @@ -52021,7 +55870,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_131(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_131(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_131(const chip::app::DataModel::DecodableList & listLongOctetString) { @@ -52088,7 +55941,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_132(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_132(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_132(uint64_t epochUs) { @@ -52111,7 +55968,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_133(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_133(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_133() { NextTest(); } @@ -52126,7 +55987,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_134(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_134(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_134(uint64_t epochUs) { @@ -52149,7 +56014,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_135(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_135(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_135() { NextTest(); } @@ -52164,7 +56033,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_136(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_136(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_136(uint64_t epochUs) { @@ -52184,7 +56057,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_137(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_137(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_137(uint32_t epochS) { @@ -52207,7 +56084,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_138(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_138(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_138() { NextTest(); } @@ -52222,7 +56103,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_139(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_139(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_139(uint32_t epochS) { @@ -52245,7 +56130,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_140(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_140(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_140() { NextTest(); } @@ -52260,7 +56149,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_141(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_141(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_141(uint32_t epochS) { @@ -52280,9 +56173,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_142(EmberAfStatus status) + void OnFailureResponse_142(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_142(bool unsupported) @@ -52306,9 +56200,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_143(EmberAfStatus status) + void OnFailureResponse_143(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_143() { NextTest(); } @@ -52324,17 +56219,18 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_144(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_144(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_144(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_144(EmberAfStatus status) + void OnFailureResponse_144(CHIP_ERROR error) { - VerifyOrReturn(CheckConstraintNotValue("status", status, 0)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckConstraintNotValue("status", chip::to_underlying(status.mStatus), 0)); NextTest(); } @@ -52351,17 +56247,18 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_145(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_145(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_145(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_145(EmberAfStatus status) + void OnFailureResponse_145(CHIP_ERROR error) { - VerifyOrReturn(CheckConstraintNotValue("status", status, 0)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckConstraintNotValue("status", chip::to_underlying(status.mStatus), 0)); NextTest(); } @@ -52378,7 +56275,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_146(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_146(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_146(chip::VendorId vendorId) { @@ -52401,7 +56302,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_147(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_147(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_147() { NextTest(); } @@ -52416,7 +56321,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_148(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_148(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_148(chip::VendorId vendorId) { @@ -52439,7 +56348,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_149(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_149(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_149() { NextTest(); } @@ -52456,15 +56369,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_150(data.arg1, data.arg2); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_150(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_150(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_150(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_150(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_150(chip::VendorId arg1, chip::app::Clusters::TestCluster::SimpleEnum arg2) { @@ -52495,15 +56412,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_151(data.value); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_151(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_151(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_151(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_151(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_151(bool value) { @@ -52532,15 +56453,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_152(data.value); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_152(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_152(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_152(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_152(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_152(bool value) { @@ -52572,15 +56497,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_153(data.value); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_153(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_153(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_153(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_153(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_153(bool value) { @@ -52612,15 +56541,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_154(data.value); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_154(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_154(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_154(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_154(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_154(bool value) { @@ -52691,15 +56624,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_155(data.value); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_155(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_155(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_155(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_155(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_155(bool value) { @@ -52770,15 +56707,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_156(data.value); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_156(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_156(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_156(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_156(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_156(bool value) { @@ -52807,15 +56748,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_157(data.arg1); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_157(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_157(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_157(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_157(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_157(const chip::app::Clusters::TestCluster::Structs::SimpleStruct::DecodableType & arg1) { @@ -52854,15 +56799,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_158(data.value); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_158(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_158(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_158(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_158(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_158(bool value) { @@ -52895,15 +56844,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_159(data.value); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_159(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_159(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_159(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_159(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_159(bool value) { @@ -52935,15 +56888,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_160(data.arg1); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_160(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_160(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_160(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_160(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_160(const chip::app::DataModel::DecodableList & arg1) { @@ -52986,15 +56943,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_161(data.arg1); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_161(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_161(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_161(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_161(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_161(const chip::app::DataModel::DecodableList & arg1) { @@ -53039,15 +57000,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_162(data.value); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_162(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_162(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_162(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_162(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_162(bool value) { @@ -53089,15 +57054,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_163(data.value); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_163(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_163(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_163(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_163(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_163(bool value) { @@ -53172,15 +57141,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_164(data.value); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_164(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_164(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_164(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_164(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_164(bool value) { @@ -53255,15 +57228,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_165(data.value); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_165(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_165(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_165(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_165(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_165(bool value) { @@ -53292,7 +57269,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_166(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_166(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_166() { NextTest(); } @@ -53307,7 +57288,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_167(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_167(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_167(const chip::app::DataModel::DecodableList & listInt8u) { @@ -53347,7 +57332,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_168(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_168(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_168() { NextTest(); } @@ -53362,7 +57351,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_169(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_169(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_169(const chip::app::DataModel::DecodableList & listOctetString) { @@ -53420,7 +57413,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_170(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_170(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_170() { NextTest(); } @@ -53435,7 +57432,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_171(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_171(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_171( const chip::app::DataModel::DecodableList & @@ -53480,15 +57481,19 @@ class TestCluster : public TestCommand ->OnSuccessResponse_172(data.wasPresent, data.wasNull, data.value, data.originalValue); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_172(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_172(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_172(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_172(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_172(bool wasPresent, const chip::Optional & wasNull, const chip::Optional & value, const chip::Optional> & originalValue) @@ -53520,15 +57525,19 @@ class TestCluster : public TestCommand ->OnSuccessResponse_173(data.wasPresent, data.wasNull, data.value, data.originalValue); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_173(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_173(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_173(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_173(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_173(bool wasPresent, const chip::Optional & wasNull, const chip::Optional & value, const chip::Optional> & originalValue) @@ -53550,7 +57559,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_174(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_174(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_174(const chip::app::DataModel::DecodableList< chip::app::Clusters::TestCluster::Structs::NullablesAndOptionalsStruct::DecodableType> & @@ -53600,7 +57613,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_175(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_175(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_175() { NextTest(); } @@ -53616,7 +57633,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_176(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_176(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_176(const chip::app::DataModel::DecodableList< chip::app::Clusters::TestCluster::Structs::NullablesAndOptionalsStruct::DecodableType> & @@ -53662,7 +57683,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_177(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_177(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_177() { NextTest(); } @@ -53677,7 +57702,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_178(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_178(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_178(const chip::app::DataModel::Nullable & nullableBoolean) { @@ -53701,7 +57730,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_179(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_179(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_179() { NextTest(); } @@ -53716,7 +57749,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_180(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_180(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_180(const chip::app::DataModel::Nullable & nullableBoolean) { @@ -53741,7 +57778,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_181(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_181(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_181() { NextTest(); } @@ -53756,7 +57797,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_182(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_182(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_182(const chip::app::DataModel::Nullable & nullableBitmap8) { @@ -53781,9 +57826,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_183(EmberAfStatus status) + void OnFailureResponse_183(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -53800,7 +57846,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_184(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_184(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_184(const chip::app::DataModel::Nullable & nullableBitmap8) { @@ -53824,7 +57874,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_185(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_185(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_185() { NextTest(); } @@ -53839,7 +57893,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_186(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_186(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_186(const chip::app::DataModel::Nullable & nullableBitmap8) { @@ -53863,7 +57921,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_187(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_187(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_187() { NextTest(); } @@ -53878,7 +57940,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_188(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_188(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_188(const chip::app::DataModel::Nullable & nullableBitmap16) { @@ -53903,9 +57969,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_189(EmberAfStatus status) + void OnFailureResponse_189(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -53922,7 +57989,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_190(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_190(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_190(const chip::app::DataModel::Nullable & nullableBitmap16) { @@ -53946,7 +58017,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_191(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_191(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_191() { NextTest(); } @@ -53961,7 +58036,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_192(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_192(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_192(const chip::app::DataModel::Nullable & nullableBitmap16) { @@ -53985,7 +58064,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_193(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_193(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_193() { NextTest(); } @@ -54000,7 +58083,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_194(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_194(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_194(const chip::app::DataModel::Nullable & nullableBitmap32) { @@ -54025,9 +58112,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_195(EmberAfStatus status) + void OnFailureResponse_195(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -54044,7 +58132,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_196(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_196(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_196(const chip::app::DataModel::Nullable & nullableBitmap32) { @@ -54068,7 +58160,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_197(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_197(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_197() { NextTest(); } @@ -54083,7 +58179,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_198(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_198(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_198(const chip::app::DataModel::Nullable & nullableBitmap32) { @@ -54107,7 +58207,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_199(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_199(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_199() { NextTest(); } @@ -54122,7 +58226,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_200(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_200(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_200(const chip::app::DataModel::Nullable & nullableBitmap64) { @@ -54147,9 +58255,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_201(EmberAfStatus status) + void OnFailureResponse_201(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -54166,7 +58275,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_202(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_202(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_202(const chip::app::DataModel::Nullable & nullableBitmap64) { @@ -54190,7 +58303,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_203(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_203(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_203() { NextTest(); } @@ -54205,7 +58322,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_204(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_204(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_204(const chip::app::DataModel::Nullable & nullableBitmap64) { @@ -54229,7 +58350,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_205(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_205(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_205() { NextTest(); } @@ -54244,7 +58369,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_206(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_206(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_206(const chip::app::DataModel::Nullable & nullableInt8u) { @@ -54269,7 +58398,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_207(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_207(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_207() { NextTest(); } @@ -54284,7 +58417,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_208(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_208(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_208(const chip::app::DataModel::Nullable & nullableInt8u) { @@ -54309,9 +58446,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_209(EmberAfStatus status) + void OnFailureResponse_209(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -54328,7 +58466,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_210(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_210(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_210(const chip::app::DataModel::Nullable & nullableInt8u) { @@ -54349,7 +58491,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_211(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_211(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_211(const chip::app::DataModel::Nullable & nullableInt8u) { @@ -54372,7 +58518,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_212(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_212(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_212() { NextTest(); } @@ -54387,7 +58537,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_213(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_213(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_213(const chip::app::DataModel::Nullable & nullableInt8u) { @@ -54407,7 +58561,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_214(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_214(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_214(const chip::app::DataModel::Nullable & nullableInt8u) { @@ -54427,7 +58585,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_215(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_215(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_215(const chip::app::DataModel::Nullable & nullableInt8u) { @@ -54451,7 +58613,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_216(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_216(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_216() { NextTest(); } @@ -54466,7 +58632,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_217(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_217(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_217(const chip::app::DataModel::Nullable & nullableInt8u) { @@ -54486,7 +58656,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_218(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_218(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_218(const chip::app::DataModel::Nullable & nullableInt8u) { @@ -54510,7 +58684,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_219(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_219(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_219() { NextTest(); } @@ -54525,7 +58703,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_220(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_220(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_220(const chip::app::DataModel::Nullable & nullableInt16u) { @@ -54550,7 +58732,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_221(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_221(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_221() { NextTest(); } @@ -54565,7 +58751,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_222(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_222(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_222(const chip::app::DataModel::Nullable & nullableInt16u) { @@ -54590,9 +58780,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_223(EmberAfStatus status) + void OnFailureResponse_223(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -54609,7 +58800,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_224(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_224(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_224(const chip::app::DataModel::Nullable & nullableInt16u) { @@ -54633,7 +58828,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_225(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_225(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_225() { NextTest(); } @@ -54648,7 +58847,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_226(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_226(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_226(const chip::app::DataModel::Nullable & nullableInt16u) { @@ -54668,7 +58871,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_227(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_227(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_227(const chip::app::DataModel::Nullable & nullableInt16u) { @@ -54688,7 +58895,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_228(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_228(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_228(const chip::app::DataModel::Nullable & nullableInt16u) { @@ -54712,7 +58923,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_229(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_229(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_229() { NextTest(); } @@ -54727,7 +58942,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_230(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_230(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_230(const chip::app::DataModel::Nullable & nullableInt16u) { @@ -54747,7 +58966,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_231(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_231(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_231(const chip::app::DataModel::Nullable & nullableInt16u) { @@ -54771,7 +58994,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_232(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_232(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_232() { NextTest(); } @@ -54786,7 +59013,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_233(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_233(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_233(const chip::app::DataModel::Nullable & nullableInt32u) { @@ -54811,7 +59042,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_234(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_234(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_234() { NextTest(); } @@ -54826,7 +59061,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_235(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_235(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_235(const chip::app::DataModel::Nullable & nullableInt32u) { @@ -54851,9 +59090,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_236(EmberAfStatus status) + void OnFailureResponse_236(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -54870,7 +59110,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_237(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_237(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_237(const chip::app::DataModel::Nullable & nullableInt32u) { @@ -54894,7 +59138,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_238(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_238(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_238() { NextTest(); } @@ -54909,7 +59157,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_239(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_239(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_239(const chip::app::DataModel::Nullable & nullableInt32u) { @@ -54929,7 +59181,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_240(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_240(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_240(const chip::app::DataModel::Nullable & nullableInt32u) { @@ -54949,7 +59205,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_241(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_241(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_241(const chip::app::DataModel::Nullable & nullableInt32u) { @@ -54973,7 +59233,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_242(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_242(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_242() { NextTest(); } @@ -54988,7 +59252,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_243(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_243(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_243(const chip::app::DataModel::Nullable & nullableInt32u) { @@ -55008,7 +59276,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_244(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_244(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_244(const chip::app::DataModel::Nullable & nullableInt32u) { @@ -55032,7 +59304,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_245(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_245(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_245() { NextTest(); } @@ -55047,7 +59323,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_246(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_246(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_246(const chip::app::DataModel::Nullable & nullableInt64u) { @@ -55072,7 +59352,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_247(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_247(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_247() { NextTest(); } @@ -55087,7 +59371,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_248(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_248(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_248(const chip::app::DataModel::Nullable & nullableInt64u) { @@ -55112,9 +59400,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_249(EmberAfStatus status) + void OnFailureResponse_249(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -55131,7 +59420,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_250(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_250(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_250(const chip::app::DataModel::Nullable & nullableInt64u) { @@ -55155,7 +59448,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_251(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_251(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_251() { NextTest(); } @@ -55170,7 +59467,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_252(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_252(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_252(const chip::app::DataModel::Nullable & nullableInt64u) { @@ -55190,7 +59491,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_253(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_253(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_253(const chip::app::DataModel::Nullable & nullableInt64u) { @@ -55210,7 +59515,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_254(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_254(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_254(const chip::app::DataModel::Nullable & nullableInt64u) { @@ -55234,7 +59543,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_255(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_255(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_255() { NextTest(); } @@ -55249,7 +59562,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_256(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_256(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_256(const chip::app::DataModel::Nullable & nullableInt64u) { @@ -55269,7 +59586,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_257(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_257(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_257(const chip::app::DataModel::Nullable & nullableInt64u) { @@ -55293,7 +59614,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_258(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_258(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_258() { NextTest(); } @@ -55308,7 +59633,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_259(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_259(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_259(const chip::app::DataModel::Nullable & nullableInt8s) { @@ -55333,9 +59662,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_260(EmberAfStatus status) + void OnFailureResponse_260(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -55352,7 +59682,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_261(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_261(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_261(const chip::app::DataModel::Nullable & nullableInt8s) { @@ -55376,7 +59710,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_262(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_262(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_262() { NextTest(); } @@ -55391,7 +59729,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_263(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_263(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_263(const chip::app::DataModel::Nullable & nullableInt8s) { @@ -55411,7 +59753,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_264(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_264(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_264(const chip::app::DataModel::Nullable & nullableInt8s) { @@ -55431,7 +59777,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_265(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_265(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_265(const chip::app::DataModel::Nullable & nullableInt8s) { @@ -55455,7 +59805,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_266(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_266(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_266() { NextTest(); } @@ -55470,7 +59824,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_267(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_267(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_267(const chip::app::DataModel::Nullable & nullableInt8s) { @@ -55490,7 +59848,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_268(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_268(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_268(const chip::app::DataModel::Nullable & nullableInt8s) { @@ -55514,7 +59876,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_269(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_269(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_269() { NextTest(); } @@ -55529,7 +59895,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_270(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_270(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_270(const chip::app::DataModel::Nullable & nullableInt16s) { @@ -55554,9 +59924,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_271(EmberAfStatus status) + void OnFailureResponse_271(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -55573,7 +59944,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_272(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_272(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_272(const chip::app::DataModel::Nullable & nullableInt16s) { @@ -55597,7 +59972,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_273(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_273(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_273() { NextTest(); } @@ -55612,7 +59991,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_274(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_274(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_274(const chip::app::DataModel::Nullable & nullableInt16s) { @@ -55632,7 +60015,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_275(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_275(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_275(const chip::app::DataModel::Nullable & nullableInt16s) { @@ -55652,7 +60039,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_276(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_276(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_276(const chip::app::DataModel::Nullable & nullableInt16s) { @@ -55676,7 +60067,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_277(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_277(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_277() { NextTest(); } @@ -55691,7 +60086,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_278(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_278(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_278(const chip::app::DataModel::Nullable & nullableInt16s) { @@ -55711,7 +60110,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_279(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_279(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_279(const chip::app::DataModel::Nullable & nullableInt16s) { @@ -55735,7 +60138,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_280(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_280(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_280() { NextTest(); } @@ -55750,7 +60157,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_281(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_281(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_281(const chip::app::DataModel::Nullable & nullableInt32s) { @@ -55775,9 +60186,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_282(EmberAfStatus status) + void OnFailureResponse_282(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -55794,7 +60206,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_283(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_283(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_283(const chip::app::DataModel::Nullable & nullableInt32s) { @@ -55818,7 +60234,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_284(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_284(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_284() { NextTest(); } @@ -55833,7 +60253,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_285(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_285(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_285(const chip::app::DataModel::Nullable & nullableInt32s) { @@ -55853,7 +60277,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_286(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_286(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_286(const chip::app::DataModel::Nullable & nullableInt32s) { @@ -55873,7 +60301,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_287(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_287(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_287(const chip::app::DataModel::Nullable & nullableInt32s) { @@ -55897,7 +60329,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_288(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_288(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_288() { NextTest(); } @@ -55912,7 +60348,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_289(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_289(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_289(const chip::app::DataModel::Nullable & nullableInt32s) { @@ -55932,7 +60372,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_290(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_290(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_290(const chip::app::DataModel::Nullable & nullableInt32s) { @@ -55956,7 +60400,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_291(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_291(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_291() { NextTest(); } @@ -55971,7 +60419,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_292(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_292(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_292(const chip::app::DataModel::Nullable & nullableInt64s) { @@ -55996,9 +60448,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_293(EmberAfStatus status) + void OnFailureResponse_293(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -56015,7 +60468,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_294(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_294(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_294(const chip::app::DataModel::Nullable & nullableInt64s) { @@ -56039,7 +60496,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_295(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_295(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_295() { NextTest(); } @@ -56054,7 +60515,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_296(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_296(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_296(const chip::app::DataModel::Nullable & nullableInt64s) { @@ -56074,7 +60539,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_297(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_297(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_297(const chip::app::DataModel::Nullable & nullableInt64s) { @@ -56094,7 +60563,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_298(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_298(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_298(const chip::app::DataModel::Nullable & nullableInt64s) { @@ -56118,7 +60591,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_299(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_299(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_299() { NextTest(); } @@ -56133,7 +60610,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_300(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_300(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_300(const chip::app::DataModel::Nullable & nullableInt64s) { @@ -56153,7 +60634,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_301(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_301(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_301(const chip::app::DataModel::Nullable & nullableInt64s) { @@ -56177,7 +60662,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_302(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_302(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_302() { NextTest(); } @@ -56192,7 +60681,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_303(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_303(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_303(const chip::app::DataModel::Nullable & nullableFloatSingle) { @@ -56217,7 +60710,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_304(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_304(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_304() { NextTest(); } @@ -56232,7 +60729,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_305(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_305(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_305(const chip::app::DataModel::Nullable & nullableFloatSingle) { @@ -56257,7 +60758,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_306(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_306(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_306() { NextTest(); } @@ -56272,7 +60777,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_307(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_307(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_307(const chip::app::DataModel::Nullable & nullableFloatSingle) { @@ -56296,7 +60805,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_308(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_308(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_308() { NextTest(); } @@ -56311,7 +60824,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_309(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_309(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_309(const chip::app::DataModel::Nullable & nullableFloatSingle) { @@ -56335,7 +60852,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_310(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_310(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_310() { NextTest(); } @@ -56350,7 +60871,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_311(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_311(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_311(const chip::app::DataModel::Nullable & nullableFloatSingle) { @@ -56375,7 +60900,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_312(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_312(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_312() { NextTest(); } @@ -56390,7 +60919,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_313(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_313(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_313(const chip::app::DataModel::Nullable & nullableFloatDouble) { @@ -56415,7 +60948,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_314(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_314(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_314() { NextTest(); } @@ -56430,7 +60967,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_315(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_315(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_315(const chip::app::DataModel::Nullable & nullableFloatDouble) { @@ -56455,7 +60996,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_316(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_316(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_316() { NextTest(); } @@ -56470,7 +61015,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_317(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_317(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_317(const chip::app::DataModel::Nullable & nullableFloatDouble) { @@ -56494,7 +61043,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_318(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_318(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_318() { NextTest(); } @@ -56509,7 +61062,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_319(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_319(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_319(const chip::app::DataModel::Nullable & nullableFloatDouble) { @@ -56533,7 +61090,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_320(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_320(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_320() { NextTest(); } @@ -56548,7 +61109,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_321(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_321(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_321(const chip::app::DataModel::Nullable & nullableFloatDouble) { @@ -56573,7 +61138,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_322(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_322(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_322() { NextTest(); } @@ -56588,7 +61157,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_323(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_323(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_323(const chip::app::DataModel::Nullable & nullableEnum8) { @@ -56613,7 +61186,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_324(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_324(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_324() { NextTest(); } @@ -56628,7 +61205,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_325(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_325(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_325(const chip::app::DataModel::Nullable & nullableEnum8) { @@ -56653,9 +61234,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_326(EmberAfStatus status) + void OnFailureResponse_326(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -56672,7 +61254,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_327(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_327(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_327(const chip::app::DataModel::Nullable & nullableEnum8) { @@ -56696,7 +61282,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_328(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_328(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_328() { NextTest(); } @@ -56711,7 +61301,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_329(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_329(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_329(const chip::app::DataModel::Nullable & nullableEnum8) { @@ -56735,7 +61329,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_330(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_330(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_330() { NextTest(); } @@ -56750,7 +61348,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_331(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_331(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_331(const chip::app::DataModel::Nullable & nullableEnum16) { @@ -56775,7 +61377,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_332(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_332(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_332() { NextTest(); } @@ -56790,7 +61396,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_333(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_333(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_333(const chip::app::DataModel::Nullable & nullableEnum16) { @@ -56815,9 +61425,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_334(EmberAfStatus status) + void OnFailureResponse_334(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -56834,7 +61445,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_335(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_335(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_335(const chip::app::DataModel::Nullable & nullableEnum16) { @@ -56858,7 +61473,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_336(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_336(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_336() { NextTest(); } @@ -56873,7 +61492,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_337(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_337(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_337(const chip::app::DataModel::Nullable & nullableEnum16) { @@ -56897,7 +61520,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_338(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_338(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_338() { NextTest(); } @@ -56912,7 +61539,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_339(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_339(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_339(const chip::app::DataModel::Nullable & nullableEnumAttr) @@ -56938,7 +61569,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_340(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_340(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_340() { NextTest(); } @@ -56953,7 +61588,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_341(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_341(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_341(const chip::app::DataModel::Nullable & nullableEnumAttr) @@ -56979,9 +61618,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_342(EmberAfStatus status) + void OnFailureResponse_342(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -56998,7 +61638,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_343(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_343(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_343(const chip::app::DataModel::Nullable & nullableEnumAttr) @@ -57023,7 +61667,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_344(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_344(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_344() { NextTest(); } @@ -57038,7 +61686,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_345(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_345(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_345(const chip::app::DataModel::Nullable & nullableEnumAttr) @@ -57059,7 +61711,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_346(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_346(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_346(const chip::app::DataModel::Nullable & nullableOctetString) { @@ -57086,7 +61742,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_347(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_347(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_347() { NextTest(); } @@ -57101,7 +61761,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_348(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_348(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_348(const chip::app::DataModel::Nullable & nullableOctetString) { @@ -57126,7 +61790,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_349(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_349(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_349() { NextTest(); } @@ -57141,7 +61809,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_350(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_350(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_350(const chip::app::DataModel::Nullable & nullableOctetString) { @@ -57165,7 +61837,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_351(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_351(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_351() { NextTest(); } @@ -57180,7 +61856,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_352(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_352(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_352(const chip::app::DataModel::Nullable & nullableOctetString) { @@ -57202,7 +61882,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_353(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_353(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_353(const chip::app::DataModel::Nullable & nullableCharString) { @@ -57227,7 +61911,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_354(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_354(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_354() { NextTest(); } @@ -57242,7 +61930,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_355(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_355(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_355(const chip::app::DataModel::Nullable & nullableCharString) { @@ -57266,7 +61958,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_356(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_356(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_356() { NextTest(); } @@ -57281,7 +61977,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_357(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_357(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_357(const chip::app::DataModel::Nullable & nullableCharString) { @@ -57305,7 +62005,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_358(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_358(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_358() { NextTest(); } @@ -57320,7 +62024,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_359(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_359(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_359(const chip::app::DataModel::Nullable & nullableCharString) { @@ -57341,9 +62049,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_360(EmberAfStatus status) + void OnFailureResponse_360(CHIP_ERROR error) { - VerifyOrReturn(CheckConstraintNotValue("status", status, 0)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckConstraintNotValue("status", chip::to_underlying(status.mStatus), 0)); NextTest(); } @@ -57360,9 +62069,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_361(EmberAfStatus status) + void OnFailureResponse_361(CHIP_ERROR error) { - VerifyOrReturn(CheckConstraintNotValue("status", status, 0)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckConstraintNotValue("status", chip::to_underlying(status.mStatus), 0)); NextTest(); } @@ -57379,17 +62089,18 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_362(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_362(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_362(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_362(EmberAfStatus status) + void OnFailureResponse_362(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_INVALID_VALUE)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_INVALID_VALUE)); NextTest(); } @@ -57408,15 +62119,19 @@ class TestCluster : public TestCommand (static_cast(context))->OnSuccessResponse_363(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_363(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_363(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_363(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_363(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_363() { NextTest(); } @@ -57430,7 +62145,11 @@ class TestCluster : public TestCommand return WaitForMs(0); } - void OnFailureResponse_364(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_364(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_364(const chip::app::DataModel::DecodableList & listInt8u) { @@ -57467,7 +62186,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_365(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_365(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_365(const chip::app::DataModel::DecodableList & value) { @@ -57505,7 +62228,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_366(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_366(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_366() { NextTest(); } @@ -57519,7 +62246,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_367(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_367(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_367(const chip::app::DataModel::DecodableList & listInt8u) { @@ -57552,7 +62283,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_368(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_368(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_368(uint8_t rangeRestrictedInt8u) { @@ -57575,9 +62310,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_369(EmberAfStatus status) + void OnFailureResponse_369(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -57597,9 +62333,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_370(EmberAfStatus status) + void OnFailureResponse_370(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -57619,9 +62356,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_371(EmberAfStatus status) + void OnFailureResponse_371(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -57641,9 +62379,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_372(EmberAfStatus status) + void OnFailureResponse_372(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -57660,7 +62399,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_373(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_373(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_373(uint8_t rangeRestrictedInt8u) { @@ -57683,7 +62426,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_374(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_374(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_374() { NextTest(); } @@ -57698,7 +62445,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_375(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_375(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_375(uint8_t rangeRestrictedInt8u) { @@ -57721,7 +62472,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_376(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_376(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_376() { NextTest(); } @@ -57736,7 +62491,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_377(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_377(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_377(uint8_t rangeRestrictedInt8u) { @@ -57759,7 +62518,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_378(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_378(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_378() { NextTest(); } @@ -57774,7 +62537,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_379(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_379(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_379(uint8_t rangeRestrictedInt8u) { @@ -57794,7 +62561,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_380(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_380(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_380(uint16_t rangeRestrictedInt16u) { @@ -57817,9 +62588,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_381(EmberAfStatus status) + void OnFailureResponse_381(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -57839,9 +62611,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_382(EmberAfStatus status) + void OnFailureResponse_382(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -57861,9 +62634,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_383(EmberAfStatus status) + void OnFailureResponse_383(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -57883,9 +62657,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_384(EmberAfStatus status) + void OnFailureResponse_384(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -57902,7 +62677,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_385(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_385(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_385(uint16_t rangeRestrictedInt16u) { @@ -57925,7 +62704,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_386(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_386(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_386() { NextTest(); } @@ -57940,7 +62723,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_387(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_387(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_387(uint16_t rangeRestrictedInt16u) { @@ -57963,7 +62750,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_388(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_388(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_388() { NextTest(); } @@ -57978,7 +62769,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_389(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_389(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_389(uint16_t rangeRestrictedInt16u) { @@ -58001,7 +62796,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_390(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_390(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_390() { NextTest(); } @@ -58016,7 +62815,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_391(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_391(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_391(uint16_t rangeRestrictedInt16u) { @@ -58036,7 +62839,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_392(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_392(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_392(int8_t rangeRestrictedInt8s) { @@ -58059,9 +62866,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_393(EmberAfStatus status) + void OnFailureResponse_393(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58081,9 +62889,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_394(EmberAfStatus status) + void OnFailureResponse_394(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58103,9 +62912,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_395(EmberAfStatus status) + void OnFailureResponse_395(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58125,9 +62935,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_396(EmberAfStatus status) + void OnFailureResponse_396(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58144,7 +62955,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_397(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_397(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_397(int8_t rangeRestrictedInt8s) { @@ -58167,7 +62982,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_398(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_398(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_398() { NextTest(); } @@ -58182,7 +63001,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_399(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_399(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_399(int8_t rangeRestrictedInt8s) { @@ -58205,7 +63028,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_400(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_400(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_400() { NextTest(); } @@ -58220,7 +63047,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_401(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_401(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_401(int8_t rangeRestrictedInt8s) { @@ -58243,7 +63074,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_402(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_402(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_402() { NextTest(); } @@ -58258,7 +63093,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_403(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_403(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_403(int8_t rangeRestrictedInt8s) { @@ -58278,7 +63117,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_404(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_404(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_404(int16_t rangeRestrictedInt16s) { @@ -58301,9 +63144,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_405(EmberAfStatus status) + void OnFailureResponse_405(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58323,9 +63167,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_406(EmberAfStatus status) + void OnFailureResponse_406(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58345,9 +63190,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_407(EmberAfStatus status) + void OnFailureResponse_407(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58367,9 +63213,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_408(EmberAfStatus status) + void OnFailureResponse_408(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58386,7 +63233,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_409(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_409(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_409(int16_t rangeRestrictedInt16s) { @@ -58409,7 +63260,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_410(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_410(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_410() { NextTest(); } @@ -58424,7 +63279,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_411(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_411(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_411(int16_t rangeRestrictedInt16s) { @@ -58447,7 +63306,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_412(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_412(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_412() { NextTest(); } @@ -58462,7 +63325,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_413(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_413(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_413(int16_t rangeRestrictedInt16s) { @@ -58485,7 +63352,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_414(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_414(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_414() { NextTest(); } @@ -58500,7 +63371,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_415(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_415(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_415(int16_t rangeRestrictedInt16s) { @@ -58521,7 +63396,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_416(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_416(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_416(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8u) { @@ -58547,9 +63426,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_417(EmberAfStatus status) + void OnFailureResponse_417(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58571,9 +63451,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_418(EmberAfStatus status) + void OnFailureResponse_418(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58595,9 +63476,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_419(EmberAfStatus status) + void OnFailureResponse_419(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58619,9 +63501,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_420(EmberAfStatus status) + void OnFailureResponse_420(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58639,7 +63522,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_421(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_421(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_421(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8u) { @@ -58665,7 +63552,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_422(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_422(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_422() { NextTest(); } @@ -58681,7 +63572,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_423(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_423(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_423(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8u) { @@ -58707,7 +63602,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_424(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_424(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_424() { NextTest(); } @@ -58723,7 +63622,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_425(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_425(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_425(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8u) { @@ -58749,7 +63652,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_426(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_426(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_426() { NextTest(); } @@ -58765,7 +63672,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_427(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_427(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_427(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8u) { @@ -58790,7 +63701,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_428(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_428(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_428() { NextTest(); } @@ -58806,7 +63721,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_429(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_429(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_429(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8u) { @@ -58827,7 +63746,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_430(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_430(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_430(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16u) { @@ -58853,9 +63776,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_431(EmberAfStatus status) + void OnFailureResponse_431(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58877,9 +63801,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_432(EmberAfStatus status) + void OnFailureResponse_432(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58901,9 +63826,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_433(EmberAfStatus status) + void OnFailureResponse_433(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58925,9 +63851,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_434(EmberAfStatus status) + void OnFailureResponse_434(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -58945,7 +63872,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_435(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_435(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_435(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16u) { @@ -58971,7 +63902,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_436(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_436(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_436() { NextTest(); } @@ -58987,7 +63922,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_437(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_437(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_437(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16u) { @@ -59013,7 +63952,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_438(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_438(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_438() { NextTest(); } @@ -59029,7 +63972,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_439(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_439(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_439(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16u) { @@ -59055,7 +64002,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_440(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_440(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_440() { NextTest(); } @@ -59071,7 +64022,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_441(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_441(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_441(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16u) { @@ -59096,7 +64051,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_442(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_442(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_442() { NextTest(); } @@ -59112,7 +64071,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_443(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_443(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_443(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16u) { @@ -59133,7 +64096,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_444(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_444(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_444(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8s) { @@ -59159,9 +64126,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_445(EmberAfStatus status) + void OnFailureResponse_445(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -59183,9 +64151,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_446(EmberAfStatus status) + void OnFailureResponse_446(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -59207,9 +64176,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_447(EmberAfStatus status) + void OnFailureResponse_447(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -59231,9 +64201,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_448(EmberAfStatus status) + void OnFailureResponse_448(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -59251,7 +64222,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_449(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_449(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_449(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8s) { @@ -59277,7 +64252,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_450(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_450(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_450() { NextTest(); } @@ -59293,7 +64272,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_451(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_451(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_451(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8s) { @@ -59319,7 +64302,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_452(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_452(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_452() { NextTest(); } @@ -59335,7 +64322,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_453(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_453(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_453(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8s) { @@ -59361,7 +64352,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_454(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_454(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_454() { NextTest(); } @@ -59377,7 +64372,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_455(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_455(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_455(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8s) { @@ -59402,7 +64401,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_456(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_456(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_456() { NextTest(); } @@ -59418,7 +64421,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_457(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_457(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_457(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt8s) { @@ -59439,7 +64446,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_458(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_458(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_458(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16s) { @@ -59465,9 +64476,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_459(EmberAfStatus status) + void OnFailureResponse_459(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -59489,9 +64501,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_460(EmberAfStatus status) + void OnFailureResponse_460(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -59513,9 +64526,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_461(EmberAfStatus status) + void OnFailureResponse_461(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -59537,9 +64551,10 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_462(EmberAfStatus status) + void OnFailureResponse_462(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -59557,7 +64572,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_463(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_463(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_463(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16s) { @@ -59583,7 +64602,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_464(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_464(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_464() { NextTest(); } @@ -59599,7 +64622,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_465(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_465(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_465(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16s) { @@ -59625,7 +64652,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_466(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_466(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_466() { NextTest(); } @@ -59641,7 +64672,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_467(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_467(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_467(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16s) { @@ -59667,7 +64702,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_468(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_468(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_468() { NextTest(); } @@ -59683,7 +64722,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_469(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_469(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_469(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16s) { @@ -59708,7 +64751,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_470(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_470(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_470() { NextTest(); } @@ -59724,7 +64771,11 @@ class TestCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_471(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_471(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_471(const chip::app::DataModel::Nullable & nullableRangeRestrictedInt16s) { @@ -59883,9 +64934,9 @@ class TestClusterComplexTypes : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, bool timedWriteBoolean) @@ -59893,16 +64944,16 @@ class TestClusterComplexTypes : public TestCommand (static_cast(context))->OnSuccessResponse_7(timedWriteBoolean); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context) { (static_cast(context))->OnSuccessResponse_8(); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, bool timedWriteBoolean) @@ -59910,16 +64961,16 @@ class TestClusterComplexTypes : public TestCommand (static_cast(context))->OnSuccessResponse_9(timedWriteBoolean); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, bool timedWriteBoolean) @@ -59927,16 +64978,16 @@ class TestClusterComplexTypes : public TestCommand (static_cast(context))->OnSuccessResponse_11(timedWriteBoolean); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, bool timedWriteBoolean) @@ -59944,16 +64995,16 @@ class TestClusterComplexTypes : public TestCommand (static_cast(context))->OnSuccessResponse_13(timedWriteBoolean); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context) { (static_cast(context))->OnSuccessResponse_14(); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_15(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_15(status); + (static_cast(context))->OnFailureResponse_15(error); } static void OnSuccessCallback_15(void * context, bool boolean) @@ -59961,16 +65012,16 @@ class TestClusterComplexTypes : public TestCommand (static_cast(context))->OnSuccessResponse_15(boolean); } - static void OnFailureCallback_16(void * context, EmberAfStatus status) + static void OnFailureCallback_16(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(error); } static void OnSuccessCallback_16(void * context) { (static_cast(context))->OnSuccessResponse_16(); } - static void OnFailureCallback_17(void * context, EmberAfStatus status) + static void OnFailureCallback_17(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_17(status); + (static_cast(context))->OnFailureResponse_17(error); } static void OnSuccessCallback_17(void * context, bool boolean) @@ -59978,16 +65029,16 @@ class TestClusterComplexTypes : public TestCommand (static_cast(context))->OnSuccessResponse_17(boolean); } - static void OnFailureCallback_18(void * context, EmberAfStatus status) + static void OnFailureCallback_18(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_18(error); } static void OnSuccessCallback_18(void * context) { (static_cast(context))->OnSuccessResponse_18(); } - static void OnFailureCallback_19(void * context, EmberAfStatus status) + static void OnFailureCallback_19(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_19(status); + (static_cast(context))->OnFailureResponse_19(error); } static void OnSuccessCallback_19(void * context, bool boolean) @@ -59995,23 +65046,23 @@ class TestClusterComplexTypes : public TestCommand (static_cast(context))->OnSuccessResponse_19(boolean); } - static void OnFailureCallback_20(void * context, EmberAfStatus status) + static void OnFailureCallback_20(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_20(status); + (static_cast(context))->OnFailureResponse_20(error); } static void OnSuccessCallback_20(void * context) { (static_cast(context))->OnSuccessResponse_20(); } - static void OnFailureCallback_21(void * context, EmberAfStatus status) + static void OnFailureCallback_21(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_21(status); + (static_cast(context))->OnFailureResponse_21(error); } static void OnSuccessCallback_21(void * context) { (static_cast(context))->OnSuccessResponse_21(); } - static void OnFailureCallback_22(void * context, EmberAfStatus status) + static void OnFailureCallback_22(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_22(status); + (static_cast(context))->OnFailureResponse_22(error); } static void OnSuccessCallback_22(void * context, @@ -60044,15 +65095,19 @@ class TestClusterComplexTypes : public TestCommand ->OnSuccessResponse_1(data.wasPresent, data.wasNull, data.value, data.originalValue); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(bool wasPresent, const chip::Optional & wasNull, const chip::Optional & value, const chip::Optional> & originalValue) @@ -60079,8 +65134,8 @@ class TestClusterComplexTypes : public TestCommand (static_cast(context))->OnSuccessResponse_2(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_2(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request, @@ -60088,9 +65143,10 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_NEEDS_TIMED_INTERACTION)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_NEEDS_TIMED_INTERACTION)); NextTest(); } @@ -60107,8 +65163,8 @@ class TestClusterComplexTypes : public TestCommand (static_cast(context))->OnSuccessResponse_3(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure( @@ -60116,7 +65172,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -60131,8 +65191,8 @@ class TestClusterComplexTypes : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure( @@ -60148,9 +65208,10 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) + void OnFailureResponse_4(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_ACCESS)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_ACCESS)); NextTest(); } @@ -60167,8 +65228,8 @@ class TestClusterComplexTypes : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure( @@ -60176,7 +65237,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -60191,8 +65256,8 @@ class TestClusterComplexTypes : public TestCommand (static_cast(context))->OnSuccessResponse_6(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_6(error); }; ReturnErrorOnFailure( @@ -60208,9 +65273,10 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) + void OnFailureResponse_6(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_ACCESS)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_ACCESS)); NextTest(); } @@ -60227,7 +65293,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(bool timedWriteBoolean) { @@ -60250,9 +65320,10 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) + void OnFailureResponse_8(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_NEEDS_TIMED_INTERACTION)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_NEEDS_TIMED_INTERACTION)); NextTest(); } @@ -60269,7 +65340,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(bool timedWriteBoolean) { @@ -60300,9 +65375,10 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) + void OnFailureResponse_10(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_ACCESS)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_ACCESS)); NextTest(); } @@ -60319,7 +65395,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(bool timedWriteBoolean) { @@ -60342,7 +65422,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12() { NextTest(); } @@ -60357,7 +65441,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(bool timedWriteBoolean) { @@ -60380,7 +65468,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14() { NextTest(); } @@ -60395,7 +65487,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15(bool boolean) { @@ -60426,9 +65522,10 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) + void OnFailureResponse_16(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_UNSUPPORTED_ACCESS)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_UNSUPPORTED_ACCESS)); NextTest(); } @@ -60445,7 +65542,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_17(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_17(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_17(bool boolean) { @@ -60468,7 +65569,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_18(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_18(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_18() { NextTest(); } @@ -60483,7 +65588,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_19(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_19(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_19(bool boolean) { @@ -60506,7 +65615,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_20(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_20(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_20() { NextTest(); } @@ -60532,7 +65645,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_21(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_21(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_21() { NextTest(); } @@ -60547,7 +65664,11 @@ class TestClusterComplexTypes : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_22(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_22(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_22(const chip::app::Clusters::TestCluster::Structs::SimpleStruct::DecodableType & structAttr) { @@ -60707,16 +65828,16 @@ class TestConstraints : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint32_t int32u) @@ -60724,9 +65845,9 @@ class TestConstraints : public TestCommand (static_cast(context))->OnSuccessResponse_2(int32u); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint32_t int32u) @@ -60734,9 +65855,9 @@ class TestConstraints : public TestCommand (static_cast(context))->OnSuccessResponse_3(int32u); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, uint32_t int32u) @@ -60744,23 +65865,23 @@ class TestConstraints : public TestCommand (static_cast(context))->OnSuccessResponse_4(int32u); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context) { (static_cast(context))->OnSuccessResponse_6(); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, chip::CharSpan charString) @@ -60768,9 +65889,9 @@ class TestConstraints : public TestCommand (static_cast(context))->OnSuccessResponse_7(charString); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, chip::CharSpan charString) @@ -60778,9 +65899,9 @@ class TestConstraints : public TestCommand (static_cast(context))->OnSuccessResponse_8(charString); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, chip::CharSpan charString) @@ -60788,9 +65909,9 @@ class TestConstraints : public TestCommand (static_cast(context))->OnSuccessResponse_9(charString); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context, chip::CharSpan charString) @@ -60798,16 +65919,16 @@ class TestConstraints : public TestCommand (static_cast(context))->OnSuccessResponse_10(charString); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context) { (static_cast(context))->OnSuccessResponse_11(); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context, chip::CharSpan charString) @@ -60815,16 +65936,16 @@ class TestConstraints : public TestCommand (static_cast(context))->OnSuccessResponse_12(charString); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context) { (static_cast(context))->OnSuccessResponse_13(); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context, chip::CharSpan charString) @@ -60832,16 +65953,16 @@ class TestConstraints : public TestCommand (static_cast(context))->OnSuccessResponse_14(charString); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_15(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_15(status); + (static_cast(context))->OnFailureResponse_15(error); } static void OnSuccessCallback_15(void * context) { (static_cast(context))->OnSuccessResponse_15(); } - static void OnFailureCallback_16(void * context, EmberAfStatus status) + static void OnFailureCallback_16(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(error); } static void OnSuccessCallback_16(void * context, chip::CharSpan charString) @@ -60849,16 +65970,16 @@ class TestConstraints : public TestCommand (static_cast(context))->OnSuccessResponse_16(charString); } - static void OnFailureCallback_17(void * context, EmberAfStatus status) + static void OnFailureCallback_17(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_17(status); + (static_cast(context))->OnFailureResponse_17(error); } static void OnSuccessCallback_17(void * context) { (static_cast(context))->OnSuccessResponse_17(); } - static void OnFailureCallback_18(void * context, EmberAfStatus status) + static void OnFailureCallback_18(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_18(error); } static void OnSuccessCallback_18(void * context, chip::CharSpan charString) @@ -60866,16 +65987,16 @@ class TestConstraints : public TestCommand (static_cast(context))->OnSuccessResponse_18(charString); } - static void OnFailureCallback_19(void * context, EmberAfStatus status) + static void OnFailureCallback_19(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_19(status); + (static_cast(context))->OnFailureResponse_19(error); } static void OnSuccessCallback_19(void * context) { (static_cast(context))->OnSuccessResponse_19(); } - static void OnFailureCallback_20(void * context, EmberAfStatus status) + static void OnFailureCallback_20(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_20(status); + (static_cast(context))->OnFailureResponse_20(error); } static void OnSuccessCallback_20(void * context, chip::CharSpan charString) @@ -60883,9 +66004,9 @@ class TestConstraints : public TestCommand (static_cast(context))->OnSuccessResponse_20(charString); } - static void OnFailureCallback_21(void * context, EmberAfStatus status) + static void OnFailureCallback_21(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_21(status); + (static_cast(context))->OnFailureResponse_21(error); } static void OnSuccessCallback_21(void * context) { (static_cast(context))->OnSuccessResponse_21(); } @@ -60914,7 +66035,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -60929,7 +66054,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint32_t int32u) { @@ -60948,7 +66077,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint32_t int32u) { @@ -60967,7 +66100,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint32_t int32u) { @@ -60990,7 +66127,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -61008,7 +66149,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6() { NextTest(); } @@ -61023,7 +66168,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(chip::CharSpan charString) { @@ -61042,7 +66191,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(chip::CharSpan charString) { @@ -61061,7 +66214,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(chip::CharSpan charString) { @@ -61080,7 +66237,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(chip::CharSpan charString) { @@ -61102,7 +66263,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11() { NextTest(); } @@ -61117,7 +66282,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12(chip::CharSpan charString) { @@ -61140,7 +66309,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13() { NextTest(); } @@ -61155,7 +66328,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14(chip::CharSpan charString) { @@ -61178,7 +66355,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15() { NextTest(); } @@ -61193,7 +66374,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_16(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_16(chip::CharSpan charString) { @@ -61216,7 +66401,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_17(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_17(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_17() { NextTest(); } @@ -61231,7 +66420,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_18(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_18(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_18(chip::CharSpan charString) { @@ -61253,7 +66446,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_19(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_19(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_19() { NextTest(); } @@ -61268,7 +66465,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_20(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_20(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_20(chip::CharSpan charString) { @@ -61290,7 +66491,11 @@ class TestConstraints : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_21(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_21(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_21() { NextTest(); } }; @@ -62007,9 +67212,9 @@ class TestSaveAs : public TestCommand uint8_t * readAttributeOctetStringNotDefaultValueBuffer = nullptr; chip::ByteSpan readAttributeOctetStringNotDefaultValue; - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, bool boolean) @@ -62017,16 +67222,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_4(boolean); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context) { (static_cast(context))->OnSuccessResponse_5(); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, bool boolean) @@ -62034,16 +67239,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_6(boolean); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context) { (static_cast(context))->OnSuccessResponse_7(); } - static void OnFailureCallback_8(void * context, EmberAfStatus status) + static void OnFailureCallback_8(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_8(status); + (static_cast(context))->OnFailureResponse_8(error); } static void OnSuccessCallback_8(void * context, bool boolean) @@ -62051,9 +67256,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_8(boolean); } - static void OnFailureCallback_9(void * context, EmberAfStatus status) + static void OnFailureCallback_9(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_9(status); + (static_cast(context))->OnFailureResponse_9(error); } static void OnSuccessCallback_9(void * context, uint8_t bitmap8) @@ -62061,16 +67266,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_9(bitmap8); } - static void OnFailureCallback_10(void * context, EmberAfStatus status) + static void OnFailureCallback_10(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_10(status); + (static_cast(context))->OnFailureResponse_10(error); } static void OnSuccessCallback_10(void * context) { (static_cast(context))->OnSuccessResponse_10(); } - static void OnFailureCallback_11(void * context, EmberAfStatus status) + static void OnFailureCallback_11(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_11(status); + (static_cast(context))->OnFailureResponse_11(error); } static void OnSuccessCallback_11(void * context, uint8_t bitmap8) @@ -62078,16 +67283,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_11(bitmap8); } - static void OnFailureCallback_12(void * context, EmberAfStatus status) + static void OnFailureCallback_12(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_12(status); + (static_cast(context))->OnFailureResponse_12(error); } static void OnSuccessCallback_12(void * context) { (static_cast(context))->OnSuccessResponse_12(); } - static void OnFailureCallback_13(void * context, EmberAfStatus status) + static void OnFailureCallback_13(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_13(status); + (static_cast(context))->OnFailureResponse_13(error); } static void OnSuccessCallback_13(void * context, uint8_t bitmap8) @@ -62095,9 +67300,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_13(bitmap8); } - static void OnFailureCallback_14(void * context, EmberAfStatus status) + static void OnFailureCallback_14(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_14(status); + (static_cast(context))->OnFailureResponse_14(error); } static void OnSuccessCallback_14(void * context, uint16_t bitmap16) @@ -62105,16 +67310,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_14(bitmap16); } - static void OnFailureCallback_15(void * context, EmberAfStatus status) + static void OnFailureCallback_15(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_15(status); + (static_cast(context))->OnFailureResponse_15(error); } static void OnSuccessCallback_15(void * context) { (static_cast(context))->OnSuccessResponse_15(); } - static void OnFailureCallback_16(void * context, EmberAfStatus status) + static void OnFailureCallback_16(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_16(status); + (static_cast(context))->OnFailureResponse_16(error); } static void OnSuccessCallback_16(void * context, uint16_t bitmap16) @@ -62122,16 +67327,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_16(bitmap16); } - static void OnFailureCallback_17(void * context, EmberAfStatus status) + static void OnFailureCallback_17(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_17(status); + (static_cast(context))->OnFailureResponse_17(error); } static void OnSuccessCallback_17(void * context) { (static_cast(context))->OnSuccessResponse_17(); } - static void OnFailureCallback_18(void * context, EmberAfStatus status) + static void OnFailureCallback_18(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_18(status); + (static_cast(context))->OnFailureResponse_18(error); } static void OnSuccessCallback_18(void * context, uint16_t bitmap16) @@ -62139,9 +67344,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_18(bitmap16); } - static void OnFailureCallback_19(void * context, EmberAfStatus status) + static void OnFailureCallback_19(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_19(status); + (static_cast(context))->OnFailureResponse_19(error); } static void OnSuccessCallback_19(void * context, uint32_t bitmap32) @@ -62149,16 +67354,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_19(bitmap32); } - static void OnFailureCallback_20(void * context, EmberAfStatus status) + static void OnFailureCallback_20(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_20(status); + (static_cast(context))->OnFailureResponse_20(error); } static void OnSuccessCallback_20(void * context) { (static_cast(context))->OnSuccessResponse_20(); } - static void OnFailureCallback_21(void * context, EmberAfStatus status) + static void OnFailureCallback_21(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_21(status); + (static_cast(context))->OnFailureResponse_21(error); } static void OnSuccessCallback_21(void * context, uint32_t bitmap32) @@ -62166,16 +67371,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_21(bitmap32); } - static void OnFailureCallback_22(void * context, EmberAfStatus status) + static void OnFailureCallback_22(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_22(status); + (static_cast(context))->OnFailureResponse_22(error); } static void OnSuccessCallback_22(void * context) { (static_cast(context))->OnSuccessResponse_22(); } - static void OnFailureCallback_23(void * context, EmberAfStatus status) + static void OnFailureCallback_23(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_23(status); + (static_cast(context))->OnFailureResponse_23(error); } static void OnSuccessCallback_23(void * context, uint32_t bitmap32) @@ -62183,9 +67388,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_23(bitmap32); } - static void OnFailureCallback_24(void * context, EmberAfStatus status) + static void OnFailureCallback_24(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_24(status); + (static_cast(context))->OnFailureResponse_24(error); } static void OnSuccessCallback_24(void * context, uint64_t bitmap64) @@ -62193,16 +67398,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_24(bitmap64); } - static void OnFailureCallback_25(void * context, EmberAfStatus status) + static void OnFailureCallback_25(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_25(status); + (static_cast(context))->OnFailureResponse_25(error); } static void OnSuccessCallback_25(void * context) { (static_cast(context))->OnSuccessResponse_25(); } - static void OnFailureCallback_26(void * context, EmberAfStatus status) + static void OnFailureCallback_26(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_26(status); + (static_cast(context))->OnFailureResponse_26(error); } static void OnSuccessCallback_26(void * context, uint64_t bitmap64) @@ -62210,16 +67415,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_26(bitmap64); } - static void OnFailureCallback_27(void * context, EmberAfStatus status) + static void OnFailureCallback_27(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_27(status); + (static_cast(context))->OnFailureResponse_27(error); } static void OnSuccessCallback_27(void * context) { (static_cast(context))->OnSuccessResponse_27(); } - static void OnFailureCallback_28(void * context, EmberAfStatus status) + static void OnFailureCallback_28(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_28(status); + (static_cast(context))->OnFailureResponse_28(error); } static void OnSuccessCallback_28(void * context, uint64_t bitmap64) @@ -62227,9 +67432,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_28(bitmap64); } - static void OnFailureCallback_29(void * context, EmberAfStatus status) + static void OnFailureCallback_29(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_29(status); + (static_cast(context))->OnFailureResponse_29(error); } static void OnSuccessCallback_29(void * context, uint8_t int8u) @@ -62237,16 +67442,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_29(int8u); } - static void OnFailureCallback_30(void * context, EmberAfStatus status) + static void OnFailureCallback_30(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_30(status); + (static_cast(context))->OnFailureResponse_30(error); } static void OnSuccessCallback_30(void * context) { (static_cast(context))->OnSuccessResponse_30(); } - static void OnFailureCallback_31(void * context, EmberAfStatus status) + static void OnFailureCallback_31(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_31(status); + (static_cast(context))->OnFailureResponse_31(error); } static void OnSuccessCallback_31(void * context, uint8_t int8u) @@ -62254,16 +67459,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_31(int8u); } - static void OnFailureCallback_32(void * context, EmberAfStatus status) + static void OnFailureCallback_32(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_32(status); + (static_cast(context))->OnFailureResponse_32(error); } static void OnSuccessCallback_32(void * context) { (static_cast(context))->OnSuccessResponse_32(); } - static void OnFailureCallback_33(void * context, EmberAfStatus status) + static void OnFailureCallback_33(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_33(status); + (static_cast(context))->OnFailureResponse_33(error); } static void OnSuccessCallback_33(void * context, uint8_t int8u) @@ -62271,9 +67476,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_33(int8u); } - static void OnFailureCallback_34(void * context, EmberAfStatus status) + static void OnFailureCallback_34(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_34(status); + (static_cast(context))->OnFailureResponse_34(error); } static void OnSuccessCallback_34(void * context, uint16_t int16u) @@ -62281,16 +67486,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_34(int16u); } - static void OnFailureCallback_35(void * context, EmberAfStatus status) + static void OnFailureCallback_35(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_35(status); + (static_cast(context))->OnFailureResponse_35(error); } static void OnSuccessCallback_35(void * context) { (static_cast(context))->OnSuccessResponse_35(); } - static void OnFailureCallback_36(void * context, EmberAfStatus status) + static void OnFailureCallback_36(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_36(status); + (static_cast(context))->OnFailureResponse_36(error); } static void OnSuccessCallback_36(void * context, uint16_t int16u) @@ -62298,16 +67503,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_36(int16u); } - static void OnFailureCallback_37(void * context, EmberAfStatus status) + static void OnFailureCallback_37(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_37(status); + (static_cast(context))->OnFailureResponse_37(error); } static void OnSuccessCallback_37(void * context) { (static_cast(context))->OnSuccessResponse_37(); } - static void OnFailureCallback_38(void * context, EmberAfStatus status) + static void OnFailureCallback_38(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_38(status); + (static_cast(context))->OnFailureResponse_38(error); } static void OnSuccessCallback_38(void * context, uint16_t int16u) @@ -62315,9 +67520,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_38(int16u); } - static void OnFailureCallback_39(void * context, EmberAfStatus status) + static void OnFailureCallback_39(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_39(status); + (static_cast(context))->OnFailureResponse_39(error); } static void OnSuccessCallback_39(void * context, uint32_t int32u) @@ -62325,16 +67530,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_39(int32u); } - static void OnFailureCallback_40(void * context, EmberAfStatus status) + static void OnFailureCallback_40(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_40(status); + (static_cast(context))->OnFailureResponse_40(error); } static void OnSuccessCallback_40(void * context) { (static_cast(context))->OnSuccessResponse_40(); } - static void OnFailureCallback_41(void * context, EmberAfStatus status) + static void OnFailureCallback_41(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_41(status); + (static_cast(context))->OnFailureResponse_41(error); } static void OnSuccessCallback_41(void * context, uint32_t int32u) @@ -62342,16 +67547,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_41(int32u); } - static void OnFailureCallback_42(void * context, EmberAfStatus status) + static void OnFailureCallback_42(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_42(status); + (static_cast(context))->OnFailureResponse_42(error); } static void OnSuccessCallback_42(void * context) { (static_cast(context))->OnSuccessResponse_42(); } - static void OnFailureCallback_43(void * context, EmberAfStatus status) + static void OnFailureCallback_43(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_43(status); + (static_cast(context))->OnFailureResponse_43(error); } static void OnSuccessCallback_43(void * context, uint32_t int32u) @@ -62359,9 +67564,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_43(int32u); } - static void OnFailureCallback_44(void * context, EmberAfStatus status) + static void OnFailureCallback_44(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_44(status); + (static_cast(context))->OnFailureResponse_44(error); } static void OnSuccessCallback_44(void * context, uint64_t int64u) @@ -62369,16 +67574,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_44(int64u); } - static void OnFailureCallback_45(void * context, EmberAfStatus status) + static void OnFailureCallback_45(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_45(status); + (static_cast(context))->OnFailureResponse_45(error); } static void OnSuccessCallback_45(void * context) { (static_cast(context))->OnSuccessResponse_45(); } - static void OnFailureCallback_46(void * context, EmberAfStatus status) + static void OnFailureCallback_46(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_46(status); + (static_cast(context))->OnFailureResponse_46(error); } static void OnSuccessCallback_46(void * context, uint64_t int64u) @@ -62386,16 +67591,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_46(int64u); } - static void OnFailureCallback_47(void * context, EmberAfStatus status) + static void OnFailureCallback_47(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_47(status); + (static_cast(context))->OnFailureResponse_47(error); } static void OnSuccessCallback_47(void * context) { (static_cast(context))->OnSuccessResponse_47(); } - static void OnFailureCallback_48(void * context, EmberAfStatus status) + static void OnFailureCallback_48(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_48(status); + (static_cast(context))->OnFailureResponse_48(error); } static void OnSuccessCallback_48(void * context, uint64_t int64u) @@ -62403,9 +67608,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_48(int64u); } - static void OnFailureCallback_49(void * context, EmberAfStatus status) + static void OnFailureCallback_49(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_49(status); + (static_cast(context))->OnFailureResponse_49(error); } static void OnSuccessCallback_49(void * context, int8_t int8s) @@ -62413,16 +67618,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_49(int8s); } - static void OnFailureCallback_50(void * context, EmberAfStatus status) + static void OnFailureCallback_50(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_50(status); + (static_cast(context))->OnFailureResponse_50(error); } static void OnSuccessCallback_50(void * context) { (static_cast(context))->OnSuccessResponse_50(); } - static void OnFailureCallback_51(void * context, EmberAfStatus status) + static void OnFailureCallback_51(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_51(status); + (static_cast(context))->OnFailureResponse_51(error); } static void OnSuccessCallback_51(void * context, int8_t int8s) @@ -62430,16 +67635,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_51(int8s); } - static void OnFailureCallback_52(void * context, EmberAfStatus status) + static void OnFailureCallback_52(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_52(status); + (static_cast(context))->OnFailureResponse_52(error); } static void OnSuccessCallback_52(void * context) { (static_cast(context))->OnSuccessResponse_52(); } - static void OnFailureCallback_53(void * context, EmberAfStatus status) + static void OnFailureCallback_53(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_53(status); + (static_cast(context))->OnFailureResponse_53(error); } static void OnSuccessCallback_53(void * context, int8_t int8s) @@ -62447,9 +67652,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_53(int8s); } - static void OnFailureCallback_54(void * context, EmberAfStatus status) + static void OnFailureCallback_54(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_54(status); + (static_cast(context))->OnFailureResponse_54(error); } static void OnSuccessCallback_54(void * context, int16_t int16s) @@ -62457,16 +67662,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_54(int16s); } - static void OnFailureCallback_55(void * context, EmberAfStatus status) + static void OnFailureCallback_55(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_55(status); + (static_cast(context))->OnFailureResponse_55(error); } static void OnSuccessCallback_55(void * context) { (static_cast(context))->OnSuccessResponse_55(); } - static void OnFailureCallback_56(void * context, EmberAfStatus status) + static void OnFailureCallback_56(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_56(status); + (static_cast(context))->OnFailureResponse_56(error); } static void OnSuccessCallback_56(void * context, int16_t int16s) @@ -62474,16 +67679,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_56(int16s); } - static void OnFailureCallback_57(void * context, EmberAfStatus status) + static void OnFailureCallback_57(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_57(status); + (static_cast(context))->OnFailureResponse_57(error); } static void OnSuccessCallback_57(void * context) { (static_cast(context))->OnSuccessResponse_57(); } - static void OnFailureCallback_58(void * context, EmberAfStatus status) + static void OnFailureCallback_58(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_58(status); + (static_cast(context))->OnFailureResponse_58(error); } static void OnSuccessCallback_58(void * context, int16_t int16s) @@ -62491,9 +67696,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_58(int16s); } - static void OnFailureCallback_59(void * context, EmberAfStatus status) + static void OnFailureCallback_59(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_59(status); + (static_cast(context))->OnFailureResponse_59(error); } static void OnSuccessCallback_59(void * context, int32_t int32s) @@ -62501,16 +67706,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_59(int32s); } - static void OnFailureCallback_60(void * context, EmberAfStatus status) + static void OnFailureCallback_60(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_60(status); + (static_cast(context))->OnFailureResponse_60(error); } static void OnSuccessCallback_60(void * context) { (static_cast(context))->OnSuccessResponse_60(); } - static void OnFailureCallback_61(void * context, EmberAfStatus status) + static void OnFailureCallback_61(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_61(status); + (static_cast(context))->OnFailureResponse_61(error); } static void OnSuccessCallback_61(void * context, int32_t int32s) @@ -62518,16 +67723,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_61(int32s); } - static void OnFailureCallback_62(void * context, EmberAfStatus status) + static void OnFailureCallback_62(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_62(status); + (static_cast(context))->OnFailureResponse_62(error); } static void OnSuccessCallback_62(void * context) { (static_cast(context))->OnSuccessResponse_62(); } - static void OnFailureCallback_63(void * context, EmberAfStatus status) + static void OnFailureCallback_63(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_63(status); + (static_cast(context))->OnFailureResponse_63(error); } static void OnSuccessCallback_63(void * context, int32_t int32s) @@ -62535,9 +67740,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_63(int32s); } - static void OnFailureCallback_64(void * context, EmberAfStatus status) + static void OnFailureCallback_64(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_64(status); + (static_cast(context))->OnFailureResponse_64(error); } static void OnSuccessCallback_64(void * context, int64_t int64s) @@ -62545,16 +67750,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_64(int64s); } - static void OnFailureCallback_65(void * context, EmberAfStatus status) + static void OnFailureCallback_65(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_65(status); + (static_cast(context))->OnFailureResponse_65(error); } static void OnSuccessCallback_65(void * context) { (static_cast(context))->OnSuccessResponse_65(); } - static void OnFailureCallback_66(void * context, EmberAfStatus status) + static void OnFailureCallback_66(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_66(status); + (static_cast(context))->OnFailureResponse_66(error); } static void OnSuccessCallback_66(void * context, int64_t int64s) @@ -62562,16 +67767,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_66(int64s); } - static void OnFailureCallback_67(void * context, EmberAfStatus status) + static void OnFailureCallback_67(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_67(status); + (static_cast(context))->OnFailureResponse_67(error); } static void OnSuccessCallback_67(void * context) { (static_cast(context))->OnSuccessResponse_67(); } - static void OnFailureCallback_68(void * context, EmberAfStatus status) + static void OnFailureCallback_68(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_68(status); + (static_cast(context))->OnFailureResponse_68(error); } static void OnSuccessCallback_68(void * context, int64_t int64s) @@ -62579,9 +67784,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_68(int64s); } - static void OnFailureCallback_69(void * context, EmberAfStatus status) + static void OnFailureCallback_69(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_69(status); + (static_cast(context))->OnFailureResponse_69(error); } static void OnSuccessCallback_69(void * context, uint8_t enum8) @@ -62589,16 +67794,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_69(enum8); } - static void OnFailureCallback_70(void * context, EmberAfStatus status) + static void OnFailureCallback_70(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_70(status); + (static_cast(context))->OnFailureResponse_70(error); } static void OnSuccessCallback_70(void * context) { (static_cast(context))->OnSuccessResponse_70(); } - static void OnFailureCallback_71(void * context, EmberAfStatus status) + static void OnFailureCallback_71(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_71(status); + (static_cast(context))->OnFailureResponse_71(error); } static void OnSuccessCallback_71(void * context, uint8_t enum8) @@ -62606,16 +67811,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_71(enum8); } - static void OnFailureCallback_72(void * context, EmberAfStatus status) + static void OnFailureCallback_72(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_72(status); + (static_cast(context))->OnFailureResponse_72(error); } static void OnSuccessCallback_72(void * context) { (static_cast(context))->OnSuccessResponse_72(); } - static void OnFailureCallback_73(void * context, EmberAfStatus status) + static void OnFailureCallback_73(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_73(status); + (static_cast(context))->OnFailureResponse_73(error); } static void OnSuccessCallback_73(void * context, uint8_t enum8) @@ -62623,9 +67828,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_73(enum8); } - static void OnFailureCallback_74(void * context, EmberAfStatus status) + static void OnFailureCallback_74(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_74(status); + (static_cast(context))->OnFailureResponse_74(error); } static void OnSuccessCallback_74(void * context, uint16_t enum16) @@ -62633,16 +67838,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_74(enum16); } - static void OnFailureCallback_75(void * context, EmberAfStatus status) + static void OnFailureCallback_75(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_75(status); + (static_cast(context))->OnFailureResponse_75(error); } static void OnSuccessCallback_75(void * context) { (static_cast(context))->OnSuccessResponse_75(); } - static void OnFailureCallback_76(void * context, EmberAfStatus status) + static void OnFailureCallback_76(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_76(status); + (static_cast(context))->OnFailureResponse_76(error); } static void OnSuccessCallback_76(void * context, uint16_t enum16) @@ -62650,16 +67855,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_76(enum16); } - static void OnFailureCallback_77(void * context, EmberAfStatus status) + static void OnFailureCallback_77(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_77(status); + (static_cast(context))->OnFailureResponse_77(error); } static void OnSuccessCallback_77(void * context) { (static_cast(context))->OnSuccessResponse_77(); } - static void OnFailureCallback_78(void * context, EmberAfStatus status) + static void OnFailureCallback_78(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_78(status); + (static_cast(context))->OnFailureResponse_78(error); } static void OnSuccessCallback_78(void * context, uint16_t enum16) @@ -62667,9 +67872,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_78(enum16); } - static void OnFailureCallback_79(void * context, EmberAfStatus status) + static void OnFailureCallback_79(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_79(status); + (static_cast(context))->OnFailureResponse_79(error); } static void OnSuccessCallback_79(void * context, uint64_t epochUs) @@ -62677,16 +67882,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_79(epochUs); } - static void OnFailureCallback_80(void * context, EmberAfStatus status) + static void OnFailureCallback_80(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_80(status); + (static_cast(context))->OnFailureResponse_80(error); } static void OnSuccessCallback_80(void * context) { (static_cast(context))->OnSuccessResponse_80(); } - static void OnFailureCallback_81(void * context, EmberAfStatus status) + static void OnFailureCallback_81(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_81(status); + (static_cast(context))->OnFailureResponse_81(error); } static void OnSuccessCallback_81(void * context, uint64_t epochUs) @@ -62694,16 +67899,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_81(epochUs); } - static void OnFailureCallback_82(void * context, EmberAfStatus status) + static void OnFailureCallback_82(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_82(status); + (static_cast(context))->OnFailureResponse_82(error); } static void OnSuccessCallback_82(void * context) { (static_cast(context))->OnSuccessResponse_82(); } - static void OnFailureCallback_83(void * context, EmberAfStatus status) + static void OnFailureCallback_83(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_83(status); + (static_cast(context))->OnFailureResponse_83(error); } static void OnSuccessCallback_83(void * context, uint64_t epochUs) @@ -62711,9 +67916,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_83(epochUs); } - static void OnFailureCallback_84(void * context, EmberAfStatus status) + static void OnFailureCallback_84(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_84(status); + (static_cast(context))->OnFailureResponse_84(error); } static void OnSuccessCallback_84(void * context, uint32_t epochS) @@ -62721,16 +67926,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_84(epochS); } - static void OnFailureCallback_85(void * context, EmberAfStatus status) + static void OnFailureCallback_85(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_85(status); + (static_cast(context))->OnFailureResponse_85(error); } static void OnSuccessCallback_85(void * context) { (static_cast(context))->OnSuccessResponse_85(); } - static void OnFailureCallback_86(void * context, EmberAfStatus status) + static void OnFailureCallback_86(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_86(status); + (static_cast(context))->OnFailureResponse_86(error); } static void OnSuccessCallback_86(void * context, uint32_t epochS) @@ -62738,16 +67943,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_86(epochS); } - static void OnFailureCallback_87(void * context, EmberAfStatus status) + static void OnFailureCallback_87(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_87(status); + (static_cast(context))->OnFailureResponse_87(error); } static void OnSuccessCallback_87(void * context) { (static_cast(context))->OnSuccessResponse_87(); } - static void OnFailureCallback_88(void * context, EmberAfStatus status) + static void OnFailureCallback_88(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_88(status); + (static_cast(context))->OnFailureResponse_88(error); } static void OnSuccessCallback_88(void * context, uint32_t epochS) @@ -62755,9 +67960,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_88(epochS); } - static void OnFailureCallback_89(void * context, EmberAfStatus status) + static void OnFailureCallback_89(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_89(status); + (static_cast(context))->OnFailureResponse_89(error); } static void OnSuccessCallback_89(void * context, chip::VendorId vendorId) @@ -62765,16 +67970,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_89(vendorId); } - static void OnFailureCallback_90(void * context, EmberAfStatus status) + static void OnFailureCallback_90(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_90(status); + (static_cast(context))->OnFailureResponse_90(error); } static void OnSuccessCallback_90(void * context) { (static_cast(context))->OnSuccessResponse_90(); } - static void OnFailureCallback_91(void * context, EmberAfStatus status) + static void OnFailureCallback_91(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_91(status); + (static_cast(context))->OnFailureResponse_91(error); } static void OnSuccessCallback_91(void * context, chip::VendorId vendorId) @@ -62782,16 +67987,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_91(vendorId); } - static void OnFailureCallback_92(void * context, EmberAfStatus status) + static void OnFailureCallback_92(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_92(status); + (static_cast(context))->OnFailureResponse_92(error); } static void OnSuccessCallback_92(void * context) { (static_cast(context))->OnSuccessResponse_92(); } - static void OnFailureCallback_93(void * context, EmberAfStatus status) + static void OnFailureCallback_93(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_93(status); + (static_cast(context))->OnFailureResponse_93(error); } static void OnSuccessCallback_93(void * context, chip::VendorId vendorId) @@ -62799,9 +68004,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_93(vendorId); } - static void OnFailureCallback_94(void * context, EmberAfStatus status) + static void OnFailureCallback_94(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_94(status); + (static_cast(context))->OnFailureResponse_94(error); } static void OnSuccessCallback_94(void * context, chip::CharSpan charString) @@ -62809,9 +68014,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_94(charString); } - static void OnFailureCallback_95(void * context, EmberAfStatus status) + static void OnFailureCallback_95(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_95(status); + (static_cast(context))->OnFailureResponse_95(error); } static void OnSuccessCallback_95(void * context, chip::CharSpan charString) @@ -62819,16 +68024,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_95(charString); } - static void OnFailureCallback_96(void * context, EmberAfStatus status) + static void OnFailureCallback_96(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_96(status); + (static_cast(context))->OnFailureResponse_96(error); } static void OnSuccessCallback_96(void * context) { (static_cast(context))->OnSuccessResponse_96(); } - static void OnFailureCallback_97(void * context, EmberAfStatus status) + static void OnFailureCallback_97(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_97(status); + (static_cast(context))->OnFailureResponse_97(error); } static void OnSuccessCallback_97(void * context, chip::CharSpan charString) @@ -62836,9 +68041,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_97(charString); } - static void OnFailureCallback_98(void * context, EmberAfStatus status) + static void OnFailureCallback_98(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_98(status); + (static_cast(context))->OnFailureResponse_98(error); } static void OnSuccessCallback_98(void * context, chip::CharSpan charString) @@ -62846,16 +68051,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_98(charString); } - static void OnFailureCallback_99(void * context, EmberAfStatus status) + static void OnFailureCallback_99(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_99(status); + (static_cast(context))->OnFailureResponse_99(error); } static void OnSuccessCallback_99(void * context) { (static_cast(context))->OnSuccessResponse_99(); } - static void OnFailureCallback_100(void * context, EmberAfStatus status) + static void OnFailureCallback_100(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_100(status); + (static_cast(context))->OnFailureResponse_100(error); } static void OnSuccessCallback_100(void * context, chip::CharSpan charString) @@ -62863,16 +68068,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_100(charString); } - static void OnFailureCallback_101(void * context, EmberAfStatus status) + static void OnFailureCallback_101(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_101(status); + (static_cast(context))->OnFailureResponse_101(error); } static void OnSuccessCallback_101(void * context) { (static_cast(context))->OnSuccessResponse_101(); } - static void OnFailureCallback_102(void * context, EmberAfStatus status) + static void OnFailureCallback_102(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_102(status); + (static_cast(context))->OnFailureResponse_102(error); } static void OnSuccessCallback_102(void * context, chip::ByteSpan octetString) @@ -62880,9 +68085,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_102(octetString); } - static void OnFailureCallback_103(void * context, EmberAfStatus status) + static void OnFailureCallback_103(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_103(status); + (static_cast(context))->OnFailureResponse_103(error); } static void OnSuccessCallback_103(void * context, chip::ByteSpan octetString) @@ -62890,16 +68095,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_103(octetString); } - static void OnFailureCallback_104(void * context, EmberAfStatus status) + static void OnFailureCallback_104(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_104(status); + (static_cast(context))->OnFailureResponse_104(error); } static void OnSuccessCallback_104(void * context) { (static_cast(context))->OnSuccessResponse_104(); } - static void OnFailureCallback_105(void * context, EmberAfStatus status) + static void OnFailureCallback_105(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_105(status); + (static_cast(context))->OnFailureResponse_105(error); } static void OnSuccessCallback_105(void * context, chip::ByteSpan octetString) @@ -62907,9 +68112,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_105(octetString); } - static void OnFailureCallback_106(void * context, EmberAfStatus status) + static void OnFailureCallback_106(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_106(status); + (static_cast(context))->OnFailureResponse_106(error); } static void OnSuccessCallback_106(void * context, chip::ByteSpan octetString) @@ -62917,16 +68122,16 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_106(octetString); } - static void OnFailureCallback_107(void * context, EmberAfStatus status) + static void OnFailureCallback_107(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_107(status); + (static_cast(context))->OnFailureResponse_107(error); } static void OnSuccessCallback_107(void * context) { (static_cast(context))->OnSuccessResponse_107(); } - static void OnFailureCallback_108(void * context, EmberAfStatus status) + static void OnFailureCallback_108(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_108(status); + (static_cast(context))->OnFailureResponse_108(error); } static void OnSuccessCallback_108(void * context, chip::ByteSpan octetString) @@ -62934,9 +68139,9 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_108(octetString); } - static void OnFailureCallback_109(void * context, EmberAfStatus status) + static void OnFailureCallback_109(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_109(status); + (static_cast(context))->OnFailureResponse_109(error); } static void OnSuccessCallback_109(void * context) { (static_cast(context))->OnSuccessResponse_109(); } @@ -62964,15 +68169,17 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_1(data.returnValue); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); - }; + auto failure = [](void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t returnValue) { @@ -62995,15 +68202,17 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_2(data.returnValue); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); - }; + auto failure = [](void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_2(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t returnValue) { @@ -63025,15 +68234,17 @@ class TestSaveAs : public TestCommand (static_cast(context))->OnSuccessResponse_3(data.returnValue); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); - }; + auto failure = [](void * context, CHIP_ERROR error) { (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t returnValue) { @@ -63053,7 +68264,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(bool boolean) { @@ -63077,7 +68292,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -63092,7 +68311,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(bool boolean) { @@ -63115,7 +68338,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7() { NextTest(); } @@ -63130,7 +68357,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(bool boolean) { @@ -63150,7 +68381,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint8_t bitmap8) { @@ -63174,7 +68409,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10() { NextTest(); } @@ -63189,7 +68428,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(uint8_t bitmap8) { @@ -63212,7 +68455,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12() { NextTest(); } @@ -63227,7 +68474,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(uint8_t bitmap8) { @@ -63247,7 +68498,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14(uint16_t bitmap16) { @@ -63271,7 +68526,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15() { NextTest(); } @@ -63286,7 +68545,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_16(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_16(uint16_t bitmap16) { @@ -63309,7 +68572,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_17(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_17(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_17() { NextTest(); } @@ -63324,7 +68591,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_18(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_18(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_18(uint16_t bitmap16) { @@ -63344,7 +68615,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_19(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_19(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_19(uint32_t bitmap32) { @@ -63368,7 +68643,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_20(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_20(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_20() { NextTest(); } @@ -63383,7 +68662,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_21(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_21(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_21(uint32_t bitmap32) { @@ -63406,7 +68689,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_22(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_22(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_22() { NextTest(); } @@ -63421,7 +68708,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_23(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_23(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_23(uint32_t bitmap32) { @@ -63441,7 +68732,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_24(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_24(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_24(uint64_t bitmap64) { @@ -63465,7 +68760,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_25(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_25(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_25() { NextTest(); } @@ -63480,7 +68779,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_26(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_26(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_26(uint64_t bitmap64) { @@ -63503,7 +68806,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_27(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_27(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_27() { NextTest(); } @@ -63518,7 +68825,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_28(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_28(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_28(uint64_t bitmap64) { @@ -63538,7 +68849,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_29(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_29(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_29(uint8_t int8u) { @@ -63562,7 +68877,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_30(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_30(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_30() { NextTest(); } @@ -63577,7 +68896,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_31(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_31(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_31(uint8_t int8u) { @@ -63600,7 +68923,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_32(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_32(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_32() { NextTest(); } @@ -63615,7 +68942,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_33(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_33(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_33(uint8_t int8u) { @@ -63635,7 +68966,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_34(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_34(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_34(uint16_t int16u) { @@ -63659,7 +68994,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_35(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_35(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_35() { NextTest(); } @@ -63674,7 +69013,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_36(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_36(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_36(uint16_t int16u) { @@ -63697,7 +69040,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_37(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_37(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_37() { NextTest(); } @@ -63712,7 +69059,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_38(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_38(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_38(uint16_t int16u) { @@ -63732,7 +69083,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_39(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_39(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_39(uint32_t int32u) { @@ -63756,7 +69111,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_40(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_40(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_40() { NextTest(); } @@ -63771,7 +69130,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_41(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_41(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_41(uint32_t int32u) { @@ -63794,7 +69157,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_42(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_42(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_42() { NextTest(); } @@ -63809,7 +69176,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_43(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_43(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_43(uint32_t int32u) { @@ -63829,7 +69200,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_44(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_44(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_44(uint64_t int64u) { @@ -63853,7 +69228,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_45(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_45(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_45() { NextTest(); } @@ -63868,7 +69247,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_46(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_46(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_46(uint64_t int64u) { @@ -63891,7 +69274,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_47(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_47(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_47() { NextTest(); } @@ -63906,7 +69293,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_48(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_48(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_48(uint64_t int64u) { @@ -63926,7 +69317,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_49(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_49(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_49(int8_t int8s) { @@ -63950,7 +69345,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_50(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_50(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_50() { NextTest(); } @@ -63965,7 +69364,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_51(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_51(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_51(int8_t int8s) { @@ -63988,7 +69391,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_52(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_52(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_52() { NextTest(); } @@ -64003,7 +69410,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_53(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_53(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_53(int8_t int8s) { @@ -64023,7 +69434,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_54(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_54(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_54(int16_t int16s) { @@ -64047,7 +69462,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_55(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_55(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_55() { NextTest(); } @@ -64062,7 +69481,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_56(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_56(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_56(int16_t int16s) { @@ -64085,7 +69508,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_57(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_57(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_57() { NextTest(); } @@ -64100,7 +69527,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_58(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_58(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_58(int16_t int16s) { @@ -64120,7 +69551,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_59(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_59(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_59(int32_t int32s) { @@ -64144,7 +69579,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_60(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_60(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_60() { NextTest(); } @@ -64159,7 +69598,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_61(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_61(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_61(int32_t int32s) { @@ -64182,7 +69625,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_62(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_62(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_62() { NextTest(); } @@ -64197,7 +69644,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_63(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_63(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_63(int32_t int32s) { @@ -64217,7 +69668,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_64(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_64(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_64(int64_t int64s) { @@ -64241,7 +69696,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_65(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_65(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_65() { NextTest(); } @@ -64256,7 +69715,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_66(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_66(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_66(int64_t int64s) { @@ -64279,7 +69742,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_67(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_67(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_67() { NextTest(); } @@ -64294,7 +69761,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_68(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_68(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_68(int64_t int64s) { @@ -64314,7 +69785,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_69(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_69(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_69(uint8_t enum8) { @@ -64338,7 +69813,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_70(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_70(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_70() { NextTest(); } @@ -64353,7 +69832,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_71(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_71(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_71(uint8_t enum8) { @@ -64376,7 +69859,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_72(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_72(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_72() { NextTest(); } @@ -64391,7 +69878,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_73(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_73(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_73(uint8_t enum8) { @@ -64411,7 +69902,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_74(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_74(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_74(uint16_t enum16) { @@ -64435,7 +69930,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_75(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_75(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_75() { NextTest(); } @@ -64450,7 +69949,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_76(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_76(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_76(uint16_t enum16) { @@ -64473,7 +69976,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_77(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_77(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_77() { NextTest(); } @@ -64488,7 +69995,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_78(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_78(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_78(uint16_t enum16) { @@ -64508,7 +70019,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_79(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_79(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_79(uint64_t epochUs) { @@ -64532,7 +70047,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_80(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_80(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_80() { NextTest(); } @@ -64547,7 +70066,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_81(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_81(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_81(uint64_t epochUs) { @@ -64570,7 +70093,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_82(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_82(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_82() { NextTest(); } @@ -64585,7 +70112,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_83(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_83(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_83(uint64_t epochUs) { @@ -64605,7 +70136,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_84(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_84(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_84(uint32_t epochS) { @@ -64629,7 +70164,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_85(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_85(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_85() { NextTest(); } @@ -64644,7 +70183,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_86(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_86(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_86(uint32_t epochS) { @@ -64667,7 +70210,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_87(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_87(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_87() { NextTest(); } @@ -64682,7 +70229,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_88(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_88(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_88(uint32_t epochS) { @@ -64702,7 +70253,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_89(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_89(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_89(chip::VendorId vendorId) { @@ -64726,7 +70281,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_90(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_90(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_90() { NextTest(); } @@ -64741,7 +70300,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_91(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_91(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_91(chip::VendorId vendorId) { @@ -64764,7 +70327,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_92(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_92(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_92() { NextTest(); } @@ -64779,7 +70346,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_93(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_93(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_93(chip::VendorId vendorId) { @@ -64799,7 +70370,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_94(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_94(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_94(chip::CharSpan charString) { @@ -64826,7 +70401,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_95(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_95(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_95(chip::CharSpan charString) { @@ -64849,7 +70428,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_96(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_96(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_96() { NextTest(); } @@ -64864,7 +70447,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_97(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_97(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_97(chip::CharSpan charString) { @@ -64892,7 +70479,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_98(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_98(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_98(chip::CharSpan charString) { @@ -64916,7 +70507,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_99(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_99(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_99() { NextTest(); } @@ -64931,7 +70526,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_100(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_100(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_100(chip::CharSpan charString) { @@ -64954,7 +70553,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_101(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_101(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_101() { NextTest(); } @@ -64969,7 +70572,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_102(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_102(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_102(chip::ByteSpan octetString) { @@ -64996,7 +70603,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_103(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_103(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_103(chip::ByteSpan octetString) { @@ -65019,7 +70630,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_104(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_104(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_104() { NextTest(); } @@ -65034,7 +70649,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_105(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_105(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_105(chip::ByteSpan octetString) { @@ -65063,7 +70682,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_106(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_106(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_106(chip::ByteSpan octetString) { @@ -65087,7 +70710,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_107(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_107(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_107() { NextTest(); } @@ -65102,7 +70729,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_108(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_108(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_108(chip::ByteSpan octetString) { @@ -65126,7 +70757,11 @@ class TestSaveAs : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_109(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_109(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_109() { NextTest(); } }; @@ -65224,15 +70859,19 @@ class TestConfigVariables : public TestCommand (static_cast(context))->OnSuccessResponse_1(data.returnValue); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t returnValue) { @@ -65255,15 +70894,19 @@ class TestConfigVariables : public TestCommand (static_cast(context))->OnSuccessResponse_2(data.returnValue); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_2(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t returnValue) { @@ -65345,9 +70988,9 @@ class TestDescriptorCluster : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1( @@ -65357,9 +71000,9 @@ class TestDescriptorCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(deviceList); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, const chip::app::DataModel::DecodableList & serverList) @@ -65367,9 +71010,9 @@ class TestDescriptorCluster : public TestCommand (static_cast(context))->OnSuccessResponse_2(serverList); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, const chip::app::DataModel::DecodableList & clientList) @@ -65377,9 +71020,9 @@ class TestDescriptorCluster : public TestCommand (static_cast(context))->OnSuccessResponse_3(clientList); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, const chip::app::DataModel::DecodableList & partsList) @@ -65408,7 +71051,11 @@ class TestDescriptorCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1( const chip::app::DataModel::DecodableList & deviceList) @@ -65435,7 +71082,11 @@ class TestDescriptorCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(const chip::app::DataModel::DecodableList & serverList) { @@ -65506,7 +71157,11 @@ class TestDescriptorCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(const chip::app::DataModel::DecodableList & clientList) { @@ -65531,7 +71186,11 @@ class TestDescriptorCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(const chip::app::DataModel::DecodableList & partsList) { @@ -65616,23 +71275,23 @@ class TestBasicInformation : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context) { (static_cast(context))->OnSuccessResponse_2(); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, const chip::app::DataModel::DecodableList & attributeList) @@ -65664,7 +71323,11 @@ class TestBasicInformation : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -65682,7 +71345,11 @@ class TestBasicInformation : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2() { NextTest(); } @@ -65697,7 +71364,11 @@ class TestBasicInformation : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(const chip::app::DataModel::DecodableList & attributeList) { @@ -65834,15 +71505,19 @@ class TestIdentifyCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } }; @@ -65997,15 +71672,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(data.status, data.groupId, data.groupName); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { @@ -66028,15 +71707,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_2(data.status, data.groupId, data.groupName); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_2(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_2(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { @@ -66060,15 +71743,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_3(data.status, data.groupId); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_3(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_3(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t status, uint16_t groupId) { @@ -66091,15 +71778,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_4(data.status, data.groupId, data.groupName); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { @@ -66124,15 +71815,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_5(data.status, data.groupId, data.groupName); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { @@ -66156,15 +71851,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_6(data.capacity, data.groupList); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_6(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(uint8_t capacity, const chip::app::DataModel::DecodableList & groupList) { @@ -66192,15 +71891,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_7(data.status, data.groupId, data.groupName); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_7(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_7(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { @@ -66223,15 +71926,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_8(data.status, data.groupId, data.groupName); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_8(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_8(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_8(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { @@ -66256,15 +71963,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_9(data.status, data.groupId); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_9(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_9(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_9(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_9(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_9(uint8_t status, uint16_t groupId) { @@ -66287,15 +71998,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_10(data.status, data.groupId); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_10(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_10(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_10(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_10(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_10(uint8_t status, uint16_t groupId) { @@ -66318,15 +72033,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_11(data.status, data.groupId, data.groupName); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_11(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_11(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_11(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_11(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_11(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { @@ -66351,15 +72070,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_12(data.status, data.groupId, data.groupName); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_12(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_12(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_12(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_12(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_12(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { @@ -66388,15 +72111,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_13(data.capacity, data.groupList); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_13(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_13(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_13(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_13(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_13(uint8_t capacity, const chip::app::DataModel::DecodableList & groupList) { @@ -66423,15 +72150,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_14(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_14(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_14(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_14(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_14(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_14() { NextTest(); } @@ -66447,15 +72178,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_15(data.status, data.groupId, data.groupName); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_15(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_15(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_15(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_15(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_15(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { @@ -66478,15 +72213,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_16(data.status, data.groupId, data.groupName); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_16(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_16(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_16(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_16(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_16(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { @@ -66509,15 +72248,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_17(data.status, data.groupId, data.groupName); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_17(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_17(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_17(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_17(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_17(uint8_t status, uint16_t groupId, chip::CharSpan groupName) { @@ -66547,15 +72290,19 @@ class TestGroupsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_18(data.capacity, data.groupList); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_18(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_18(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_18(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_18(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_18(uint8_t capacity, const chip::app::DataModel::DecodableList & groupList) { @@ -66634,9 +72381,9 @@ class TestGroupKeyManagementCluster : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint16_t maxGroupsPerFabric) @@ -66644,9 +72391,9 @@ class TestGroupKeyManagementCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(maxGroupsPerFabric); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint16_t maxGroupKeysPerFabric) @@ -66676,7 +72423,11 @@ class TestGroupKeyManagementCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint16_t maxGroupsPerFabric) { @@ -66697,7 +72448,11 @@ class TestGroupKeyManagementCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint16_t maxGroupKeysPerFabric) { @@ -66775,9 +72530,9 @@ class TestOperationalCredentialsCluster : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint8_t supportedFabrics) @@ -66785,9 +72540,9 @@ class TestOperationalCredentialsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(supportedFabrics); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t commissionedFabrics) @@ -66795,9 +72550,9 @@ class TestOperationalCredentialsCluster : public TestCommand (static_cast(context))->OnSuccessResponse_2(commissionedFabrics); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, chip::FabricIndex currentFabricIndex) @@ -66827,7 +72582,11 @@ class TestOperationalCredentialsCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t supportedFabrics) { @@ -66848,7 +72607,11 @@ class TestOperationalCredentialsCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t commissionedFabrics) { @@ -66869,7 +72632,11 @@ class TestOperationalCredentialsCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(chip::FabricIndex currentFabricIndex) { @@ -66967,9 +72734,9 @@ class TestModeSelectCluster : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint8_t currentMode) @@ -66977,9 +72744,9 @@ class TestModeSelectCluster : public TestCommand (static_cast(context))->OnSuccessResponse_1(currentMode); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint8_t onMode) @@ -66987,9 +72754,9 @@ class TestModeSelectCluster : public TestCommand (static_cast(context))->OnSuccessResponse_2(onMode); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint8_t startUpMode) @@ -66997,9 +72764,9 @@ class TestModeSelectCluster : public TestCommand (static_cast(context))->OnSuccessResponse_3(startUpMode); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, chip::CharSpan description) @@ -67007,9 +72774,9 @@ class TestModeSelectCluster : public TestCommand (static_cast(context))->OnSuccessResponse_4(description); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5( @@ -67020,9 +72787,9 @@ class TestModeSelectCluster : public TestCommand (static_cast(context))->OnSuccessResponse_5(supportedModes); } - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, uint8_t currentMode) @@ -67051,7 +72818,11 @@ class TestModeSelectCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1(uint8_t currentMode) { @@ -67071,7 +72842,11 @@ class TestModeSelectCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(uint8_t onMode) { @@ -67091,7 +72866,11 @@ class TestModeSelectCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(uint8_t startUpMode) { @@ -67111,7 +72890,11 @@ class TestModeSelectCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(chip::CharSpan description) { @@ -67131,7 +72914,11 @@ class TestModeSelectCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5( const chip::app::DataModel::DecodableList & @@ -67170,15 +72957,19 @@ class TestModeSelectCluster : public TestCommand (static_cast(context))->OnSuccessResponse_6(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_6(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6() { NextTest(); } @@ -67193,7 +72984,11 @@ class TestModeSelectCluster : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(uint8_t currentMode) { @@ -67214,17 +73009,18 @@ class TestModeSelectCluster : public TestCommand (static_cast(context))->OnSuccessResponse_8(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_8(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_8(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_8(EmberAfStatus status) + void OnFailureResponse_8(CHIP_ERROR error) { - VerifyOrReturn(CheckValue("status", status, EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); + chip::app::StatusIB status(error); + VerifyOrReturn(CheckValue("status", chip::to_underlying(status.mStatus), EMBER_ZCL_STATUS_CONSTRAINT_ERROR)); NextTest(); } @@ -67313,16 +73109,16 @@ class TestGroupMessaging : public TestCommand static void OnDoneCallback_1(void * context) { (static_cast(context))->OnDoneResponse_1(); } - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context) { (static_cast(context))->OnSuccessResponse_1(); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, chip::CharSpan location) @@ -67332,16 +73128,16 @@ class TestGroupMessaging : public TestCommand static void OnDoneCallback_3(void * context) { (static_cast(context))->OnDoneResponse_3(); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context) { (static_cast(context))->OnSuccessResponse_3(); } - static void OnFailureCallback_4(void * context, EmberAfStatus status) + static void OnFailureCallback_4(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_4(status); + (static_cast(context))->OnFailureResponse_4(error); } static void OnSuccessCallback_4(void * context, chip::CharSpan location) @@ -67349,9 +73145,9 @@ class TestGroupMessaging : public TestCommand (static_cast(context))->OnSuccessResponse_4(location); } - static void OnFailureCallback_6(void * context, EmberAfStatus status) + static void OnFailureCallback_6(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_6(status); + (static_cast(context))->OnFailureResponse_6(error); } static void OnSuccessCallback_6(void * context, bool onOff) @@ -67383,7 +73179,11 @@ class TestGroupMessaging : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -67400,7 +73200,11 @@ class TestGroupMessaging : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(chip::CharSpan location) { @@ -67423,7 +73227,11 @@ class TestGroupMessaging : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3() { NextTest(); } @@ -67440,7 +73248,11 @@ class TestGroupMessaging : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4(chip::CharSpan location) { @@ -67460,8 +73272,8 @@ class TestGroupMessaging : public TestCommand (static_cast(context))->OnSuccessResponse_5(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_5(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_5(error); }; auto done = [](void * context) { (static_cast(context))->OnDoneResponse_5(); }; @@ -67471,7 +73283,11 @@ class TestGroupMessaging : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5() { NextTest(); } @@ -67488,7 +73304,11 @@ class TestGroupMessaging : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6(bool onOff) { @@ -67576,9 +73396,9 @@ class Test_TC_SWDIAG_1_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint64_t currentHeapFree) @@ -67586,9 +73406,9 @@ class Test_TC_SWDIAG_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(currentHeapFree); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint64_t currentHeapUsed) @@ -67596,9 +73416,9 @@ class Test_TC_SWDIAG_1_1 : public TestCommand (static_cast(context))->OnSuccessResponse_2(currentHeapUsed); } - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, uint64_t currentHeapHighWatermark) @@ -67627,9 +73447,10 @@ class Test_TC_SWDIAG_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) + void OnFailureResponse_1(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_1(uint64_t currentHeapFree) @@ -67649,9 +73470,10 @@ class Test_TC_SWDIAG_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_2(uint64_t currentHeapUsed) @@ -67672,9 +73494,10 @@ class Test_TC_SWDIAG_1_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) + void OnFailureResponse_3(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_3(uint64_t currentHeapHighWatermark) @@ -67815,9 +73638,9 @@ class Test_TC_SWDIAG_3_1 : public TestCommand chip::Optional mCluster; chip::Optional mEndpoint; - static void OnFailureCallback_1(void * context, EmberAfStatus status) + static void OnFailureCallback_1(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_1(status); + (static_cast(context))->OnFailureResponse_1(error); } static void OnSuccessCallback_1(void * context, uint64_t currentHeapUsed) @@ -67825,9 +73648,9 @@ class Test_TC_SWDIAG_3_1 : public TestCommand (static_cast(context))->OnSuccessResponse_1(currentHeapUsed); } - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, uint64_t currentHeapHighWatermark) @@ -67856,9 +73679,10 @@ class Test_TC_SWDIAG_3_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) + void OnFailureResponse_1(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_1(uint64_t currentHeapUsed) @@ -67880,9 +73704,10 @@ class Test_TC_SWDIAG_3_1 : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_2(EmberAfStatus status) + void OnFailureResponse_2(CHIP_ERROR error) { - (status == EMBER_ZCL_STATUS_UNSUPPORTED_ATTRIBUTE) ? NextTest() : ThrowFailureResponse(); + chip::app::StatusIB status(error); + (status.mStatus == chip::Protocols::InteractionModel::Status::UnsupportedAttribute) ? NextTest() : ThrowFailureResponse(); } void OnSuccessResponse_2(uint64_t currentHeapHighWatermark) @@ -67980,9 +73805,9 @@ class TestSubscribe_OnOff : public TestCommand typedef void (*Test_TestSubscribe_OnOff_OnOff_ReportCallback)(void * context, bool value); Test_TestSubscribe_OnOff_OnOff_ReportCallback mTest_TestSubscribe_OnOff_OnOff_Reported = nullptr; - static void OnFailureCallback_2(void * context, EmberAfStatus status) + static void OnFailureCallback_2(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_2(status); + (static_cast(context))->OnFailureResponse_2(error); } static void OnSuccessCallback_2(void * context, bool onOff) @@ -67992,9 +73817,9 @@ class TestSubscribe_OnOff : public TestCommand bool mReceivedReport_2 = false; - static void OnFailureCallback_3(void * context, EmberAfStatus status) + static void OnFailureCallback_3(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_3(status); + (static_cast(context))->OnFailureResponse_3(error); } static void OnSuccessCallback_3(void * context, bool onOff) @@ -68007,9 +73832,9 @@ class TestSubscribe_OnOff : public TestCommand (static_cast(context))->OnSubscriptionEstablishedResponse_3(); } - static void OnFailureCallback_5(void * context, EmberAfStatus status) + static void OnFailureCallback_5(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_5(status); + (static_cast(context))->OnFailureResponse_5(error); } static void OnSuccessCallback_5(void * context, bool onOff) @@ -68019,9 +73844,9 @@ class TestSubscribe_OnOff : public TestCommand bool mReceivedReport_5 = false; - static void OnFailureCallback_7(void * context, EmberAfStatus status) + static void OnFailureCallback_7(void * context, CHIP_ERROR error) { - (static_cast(context))->OnFailureResponse_7(status); + (static_cast(context))->OnFailureResponse_7(error); } static void OnSuccessCallback_7(void * context, bool onOff) @@ -68052,15 +73877,19 @@ class TestSubscribe_OnOff : public TestCommand (static_cast(context))->OnSuccessResponse_1(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_1(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_1(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_1(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_1(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_1() { NextTest(); } @@ -68074,7 +73903,11 @@ class TestSubscribe_OnOff : public TestCommand return WaitForMs(0); } - void OnFailureResponse_2(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_2(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_2(bool onOff) { @@ -68099,7 +73932,11 @@ class TestSubscribe_OnOff : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_3(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_3(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_3(bool value) { @@ -68128,15 +73965,19 @@ class TestSubscribe_OnOff : public TestCommand (static_cast(context))->OnSuccessResponse_4(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_4(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_4(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_4(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_4(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_4() { NextTest(); } @@ -68150,7 +73991,11 @@ class TestSubscribe_OnOff : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_5(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_5(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_5(bool onOff) { @@ -68172,15 +74017,19 @@ class TestSubscribe_OnOff : public TestCommand (static_cast(context))->OnSuccessResponse_6(); }; - auto failure = [](void * context, EmberAfStatus status) { - (static_cast(context))->OnFailureResponse_6(status); + auto failure = [](void * context, CHIP_ERROR error) { + (static_cast(context))->OnFailureResponse_6(error); }; ReturnErrorOnFailure(chip::Controller::InvokeCommand(mDevices[kIdentityAlpha], this, success, failure, endpoint, request)); return CHIP_NO_ERROR; } - void OnFailureResponse_6(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_6(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_6() { NextTest(); } @@ -68194,7 +74043,11 @@ class TestSubscribe_OnOff : public TestCommand return CHIP_NO_ERROR; } - void OnFailureResponse_7(EmberAfStatus status) { ThrowFailureResponse(); } + void OnFailureResponse_7(CHIP_ERROR error) + { + chip::app::StatusIB status(error); + ThrowFailureResponse(); + } void OnSuccessResponse_7(bool onOff) {