I have always gotten credit on both airlines with very little fuss. It seems to be the standard policy. This is based on domestic flights. I've never been rebooked internationally.
If you're really lucky as I was a few times, when you get rebooked from AA to DL they will give you a fare class of full Y (which I NEVER fly), allowing you to upgrade using segment upgrades.