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

Unified Diff: components/cast_certificate/cast_cert_validator_test_helpers.h

Issue 2303673004: Hook up Chrome Cast sender to Cast CRL. (Closed)
Patch Set: Some cleanup Created 4 years, 3 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 72cb5034a19649deeb17cc7e3fe00c2f8487f770..abd0751b54da9e800b9c709bf75b846e683a16e5 100644
--- a/components/cast_certificate/cast_cert_validator_test_helpers.h
+++ b/components/cast_certificate/cast_cert_validator_test_helpers.h
@@ -5,10 +5,17 @@
#ifndef COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_TEST_HELPERS_H_
#define COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_TEST_HELPERS_H_
+#include <memory>
#include <string>
#include <vector>
#include "base/strings/string_piece.h"
+#include "base/time/time.h"
+#include "net/cert/internal/trust_store_in_memory.h"
+
+namespace net {
+class TrustStoreInMemory;
+}
namespace cast_certificate {
@@ -39,6 +46,13 @@ SignatureTestData ReadSignatureTestData(const base::StringPiece& file_name);
// (//src/components/test/data/cast_certificate)
std::string ReadTestFileToString(const base::StringPiece& file_name);
+// Creates a trust store using the test roots encoded in the PEM file at |path|.
+std::unique_ptr<net::TrustStoreInMemory> CreateTrustStoreFromFile(
+ const std::string& path);
+
+// Converts uint64_t unix timestamp in seconds to base::Time.
+base::Time ConvertUnixTimestampSeconds(uint64_t time);
+
} // namespace testing
} // namespace cast_certificate

Powered by Google App Engine
This is Rietveld 408576698