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

Unified Diff: net/cert/merkle_audit_proof_unittest.cc

Issue 2004843002: Adds a MerkleAuditProof struct to net/cert. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: net/cert/merkle_audit_proof_unittest.cc
diff --git a/net/cert/merkle_audit_proof_unittest.cc b/net/cert/merkle_audit_proof_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..cabdaaa03095ccac02c132d61cd16167856ed7d8
--- /dev/null
+++ b/net/cert/merkle_audit_proof_unittest.cc
@@ -0,0 +1,20 @@
+// Copyright 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.
+
+#include "net/cert/merkle_audit_proof.h"
+
+#include "testing/gmock/include/gmock/gmock.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace net {
+namespace ct {
+namespace {
+
+TEST(MerkleAuditProofTest, CalculatesAuditPathLengthCorrectly) {
+ EXPECT_EQ(20u, CalculateAuditPathLength(123456, 999999));
Eran Messeri 2016/05/23 13:10:52 Add a few more test cases, particularly relating t
Rob Percival 2016/05/24 17:10:05 Done.
+}
+
+} // namespace
+} // namespace ct
+} // namespace net

Powered by Google App Engine
This is Rietveld 408576698