Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make global attributes be part of IM instead of part of DataModel::Provider #37345

Merged
merged 56 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
013100b
A first pass to add global attributes as part of IME instead of datam…
andreilitvin Jan 30, 2025
173da0c
Some updates
andreilitvin Jan 30, 2025
0fddf7f
Update some tests and reformat... the checks were PAINFUL,kept debug …
andreilitvin Jan 30, 2025
427ff9e
Merge branch 'master' into global_attributes_in_im
andreilitvin Jan 31, 2025
f008db3
Bump test: we now support the extra 3 global attributes not in metadata
andreilitvin Jan 31, 2025
f56ae26
More fixes
andreilitvin Jan 31, 2025
94b4cf5
Fix compile error about parameter shadowing
andreilitvin Jan 31, 2025
4e0d04e
More updates on casts to make xtensa compile happy
andreilitvin Jan 31, 2025
1fe7070
Restyled by clang-format
restyled-commits Jan 31, 2025
e2750ff
Merge branch 'master' into global_attributes_in_im
andy31415 Jan 31, 2025
9c32f09
Fix tests
andy31415 Jan 31, 2025
8a323b9
Make the test for unsupported write consistent with #37322
andy31415 Jan 31, 2025
f4e581b
Fix includes
andy31415 Jan 31, 2025
ce64940
Smaller delta
andy31415 Jan 31, 2025
058fcf2
Attribute metadata is now guaranteed
andy31415 Jan 31, 2025
90be6d7
Update src/app/data-model-provider/MetadataLookup.h
andy31415 Feb 3, 2025
86caf37
Update src/app/data-model-provider/MetadataLookup.h
andy31415 Feb 3, 2025
bf441c4
Update src/app/reporting/Engine.cpp
andy31415 Feb 3, 2025
00fea8e
Update src/app/reporting/Engine.cpp
andy31415 Feb 3, 2025
f82d943
Address some code review comments
andy31415 Feb 3, 2025
db8d178
Merge branch 'global_attributes_in_im' of github.com:andy31415/connec…
andy31415 Feb 3, 2025
0e22237
Merge branch 'master' into global_attributes_in_im
andy31415 Feb 3, 2025
4b4d018
Remove the ember metadata public cluster path validation as it is not…
andy31415 Feb 3, 2025
9f5f7c8
Do not enforce ordering in attribute list encoding
andy31415 Feb 3, 2025
c70c064
Comment about items returned or not returned in various calls
andy31415 Feb 3, 2025
e22bb17
Correct the unsupported attribute call
andy31415 Feb 3, 2025
39840fe
Restyle
andy31415 Feb 3, 2025
5dff4c1
Update order dependent test in java ... this is somewhat broken...
andy31415 Feb 3, 2025
8efee99
Fix indent
andy31415 Feb 3, 2025
67adc00
Fix include
andy31415 Feb 3, 2025
3380875
Fix typo
andy31415 Feb 3, 2025
2d164c6
Allow TODO comment: I am not willing to re-build the kotlin code righ…
andy31415 Feb 3, 2025
874e752
Using uint64_t for encoding saves some flash
andy31415 Feb 3, 2025
077d30c
Fix test ... although this is NOT ok as we need order independent test
andy31415 Feb 3, 2025
4729074
Fix the real list now
andy31415 Feb 3, 2025
26e33d8
Switch the basic information constraints as a set compare (use python)
andy31415 Feb 3, 2025
18d6907
Remove extra space
andy31415 Feb 3, 2025
9125daf
Restyled by prettier-yaml
restyled-commits Feb 3, 2025
9435555
Fix asserts in DGWIFI - wrong method used
andy31415 Feb 4, 2025
5820b67
Restyled by autopep8
restyled-commits Feb 4, 2025
6631a8a
Update src/app/data-model-provider/Provider.h
andy31415 Feb 4, 2025
c670f76
Update src/app/data-model-provider/ProviderMetadataTree.h
andy31415 Feb 4, 2025
a05ea65
Update src/data-model-providers/codegen/CodegenDataModelProvider_Writ…
andy31415 Feb 4, 2025
297a97f
Update src/app/data-model-provider/ProviderMetadataTree.h
andy31415 Feb 4, 2025
57c72d8
Undo DFWIFI changes, leave it up to #37382.
andreilitvin Feb 4, 2025
a622761
Merge branch 'master' into global_attributes_in_im
andreilitvin Feb 4, 2025
4bfb623
Merge branch 'global_attributes_in_im' of github.com:andy31415/connec…
andreilitvin Feb 4, 2025
352cf85
Update ordering of attribute list to match unsorted (and smaller) imp…
andreilitvin Feb 4, 2025
6163c12
Update src/app/GlobalAttributes.cpp
andy31415 Feb 5, 2025
c1f391d
Update src/app/GlobalAttributes.h
andy31415 Feb 5, 2025
81fadbb
Add comment about oddify in path validation
andy31415 Feb 5, 2025
7ce7df6
Added comments about why we do the casts ... it is ugly
andy31415 Feb 5, 2025
66176c7
Merge branch 'master' into global_attributes_in_im
andy31415 Feb 5, 2025
6495f1c
Add integration test for writing read only attributes and getting the…
andy31415 Feb 5, 2025
dfbc645
Restyled by isort
restyled-commits Feb 5, 2025
dae906e
Fix unused imports
andy31415 Feb 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ jobs:
--known-failure app/util/config.h \
--known-failure app/util/DataModelHandler.cpp \
--known-failure app/util/DataModelHandler.h \
--known-failure app/util/ember-global-attribute-access-interface.h \
--known-failure app/util/ember-io-storage.h \
--known-failure app/util/endpoint-config-api.h \
--known-failure app/util/generic-callbacks.h \
Expand All @@ -133,7 +132,6 @@ jobs:
# for them. Keeping them as a list as they still need review ...
# --known-failure app/util/attribute-table.cpp \
# --known-failure app/util/ember-io-storage.cpp \
# --known-failure app/util/ember-global-attribute-access-interface.cpp \
# --known-failure app/util/attribute-storage.cpp \
- name: Check for matter lint errors
if: always()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ class PairOnNetworkLongImReadCommand(
event.getJson().toString() == """{"0:STRUCT":{"0:UINT":1}}"""

fun checkAllAttributesJsonForFixedLabel(cluster: String): Boolean {
// TODO: this hard-codes the array and as a result it is order-dependend. This should
// be changed to be order-independent.
val expected =
"""{"65528:ARRAY-?":[],"0:ARRAY-STRUCT":[{"0:STRING":"room","1:STRING":"bedroom 2"},""" +
"""{"0:STRING":"orientation","1:STRING":"North"},{"0:STRING":"floor","1:STRING":"2"},""" +
"""{"0:STRING":"direction","1:STRING":"up"}],"65531:ARRAY-UINT":[0,65528,65529,65531,65532,65533],""" +
"""{"0:STRING":"direction","1:STRING":"up"}],"65531:ARRAY-UINT":[0,65532,65533,65528,65529,65531],""" +
""""65533:UINT":1,"65529:ARRAY-?":[],"65532:UINT":0}"""
return cluster.equals(expected)
}
Expand Down
1 change: 1 addition & 0 deletions kotlin-detect-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ style:
- "**/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/MultiAdminClientFragment.kt"
- "**/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/clusterinteraction/ClusterInteractionFragment.kt"
- "**/examples/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/provisioning/AddressCommissioningFragment.kt"
- "**/examples/java-matter-controller/java/src/com/matter/controller/commands/pairing/PairOnNetworkLongImReadCommand.kt"
- "**/src/controller/java/src/matter/onboardingpayload/QRCodeOnboardingPayloadParser.kt"
ExplicitItLambdaParameter:
excludes:
Expand Down
6 changes: 3 additions & 3 deletions scripts/build_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ if [ "$skip_gn" == false ]; then
fi

mkdir -p "$COVERAGE_ROOT"
lcov --initial --capture --directory "$OUTPUT_ROOT/obj/src" --exclude="$PWD"/zzz_generated/* --exclude="$PWD"/third_party/* --exclude=/usr/include/* --output-file "$COVERAGE_ROOT/lcov_base.info"
lcov --capture --directory "$OUTPUT_ROOT/obj/src" --exclude="$PWD"/zzz_generated/* --exclude="$PWD"/third_party/* --exclude=/usr/include/* --output-file "$COVERAGE_ROOT/lcov_test.info"
lcov --add-tracefile "$COVERAGE_ROOT/lcov_base.info" --add-tracefile "$COVERAGE_ROOT/lcov_test.info" --output-file "$COVERAGE_ROOT/lcov_final.info"
lcov --initial --capture --ignore-errors inconsistent --directory "$OUTPUT_ROOT/obj/src" --exclude="$PWD"/zzz_generated/* --exclude="$PWD"/third_party/* --exclude=/usr/include/* --output-file "$COVERAGE_ROOT/lcov_base.info"
lcov --capture --ignore-errors inconsistent --directory "$OUTPUT_ROOT/obj/src" --exclude="$PWD"/zzz_generated/* --exclude="$PWD"/third_party/* --exclude=/usr/include/* --output-file "$COVERAGE_ROOT/lcov_test.info"
lcov --ignore-errors inconsistent --add-tracefile "$COVERAGE_ROOT/lcov_base.info" --add-tracefile "$COVERAGE_ROOT/lcov_test.info" --output-file "$COVERAGE_ROOT/lcov_final.info"
genhtml "$COVERAGE_ROOT/lcov_final.info" --output-directory "$COVERAGE_ROOT/html" --title "SHA:$(git rev-parse HEAD)" --header-title "Matter SDK Coverage Report"

# Copy webapp's YAML file to the coverage output directory
Expand Down
8 changes: 6 additions & 2 deletions src/app/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,22 @@ source_set("paths") {
"${chip_root}/src/app/util:types",
"${chip_root}/src/lib/core",
"${chip_root}/src/lib/core:types",
"${chip_root}/src/lib/support",
]
}

source_set("global-attributes") {
sources = [ "GlobalAttributes.h" ]
sources = [
"GlobalAttributes.cpp",
"GlobalAttributes.h",
]

# This also depends on zap-generated code which is currently impossible to split out
# as a dependency
public_deps = [
":app_config",
"${chip_root}/src/app/common:ids",
"${chip_root}/src/app/data-model-provider",
"${chip_root}/src/lib/support",
]
}
Expand Down Expand Up @@ -263,7 +268,6 @@ static_library("interaction-model") {
# We likely should formalize and change this with a proper DataModel::Provider that
# is consistent instead
sources += [
"${chip_root}/src/app/util/ember-global-attribute-access-interface.cpp",
"${chip_root}/src/app/util/ember-io-storage.cpp",
"dynamic_server/DynamicDispatcher.cpp",
]
Expand Down
132 changes: 132 additions & 0 deletions src/app/GlobalAttributes.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
/*
* Copyright (c) 2022-2025 Project CHIP Authors
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <app/GlobalAttributes.h>
#include <app/data-model-provider/MetadataLookup.h>
#include <protocols/interaction_model/StatusCode.h>

using chip::Protocols::InteractionModel::Status;

namespace chip {
namespace app {

bool IsSupportedGlobalAttributeNotInMetadata(AttributeId attributeId)
{
for (auto & attr : GlobalAttributesNotInMetadata)
{
if (attr == attributeId)
{
return true;
}
}

return false;
}

DataModel::ActionReturnStatus ReadGlobalAttributeFromMetadata(DataModel::Provider * provider, const ConcreteAttributePath & path,
AttributeValueEncoder & encoder)
{
CHIP_ERROR err;

switch (path.mAttributeId)
{
case Clusters::Globals::Attributes::GeneratedCommandList::Id: {
DataModel::ListBuilder<CommandId> builder;
err = provider->GeneratedCommands(path, builder);
if (err != CHIP_NO_ERROR)
{
break;
}
auto buffer = builder.TakeBuffer();

return encoder.EncodeList([&buffer](const auto & listEncodeHelper) {
for (auto id : buffer)
{
// NOTE: cast to u64 because TLV encodes all numbers the same (no TLV sideffects)
// and this reduces template variants for Encode, saving flash.
ReturnErrorOnFailure(listEncodeHelper.Encode(static_cast<uint64_t>(id)));
andy31415 marked this conversation as resolved.
Show resolved Hide resolved
}
return CHIP_NO_ERROR;
});
}
case Clusters::Globals::Attributes::AcceptedCommandList::Id: {
DataModel::ListBuilder<DataModel::AcceptedCommandEntry> builder;
err = provider->AcceptedCommands(path, builder);
if (err != CHIP_NO_ERROR)
{
break;
}
auto buffer = builder.TakeBuffer();

return encoder.EncodeList([&buffer](const auto & listEncodeHelper) {
for (auto entry : buffer)
{
// NOTE: cast to u64 because TLV encodes all numbers the same (no TLV sideffects)
// and this reduces template variants for Encode, saving flash.
ReturnErrorOnFailure(listEncodeHelper.Encode(static_cast<uint64_t>(entry.commandId)));
}
return CHIP_NO_ERROR;
});
}
case Clusters::Globals::Attributes::AttributeList::Id: {
DataModel::ListBuilder<DataModel::AttributeEntry> builder;
err = provider->Attributes(path, builder);
if (err != CHIP_NO_ERROR)
{
break;
}
auto buffer = builder.TakeBuffer();

return encoder.EncodeList([&buffer](const auto & listEncodeHelper) {
for (auto entry : buffer)
{
// NOTE: cast to u64 because TLV encodes all numbers the same (no TLV sideffects)
// and this reduces template variants for Encode, saving flash.
ReturnErrorOnFailure(listEncodeHelper.Encode(static_cast<uint64_t>(entry.attributeId)));
}

for (auto id : GlobalAttributesNotInMetadata)
{
// NOTE: cast to u64 because TLV encodes all numbers the same (no TLV sideffects)
// and this reduces template variants for Encode, saving flash.
ReturnErrorOnFailure(listEncodeHelper.Encode(static_cast<uint64_t>(id)));
}

return CHIP_NO_ERROR;
});
}
default:
return CHIP_ERROR_INVALID_ARGUMENT;
}

// if we get here, the path was NOT valid
if (err == CHIP_ERROR_NOT_FOUND)
{
// The `Failure` here is arbitrary: we expect ReadGlobalAttributeFromMetadata to be
// an internal API used for global attributes only and call preconditions say that
// should never happen.
//
// Code only takes this path if one of
// `GeneratedCommands`/`AcceptedCommands`/`Attribute` return a NOT_FOUND and
// that would indicate an invalid cluster (which should have been pre-validated by
// the caller).
return DataModel::ValidateClusterPath(provider, path, Status::Failure);
andy31415 marked this conversation as resolved.
Show resolved Hide resolved
}
return err;
}

} // namespace app
} // namespace chip
28 changes: 16 additions & 12 deletions src/app/GlobalAttributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@

#include <app-common/zap-generated/ids/Attributes.h>
#include <app/AppConfig.h>
#include <app/AttributeValueEncoder.h>
#include <app/ConcreteAttributePath.h>
#include <app/data-model-provider/ActionReturnStatus.h>
#include <app/data-model-provider/Provider.h>
#include <lib/core/DataModelTypes.h>
#include <lib/support/CodeUtils.h>

namespace chip {
Expand All @@ -37,18 +42,17 @@ constexpr AttributeId GlobalAttributesNotInMetadata[] = {

static_assert(ArrayIsSorted(GlobalAttributesNotInMetadata), "Array of global attribute ids must be sorted");

inline bool IsSupportedGlobalAttributeNotInMetadata(AttributeId attributeId)
{
for (auto & attr : GlobalAttributesNotInMetadata)
{
if (attr == attributeId)
{
return true;
}
}

return false;
}
bool IsSupportedGlobalAttributeNotInMetadata(AttributeId attributeId);

/**
* Reads a `IsSupportedGlobalAttributeNotInMetadata` attribute into `encoder`.
*
* Preconditions:
* - `path` MUST be a valid cluster path inside `provider` and its mAttributeID
* MUST be `IsSupportedGlobalAttributeNotInMetadata`
*/
DataModel::ActionReturnStatus ReadGlobalAttributeFromMetadata(DataModel::Provider * provider, const ConcreteAttributePath & path,
AttributeValueEncoder & encoder);

} // namespace app
} // namespace chip
1 change: 0 additions & 1 deletion src/app/chip_data_model.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ function(chip_configure_data_model APP_TARGET)
${CHIP_APP_BASE_DIR}/util/attribute-table.cpp
${CHIP_APP_BASE_DIR}/util/binding-table.cpp
${CHIP_APP_BASE_DIR}/util/DataModelHandler.cpp
${CHIP_APP_BASE_DIR}/util/ember-global-attribute-access-interface.cpp
${CHIP_APP_BASE_DIR}/util/ember-io-storage.cpp
${CHIP_APP_BASE_DIR}/util/generic-callback-stubs.cpp
${CHIP_APP_BASE_DIR}/util/privilege-storage.cpp
Expand Down
1 change: 0 additions & 1 deletion src/app/chip_data_model.gni
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ template("chip_data_model") {
"${_app_root}/util/DataModelHandler.cpp",
"${_app_root}/util/attribute-storage.cpp",
"${_app_root}/util/attribute-table.cpp",
"${_app_root}/util/ember-global-attribute-access-interface.cpp",
"${_app_root}/util/ember-io-storage.cpp",
"${_app_root}/util/util.cpp",
]
Expand Down
21 changes: 21 additions & 0 deletions src/app/data-model-provider/MetadataLookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,27 @@ std::optional<EndpointEntry> EndpointFinder::Find(EndpointId endpointId)
return std::nullopt;
}

Protocols::InteractionModel::Status ValidateClusterPath(ProviderMetadataTree * provider, const ConcreteClusterPath & path,
andy31415 marked this conversation as resolved.
Show resolved Hide resolved
Protocols::InteractionModel::Status successStatus)
{
if (ServerClusterFinder(provider).Find(path).has_value())
{
return successStatus;
}

auto endpoints = provider->EndpointsIgnoreError();
for (auto & endpointEntry : endpoints)
{
if (endpointEntry.id == path.mEndpointId)
{
// endpoint is valid
return Protocols::InteractionModel::Status::UnsupportedCluster;
}
}

return Protocols::InteractionModel::Status::UnsupportedEndpoint;
}

} // namespace DataModel
} // namespace app
} // namespace chip
8 changes: 8 additions & 0 deletions src/app/data-model-provider/MetadataLookup.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ class EndpointFinder
ReadOnlyBuffer<EndpointEntry> mEndpoints;
};

/// Validates that the cluster identified by `path` exists within the given provider.
/// If the endpoint does not exist, will return Status::UnsupportedEndpoint.
/// If the endpoint exists but does not have the cluster identified by the path, will return Status::UnsupportedCluster.
andy31415 marked this conversation as resolved.
Show resolved Hide resolved
///
/// Otherwise, will return successStatus.
Protocols::InteractionModel::Status ValidateClusterPath(ProviderMetadataTree * provider, const ConcreteClusterPath & path,
Protocols::InteractionModel::Status successStatus);

} // namespace DataModel
} // namespace app
} // namespace chip
8 changes: 6 additions & 2 deletions src/app/data-model-provider/Provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ class Provider : public ProviderMetadataTree
// event emitting, path marking and other operations
virtual InteractionModelContext CurrentContext() const { return mContext; }

/// TEMPORARY/TRANSITIONAL requirement for transitioning from ember-specific code
/// ReadAttribute is REQUIRED to respond to GlobalAttribute read requests
/// NOTE: this code is NOT required to handle `List` global attributes:
/// AcceptedCommandsList, GeneratedCommandsList OR AttributeList
///
/// Users of DataModel::Provider are expected to get these lists
/// from ProviderMetadataTree (in particular IM Reads of these
/// attributes will the automatically filled from metadata).
///
/// Return value notes:
/// ActionReturnStatus::IsOutOfSpaceEncodingResponse
Expand Down
8 changes: 8 additions & 0 deletions src/app/data-model-provider/ProviderMetadataTree.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ class ProviderMetadataTree
virtual CHIP_ERROR ClientClusters(EndpointId endpointId, ListBuilder<ClusterId> & builder) = 0;
virtual CHIP_ERROR ServerClusters(EndpointId endpointId, ListBuilder<ServerClusterEntry> & builder) = 0;

/// Attribute lists contain all attributes EXCEPT the list attributes that
/// are part of metadata. The output from this method MUST NOT contain:
/// - AttributeList::Id
/// - AcceptedCommandList::Id
/// - GeneratedCommandList::Id
/// However it MUST ALWAYS contain:
/// - ClusterRevision::Id
/// - FeatureMap::Id
virtual CHIP_ERROR Attributes(const ConcreteClusterPath & path, ListBuilder<AttributeEntry> & builder) = 0;
virtual CHIP_ERROR GeneratedCommands(const ConcreteClusterPath & path, ListBuilder<CommandId> & builder) = 0;
virtual CHIP_ERROR AcceptedCommands(const ConcreteClusterPath & path, ListBuilder<AcceptedCommandEntry> & builder) = 0;
Expand Down
12 changes: 12 additions & 0 deletions src/app/data-model-provider/StringBuilderAdapters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,15 @@ StatusWithSize ToString<chip::app::DataModel::ActionReturnStatus>(const chip::ap
}

} // namespace pw
//
#if CHIP_CONFIG_TEST_GOOGLETEST
namespace chip {

void PrintTo(const chip::app::DataModel::ActionReturnStatus & status, std::ostream * os)
{
chip::app::DataModel::ActionReturnStatus::StringStorage storage;
*os << "ActionReturnStatus<" << status.c_str(storage) << ">";
}

} // namespace chip
#endif // CHIP_CONFIG_TEST_GOOGLETEST
9 changes: 9 additions & 0 deletions src/app/data-model-provider/StringBuilderAdapters.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
/// which is not as helpful as a full formatted output.

#include <pw_string/string_builder.h>
#include <pw_unit_test/framework.h>

#include <app/data-model-provider/ActionReturnStatus.h>

Expand All @@ -44,3 +45,11 @@ StatusWithSize ToString<chip::app::DataModel::ActionReturnStatus>(const chip::ap
pw::span<char> buffer);

} // namespace pw

#if CHIP_CONFIG_TEST_GOOGLETEST
namespace chip {

void PrintTo(const chip::app::DataModel::ActionReturnStatus & status, std::ostream * os);

} // namespace chip
#endif // CHIP_CONFIG_TEST_GOOGLETEST
Loading
Loading