Display full certificate chain in test output

Bug: 4970298
Change-Id: I770854873d4d0c98d5037a90b46c8eb0709ede57
diff --git a/tests/src/com/android/keychain/tests/KeyChainTestActivity.java b/tests/src/com/android/keychain/tests/KeyChainTestActivity.java
index 0033482..fc59575 100644
--- a/tests/src/com/android/keychain/tests/KeyChainTestActivity.java
+++ b/tests/src/com/android/keychain/tests/KeyChainTestActivity.java
@@ -253,7 +253,9 @@
                     log("Null certificate chain!");
                     return null;
                 }
-                log("certificate=" + certificateChain[0]);
+                for (int i = 0; i < certificateChain.length; i++) {
+                    log("certificate[" + i + "]=" + certificateChain[i]);
+                }
                 return certificateChain;
             } catch (InterruptedException e) {
                 Thread.currentThread().interrupt();