Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca committed May 23, 2024
1 parent 6e4a34f commit d864289
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 33 deletions.
2 changes: 1 addition & 1 deletion examples/fabric-admin/commands/clusters/JsonParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#pragma once

#include "../common/CustomStringPrefix.h"
#include <commands/common/CustomStringPrefix.h>

#include <json/json.h>
#include <lib/core/Optional.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/fabric-admin/commands/clusters/ModelCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#ifdef CONFIG_USE_LOCAL_STORAGE
#include <controller/ExamplePersistentStorage.h>
#endif // CONFIG_USE_LOCAL_STORAGE
#endif

#include "../common/CHIPCommand.h"
#include <lib/core/CHIPEncoding.h>
Expand Down
6 changes: 3 additions & 3 deletions examples/fabric-admin/commands/interactive/Commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

#pragma once

#include "commands/common/CHIPCommand.h"
#include "commands/common/Commands.h"
#include "commands/interactive/InteractiveCommands.h"
#include <commands/common/CHIPCommand.h>
#include <commands/common/Commands.h>
#include <commands/interactive/InteractiveCommands.h>

void registerCommandsInteractive(Commands & commands, CredentialIssuerCommands * credsIssuerConfig)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

#pragma once

#include "../clusters/DataModelLogger.h"
#include "../common/CHIPCommand.h"
#include "../common/Commands.h"
#include <commands/clusters/DataModelLogger.h>
#include <commands/common/CHIPCommand.h>
#include <commands/common/Commands.h>

#include <string>

Expand Down
14 changes: 7 additions & 7 deletions examples/fabric-admin/commands/pairing/Commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <commands/common/Commands.h>
#include <commands/common/CredentialIssuerCommands.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 <app/server/Dnssd.h>
#include <commands/common/CredentialIssuerCommands.h>
#include <lib/dnssd/Resolver.h>

class Unpair : public PairingCommand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#pragma once

#include "../common/CHIPCommand.h"
#include "../common/RemoteDataModelLogger.h"
#include <commands/common/CHIPCommand.h>
#include <commands/common/RemoteDataModelLogger.h>

class GetCommissionerNodeIdCommand : public CHIPCommand
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#pragma once

#include "../common/CHIPCommand.h"
#include "../common/RemoteDataModelLogger.h"
#include <commands/common/CHIPCommand.h>
#include <commands/common/RemoteDataModelLogger.h>

#include "ToTLVCert.h"

Expand Down
4 changes: 2 additions & 2 deletions examples/fabric-admin/commands/pairing/IssueNOCChainCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#pragma once

#include "../common/CHIPCommand.h"
#include "../common/RemoteDataModelLogger.h"
#include <commands/common/CHIPCommand.h>
#include <commands/common/RemoteDataModelLogger.h>

#include "ToTLVCert.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@

#pragma once

#include "../common/CHIPCommand.h"

#include <commands/common/CHIPCommand.h>
#include <controller/CommissioningWindowOpener.h>
#include <lib/support/CHIPMem.h>

Expand Down
4 changes: 2 additions & 2 deletions examples/fabric-admin/commands/pairing/PairingCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
*/

#include "PairingCommand.h"
#include "platform/PlatformManager.h"

#include <commands/common/DeviceScanner.h>
#include <controller/ExampleOperationalCredentialsIssuer.h>
#include <crypto/CHIPCryptoPAL.h>
#include <lib/core/CHIPSafeCasts.h>
#include <lib/support/logging/CHIPLogging.h>
#include <platform/PlatformManager.h>
#include <protocols/secure_channel/PASESession.h>

#include <setup_payload/ManualSetupPayloadParser.h>
#include <setup_payload/QRCodeSetupPayloadParser.h>

Expand Down
5 changes: 2 additions & 3 deletions examples/fabric-admin/commands/pairing/PairingCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@

#pragma once

#include "../common/CHIPCommand.h"
#include <commands/common/CHIPCommand.h>
#include <commands/common/CredentialIssuerCommands.h>
#include <controller/CommissioningDelegate.h>
#include <controller/CurrentFabricRemover.h>

#include <commands/common/CredentialIssuerCommands.h>
#include <lib/support/Span.h>
#include <lib/support/ThreadOperationalDataset.h>

Expand Down
9 changes: 4 additions & 5 deletions examples/fabric-admin/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <commands/clusters/SubscriptionsCommands.h>
#include <commands/common/Commands.h>
#include <commands/interactive/Commands.h>
#include <commands/pairing/Commands.h>
#include <zap-generated/cluster/Commands.h>

#include <iostream>
Expand Down

0 comments on commit d864289

Please sign in to comment.