kerneltest/e32test/usbho/t_usbdi/src/PBASE-T_USBDI-0475.cpp
changeset 271 dc268b18d709
parent 253 d37db4dcc88d
equal deleted inserted replaced
269:d57b86b1867a 271:dc268b18d709
    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