| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/cert/merkle_tree_leaf.h" | 5 #include "net/cert/merkle_tree_leaf.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 12 #include "net/base/test_data_directory.h" | |
| 13 #include "net/cert/x509_certificate.h" | 12 #include "net/cert/x509_certificate.h" |
| 14 #include "net/test/cert_test_util.h" | 13 #include "net/test/cert_test_util.h" |
| 15 #include "net/test/ct_test_util.h" | 14 #include "net/test/ct_test_util.h" |
| 15 #include "net/test/test_data_directory.h" |
| 16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 | 20 |
| 21 namespace ct { | 21 namespace ct { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 MATCHER_P(HexEq, hexStr, "") { | 25 MATCHER_P(HexEq, hexStr, "") { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 ASSERT_TRUE(Hash(leaf, &hash)); | 127 ASSERT_TRUE(Hash(leaf, &hash)); |
| 128 EXPECT_THAT(hash, HexEq("257ae85f08810445511e35e33f7aee99ee19407971e35e95822b" | 128 EXPECT_THAT(hash, HexEq("257ae85f08810445511e35e33f7aee99ee19407971e35e95822b" |
| 129 "bf42a74be223")); | 129 "bf42a74be223")); |
| 130 } | 130 } |
| 131 | 131 |
| 132 } // namespace | 132 } // namespace |
| 133 | 133 |
| 134 } // namespace ct | 134 } // namespace ct |
| 135 | 135 |
| 136 } // namespace net | 136 } // namespace net |
| OLD | NEW |