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

Unified Diff: components/cast_certificate/cast_cert_validator_test_helpers.h

Issue 2050983002: Cast device revocation checking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: For review Created 4 years, 6 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
Index: components/cast_certificate/cast_cert_validator_test_helpers.h
diff --git a/components/cast_certificate/cast_cert_validator_test_helpers.h b/components/cast_certificate/cast_cert_validator_test_helpers.h
index d5281a70707518f5dd68035897d96e58aed5d79c..9e5256c669c593bb9c1e967cfffa1193be375b94 100644
--- a/components/cast_certificate/cast_cert_validator_test_helpers.h
+++ b/components/cast_certificate/cast_cert_validator_test_helpers.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/strings/string_piece.h"
+#include "base/time/time.h"
namespace cast_certificate {
@@ -35,6 +36,13 @@ struct SignatureTestData {
// |file_name| should be relative to //components/test/data/cast_certificate
SignatureTestData ReadSignatureTestData(const base::StringPiece& file_name);
+// Reads a file containing the Cast CRL.
+// |file_name| should be relative to //components/test/data/cast_certificate
+std::string ReadCRLFromFile(const base::StringPiece& file_name);
+
+// Create an exploded date.
+base::Time::Exploded CreateDate(int year, int month, int day);
+
} // namespace testing
} // namespace cast_certificate

Powered by Google App Engine
This is Rietveld 408576698