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

Unified Diff: components/cast_certificate/proto/test_suite.proto

Issue 2050983002: Cast device revocation checking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test suite runner. Updated some tests. 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/proto/test_suite.proto
diff --git a/components/cast_certificate/proto/test_suite.proto b/components/cast_certificate/proto/test_suite.proto
new file mode 100644
index 0000000000000000000000000000000000000000..e29b1e2fb4bd5ac12c18334eeef21bd31871f4ec
--- /dev/null
+++ b/components/cast_certificate/proto/test_suite.proto
@@ -0,0 +1,31 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+
+package cast_certificate;
+
+option java_package = "com.google.cast.proto";
+option java_outer_classname = "DeviceCertTestSuiteProto";
+
+// A suite of test data to exercise Cast device certificate verification and
+// revocation logic.
+message DeviceCertTestSuite {
+ repeated DeviceCertTest tests = 1;
+}
+
+message DeviceCertTest {
+ // Human-readable description of the test.
+ optional string description = 1;
+ // Device certiticate path up to a trusted root. Root is not included.
+ repeated bytes der_cert_path = 2;
+ // CRL bundle if revocation check is expected.
+ optional bytes crl_bundle = 3;
+ // Expected result of the certificate verification.
+ optional bool path_is_valid = 4;
+ // Time at which the verification should be done.
+ optional uint64 verification_time_millis = 5;
+}

Powered by Google App Engine
This is Rietveld 408576698