Chromium Code Reviews| 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 |