Camera2: Use CameraErrorCollector for CaptureResultTest

Also refactor the code to make it simpler. Now the test can test all the
iterations rather than failed at the first iteration result check. This could
cacatch the missing capture result keys for all the capture results.

Change-Id: I3ca43669db609cea7c85b18fd7cca0519a323c7b
2 files changed