Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Unified Diff: telemetry/third_party/web-page-replay/certutils_test.py

Issue 2811373002: [web-page-replay] Roll WPR to the latest commit (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « telemetry/third_party/web-page-replay/certutils.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/third_party/web-page-replay/certutils_test.py
diff --git a/telemetry/third_party/web-page-replay/certutils_test.py b/telemetry/third_party/web-page-replay/certutils_test.py
index de1ac2d692eee40412d1f43c5ffbc0f0db31c673..18d471d3ae6c19ab1eebb2e25a12abe59c853110 100644
--- a/telemetry/third_party/web-page-replay/certutils_test.py
+++ b/telemetry/third_party/web-page-replay/certutils_test.py
@@ -125,10 +125,15 @@ class CertutilsTest(unittest.TestCase):
with open(ca_cert_path, 'r') as ca_cert_file:
ca_cert_str = ca_cert_file.read()
cert_string = certutils.generate_cert(ca_cert_str, cert_string,
- 'host')
+ 'host.com')
cert = certutils.load_cert(cert_string)
self.assertEqual(issuer, cert.get_issuer().commonName)
self.assertEqual(subject, cert.get_subject().commonName)
+ self.assertEqual(2, cert.get_extension_count())
+ self.assertEqual(b"subjectAltName", cert.get_extension(0).get_short_name())
+ self.assertEqual(b"extendedKeyUsage",
+ cert.get_extension(1).get_short_name())
+
if __name__ == '__main__':
« no previous file with comments | « telemetry/third_party/web-page-replay/certutils.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698