|generateAndCloneCertificate| of chrome/test/data/webrtc/indexeddb.js introduced in https://codereview.chromium.org/1949033002/ should perform a value-equality check between the original certificate and its clone.
It would be nice to verify that the certificate loaded from IndexedDB is value-equal to the original certificate stored there. This should not block certificate cloning though since WebRTC tests already test cloning and verify equality.
In order to use |window.internals.rtcCertificateEquals|, |windows.internals| must be exposed to WebRtcBrowserTest.
Alternatively, |getStats| could perhaps be used to check if the certificate of two peer connections are equal with a string compare. But |rtcCertificateEquals| would be preferred.
Comment 1 by pthatcher@chromium.org
, May 9 2016