From d8642896a2e66cbad260f80301087471935df51a Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Thu, 23 May 2024 09:35:16 -0700 Subject: [PATCH] Address review comments --- .../fabric-admin/commands/clusters/JsonParser.h | 2 +- .../fabric-admin/commands/clusters/ModelCommand.h | 2 +- .../fabric-admin/commands/interactive/Commands.h | 6 +++--- .../commands/interactive/InteractiveCommands.h | 6 +++--- examples/fabric-admin/commands/pairing/Commands.h | 14 +++++++------- .../pairing/GetCommissionerNodeIdCommand.h | 4 ++-- .../GetCommissionerRootCertificateCommand.h | 4 ++-- .../commands/pairing/IssueNOCChainCommand.h | 4 ++-- .../pairing/OpenCommissioningWindowCommand.h | 3 +-- .../commands/pairing/PairingCommand.cpp | 4 ++-- .../fabric-admin/commands/pairing/PairingCommand.h | 5 ++--- examples/fabric-admin/main.cpp | 9 ++++----- 12 files changed, 30 insertions(+), 33 deletions(-) diff --git a/examples/fabric-admin/commands/clusters/JsonParser.h b/examples/fabric-admin/commands/clusters/JsonParser.h index 0871e767c21bd6..2a1cd62e97b028 100644 --- a/examples/fabric-admin/commands/clusters/JsonParser.h +++ b/examples/fabric-admin/commands/clusters/JsonParser.h @@ -18,7 +18,7 @@ #pragma once -#include "../common/CustomStringPrefix.h" +#include #include #include diff --git a/examples/fabric-admin/commands/clusters/ModelCommand.h b/examples/fabric-admin/commands/clusters/ModelCommand.h index c14d3c9952f3fc..185f6179db330f 100644 --- a/examples/fabric-admin/commands/clusters/ModelCommand.h +++ b/examples/fabric-admin/commands/clusters/ModelCommand.h @@ -20,7 +20,7 @@ #ifdef CONFIG_USE_LOCAL_STORAGE #include -#endif // CONFIG_USE_LOCAL_STORAGE +#endif #include "../common/CHIPCommand.h" #include diff --git a/examples/fabric-admin/commands/interactive/Commands.h b/examples/fabric-admin/commands/interactive/Commands.h index e324ddae2680ae..2b66a2d9c70f94 100644 --- a/examples/fabric-admin/commands/interactive/Commands.h +++ b/examples/fabric-admin/commands/interactive/Commands.h @@ -18,9 +18,9 @@ #pragma once -#include "commands/common/CHIPCommand.h" -#include "commands/common/Commands.h" -#include "commands/interactive/InteractiveCommands.h" +#include +#include +#include void registerCommandsInteractive(Commands & commands, CredentialIssuerCommands * credsIssuerConfig) { diff --git a/examples/fabric-admin/commands/interactive/InteractiveCommands.h b/examples/fabric-admin/commands/interactive/InteractiveCommands.h index 528d878d4cd32e..a0b490f3b668e5 100644 --- a/examples/fabric-admin/commands/interactive/InteractiveCommands.h +++ b/examples/fabric-admin/commands/interactive/InteractiveCommands.h @@ -18,9 +18,9 @@ #pragma once -#include "../clusters/DataModelLogger.h" -#include "../common/CHIPCommand.h" -#include "../common/Commands.h" +#include +#include +#include #include diff --git a/examples/fabric-admin/commands/pairing/Commands.h b/examples/fabric-admin/commands/pairing/Commands.h index 6fdfacef79e34f..af07536bfda052 100644 --- a/examples/fabric-admin/commands/pairing/Commands.h +++ b/examples/fabric-admin/commands/pairing/Commands.h @@ -18,15 +18,15 @@ #pragma once -#include "commands/common/Commands.h" -#include "commands/pairing/GetCommissionerNodeIdCommand.h" -#include "commands/pairing/GetCommissionerRootCertificateCommand.h" -#include "commands/pairing/IssueNOCChainCommand.h" -#include "commands/pairing/OpenCommissioningWindowCommand.h" -#include "commands/pairing/PairingCommand.h" +#include +#include +#include +#include +#include +#include +#include #include -#include #include class Unpair : public PairingCommand diff --git a/examples/fabric-admin/commands/pairing/GetCommissionerNodeIdCommand.h b/examples/fabric-admin/commands/pairing/GetCommissionerNodeIdCommand.h index 3234cfe456a956..10439830cb1345 100644 --- a/examples/fabric-admin/commands/pairing/GetCommissionerNodeIdCommand.h +++ b/examples/fabric-admin/commands/pairing/GetCommissionerNodeIdCommand.h @@ -18,8 +18,8 @@ #pragma once -#include "../common/CHIPCommand.h" -#include "../common/RemoteDataModelLogger.h" +#include +#include class GetCommissionerNodeIdCommand : public CHIPCommand { diff --git a/examples/fabric-admin/commands/pairing/GetCommissionerRootCertificateCommand.h b/examples/fabric-admin/commands/pairing/GetCommissionerRootCertificateCommand.h index 1d25efcc38224d..88afc9b6bace57 100644 --- a/examples/fabric-admin/commands/pairing/GetCommissionerRootCertificateCommand.h +++ b/examples/fabric-admin/commands/pairing/GetCommissionerRootCertificateCommand.h @@ -18,8 +18,8 @@ #pragma once -#include "../common/CHIPCommand.h" -#include "../common/RemoteDataModelLogger.h" +#include +#include #include "ToTLVCert.h" diff --git a/examples/fabric-admin/commands/pairing/IssueNOCChainCommand.h b/examples/fabric-admin/commands/pairing/IssueNOCChainCommand.h index 0103b26977136d..efed6738204008 100644 --- a/examples/fabric-admin/commands/pairing/IssueNOCChainCommand.h +++ b/examples/fabric-admin/commands/pairing/IssueNOCChainCommand.h @@ -18,8 +18,8 @@ #pragma once -#include "../common/CHIPCommand.h" -#include "../common/RemoteDataModelLogger.h" +#include +#include #include "ToTLVCert.h" diff --git a/examples/fabric-admin/commands/pairing/OpenCommissioningWindowCommand.h b/examples/fabric-admin/commands/pairing/OpenCommissioningWindowCommand.h index 99b179d8753125..2c1d62f31c566b 100644 --- a/examples/fabric-admin/commands/pairing/OpenCommissioningWindowCommand.h +++ b/examples/fabric-admin/commands/pairing/OpenCommissioningWindowCommand.h @@ -18,8 +18,7 @@ #pragma once -#include "../common/CHIPCommand.h" - +#include #include #include diff --git a/examples/fabric-admin/commands/pairing/PairingCommand.cpp b/examples/fabric-admin/commands/pairing/PairingCommand.cpp index 80775f0853d110..379b56431379e4 100644 --- a/examples/fabric-admin/commands/pairing/PairingCommand.cpp +++ b/examples/fabric-admin/commands/pairing/PairingCommand.cpp @@ -17,14 +17,14 @@ */ #include "PairingCommand.h" -#include "platform/PlatformManager.h" + #include #include #include #include #include +#include #include - #include #include diff --git a/examples/fabric-admin/commands/pairing/PairingCommand.h b/examples/fabric-admin/commands/pairing/PairingCommand.h index 4ff3903253be4e..8de34a0ba989ed 100644 --- a/examples/fabric-admin/commands/pairing/PairingCommand.h +++ b/examples/fabric-admin/commands/pairing/PairingCommand.h @@ -18,11 +18,10 @@ #pragma once -#include "../common/CHIPCommand.h" +#include +#include #include #include - -#include #include #include diff --git a/examples/fabric-admin/main.cpp b/examples/fabric-admin/main.cpp index cf1122bda1ec8a..a1002d83170d5b 100644 --- a/examples/fabric-admin/main.cpp +++ b/examples/fabric-admin/main.cpp @@ -16,11 +16,10 @@ * */ -#include "commands/common/Commands.h" - -#include "commands/clusters/SubscriptionsCommands.h" -#include "commands/interactive/Commands.h" -#include "commands/pairing/Commands.h" +#include +#include +#include +#include #include #include