Skip to content

Commit

Permalink
Renamed TestOperationlStateDelegate to TestOperationalStateClusterObj…
Browse files Browse the repository at this point in the history
…ects.
  • Loading branch information
hicklin committed Aug 3, 2023
1 parent 16608a9 commit 1338948
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include <app/util/af-enums.h>
#include <lib/support/CommonIterator.h>

#include <utility>

namespace chip {
namespace app {
namespace Clusters {
Expand All @@ -39,7 +41,7 @@ struct GenericOperationalState : public app::Clusters::detail::Structs::Operatio
{
GenericOperationalState(uint8_t state = to_underlying(OperationalStateEnum::kStopped), Optional<CharSpan> label = NullOptional)
{
Set(state, label);
Set(state, std::move(label));
}

GenericOperationalState(const GenericOperationalState & op) { *this = op; }
Expand Down Expand Up @@ -85,7 +87,7 @@ struct GenericOperationalError : public app::Clusters::detail::Structs::ErrorSta
GenericOperationalError(uint8_t state, Optional<chip::CharSpan> label = NullOptional,
Optional<chip::CharSpan> details = NullOptional)
{
Set(state, label, details);
Set(state, std::move(label), std::move(details));
}

GenericOperationalError(const GenericOperationalError & error) { *this = error; }
Expand Down Expand Up @@ -148,7 +150,7 @@ struct GenericOperationalError : public app::Clusters::detail::Structs::ErrorSta
*/
struct GenericOperationalPhase
{
GenericOperationalPhase(app::DataModel::Nullable<CharSpan> name) { Set(name); }
GenericOperationalPhase(app::DataModel::Nullable<CharSpan> name) { Set(std::move(name)); }

GenericOperationalPhase(const GenericOperationalPhase & ph) { *this = ph; }

Expand Down
4 changes: 2 additions & 2 deletions src/app/tests/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ source_set("scenes-table-test-srcs") {

source_set("operational-state-test-srcs") {
sources = [
"${chip_root}/src/app/clusters/operational-state-server/operational-state-server.h",
"${chip_root}/src/app/clusters/operational-state-server/operational-state-cluster-objects.h",
]

public_deps = [
Expand Down Expand Up @@ -133,7 +133,7 @@ chip_test_suite("tests") {
"TestInteractionModelEngine.cpp",
"TestMessageDef.cpp",
"TestNumericAttributeTraits.cpp",
"TestOperationalStateDelegate.cpp",
"TestOperationalStateClusterObjects.cpp",
"TestPendingNotificationMap.cpp",
"TestReadInteraction.cpp",
"TestReportingEngine.cpp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -579,13 +579,13 @@ int TestTearDown(void * inContext)

} // namespace

int TestOperationalStateDelegate()
int TestOperationalStateClusterObjects()
{
nlTestSuite theSuite = { "Test Operational State delegate tests", &sTests[0], TestSetup, TestTearDown };
nlTestSuite theSuite = { "Test Operational State Cluster Objects tests", &sTests[0], TestSetup, TestTearDown };

// Run test suit againt one context.
nlTestRunner(&theSuite, nullptr);
return nlTestRunnerStats(&theSuite);
}

CHIP_REGISTER_TEST_SUITE(TestOperationalStateDelegate)
CHIP_REGISTER_TEST_SUITE(TestOperationalStateClusterObjects)

0 comments on commit 1338948

Please sign in to comment.