equal
deleted
inserted
replaced
95 |
95 |
96 // Parse Configuration Descriptor ---------- Case 2 |
96 // Parse Configuration Descriptor ---------- Case 2 |
97 err = UsbDescriptorParser::Parse(KConfigurationDescriptorInsufficientDataTestCase2, parsed); |
97 err = UsbDescriptorParser::Parse(KConfigurationDescriptorInsufficientDataTestCase2, parsed); |
98 configDesc = TUsbConfigurationDescriptor::Cast(parsed); |
98 configDesc = TUsbConfigurationDescriptor::Cast(parsed); |
99 |
99 |
100 CHECK(configDesc != 0) // tree should be kept, even if there is a parse error at the end |
100 CHECK(configDesc == 0) // tree is freed if there are errors, refer to source code |
101 CHECK(err == KErrCorrupt) // KErrCorrupt |
101 CHECK(err == KErrCorrupt) // KErrCorrupt |
102 |
102 |
103 // Parse Configuration Descriptor ---------- Case 3 |
103 // Parse Configuration Descriptor ---------- Case 3 |
104 CHECK(ParseConfigDescriptorAndCheckTree(devDesc, KConfigurationDescriptorUnexpectedLengthTestCase3, 3) == KErrNone); |
104 CHECK(ParseConfigDescriptorAndCheckTree(devDesc, KConfigurationDescriptorUnexpectedLengthTestCase3, 3) == KErrNone); |
105 |
105 |