Skip to content

Commit

Permalink
attribute-size.cpp is not included in the list of files to build for …
Browse files Browse the repository at this point in the history
…ChipTool iOS (project-chip#5936)
  • Loading branch information
vivien-apple authored and jimlyall-q committed Apr 12, 2021
1 parent 8c4cf5d commit f37bd24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ - (void)parseOptionalData:(CHIPSetupPayload *)payload
- (void)handleRendezVous:(CHIPSetupPayload *)payload
{
switch (payload.rendezvousInformation) {
case kRendendezvousInformationOnNetwork:
case kRendezvousInformationOnNetwork:
case kRendezvousInformationAllMask:
NSLog(@"Rendezvous Unknown");
break;
Expand Down
4 changes: 4 additions & 0 deletions src/darwin/Framework/CHIP.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
1E9BD1C72621AFF100FC3246 /* attribute-size.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1E9BD1C62621AFF100FC3246 /* attribute-size.cpp */; };
1EC4CE3A25CC263E00D7304F /* reporting.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1EC4CE3825CC263E00D7304F /* reporting.cpp */; };
1EC4CE3B25CC263E00D7304F /* reporting-default-configuration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1EC4CE3925CC263E00D7304F /* reporting-default-configuration.cpp */; };
1EC4CE3D25CC265200D7304F /* DataModelHandler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1EC4CE3C25CC265200D7304F /* DataModelHandler.cpp */; };
Expand Down Expand Up @@ -67,6 +68,7 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
1E9BD1C62621AFF100FC3246 /* attribute-size.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "attribute-size.cpp"; path = "gen/attribute-size.cpp"; sourceTree = "<group>"; };
1EC4CE3825CC263E00D7304F /* reporting.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = reporting.cpp; path = ../../../app/reporting/reporting.cpp; sourceTree = "<group>"; };
1EC4CE3925CC263E00D7304F /* reporting-default-configuration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = "reporting-default-configuration.cpp"; path = "../../../app/reporting/reporting-default-configuration.cpp"; sourceTree = "<group>"; };
1EC4CE3C25CC265200D7304F /* DataModelHandler.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = DataModelHandler.cpp; path = ../../../app/server/DataModelHandler.cpp; sourceTree = "<group>"; };
Expand Down Expand Up @@ -169,6 +171,7 @@
1EC4CE5825CC26AB00D7304F /* CHIPGeneratedFiles */ = {
isa = PBXGroup;
children = (
1E9BD1C62621AFF100FC3246 /* attribute-size.cpp */,
1EC4CE6325CC276600D7304F /* CHIPClustersObjc.h */,
1EC4CE5A25CC26E900D7304F /* call-command-handler.cpp */,
1EC4CE5B25CC26E900D7304F /* callback-stub.cpp */,
Expand Down Expand Up @@ -410,6 +413,7 @@
1ED0B8CC260125E100D19DB5 /* media-playback-client.cpp in Sources */,
1EC4CE5125CC267700D7304F /* message.cpp in Sources */,
1EC4CE5D25CC26E900D7304F /* CHIPClustersObjc.mm in Sources */,
1E9BD1C72621AFF100FC3246 /* attribute-size.cpp in Sources */,
B2E0D7B3245B0B5C003C5B48 /* CHIPError.mm in Sources */,
1EC4CE5E25CC26E900D7304F /* call-command-handler.cpp in Sources */,
1EC4CE3B25CC263E00D7304F /* reporting-default-configuration.cpp in Sources */,
Expand Down
4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIPTests/CHIPSetupPayloadParserTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ - (void)testQRCodeParser
XCTAssertEqual(payload.productID.unsignedIntegerValue, 1);
XCTAssertFalse(payload.requiresCustomFlow);
XCTAssertEqual(payload.version.unsignedIntegerValue, 5);
XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationWiFi);
XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationSoftAP);
}

- (void)testQRCodeParserWithOptionalData
Expand All @@ -109,7 +109,7 @@ - (void)testQRCodeParserWithOptionalData
XCTAssertEqual(payload.vendorID.unsignedIntegerValue, 12);
XCTAssertEqual(payload.productID.unsignedIntegerValue, 1);
XCTAssertFalse(payload.requiresCustomFlow);
XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationWiFi);
XCTAssertEqual(payload.rendezvousInformation, kRendezvousInformationSoftAP);
XCTAssertTrue([payload.serialNumber isEqualToString:@"1"]);

NSArray<CHIPOptionalQRCodeInfo *> * vendorOptionalInfo = [payload getAllOptionalVendorData:&error];
Expand Down

0 comments on commit f37bd24

Please sign in to comment.