| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/multi_log_ct_verifier.h" | 5 #include "net/cert/multi_log_ct_verifier.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 // Change a byte inside the Log ID part of the SCT so it does | 151 // Change a byte inside the Log ID part of the SCT so it does |
| 152 // not match the log used in the tests | 152 // not match the log used in the tests |
| 153 sct[15] = 't'; | 153 sct[15] = 't'; |
| 154 | 154 |
| 155 std::string sct_list; | 155 std::string sct_list; |
| 156 ASSERT_TRUE(ct::EncodeSCTListForTesting(sct, &sct_list)); | 156 ASSERT_TRUE(ct::EncodeSCTListForTesting(sct, &sct_list)); |
| 157 | 157 |
| 158 ct::CTVerifyResult result; | 158 ct::CTVerifyResult result; |
| 159 EXPECT_NE(OK, | 159 EXPECT_NE(OK, |
| 160 verifier_->Verify(chain_, sct_list, "", &result, BoundNetLog())); | 160 verifier_->Verify(chain_, "", sct_list, &result, BoundNetLog())); |
| 161 EXPECT_EQ(1U, result.unknown_logs_scts.size()); | 161 EXPECT_EQ(1U, result.unknown_logs_scts.size()); |
| 162 } | 162 } |
| 163 | 163 |
| 164 } // namespace | 164 } // namespace |
| 165 | 165 |
| 166 } // namespace net | 166 } // namespace net |
| OLD | NEW |