| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/quic/core/crypto/common_cert_set.h" | 5 #include "net/quic/core/crypto/common_cert_set.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <cstdint> |
| 8 | 8 |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 using base::StringPiece; | 11 using base::StringPiece; |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 namespace test { | 14 namespace test { |
| 15 | 15 |
| 16 // Google Internet Authority cert from v2 of the cert set. | 16 // Google Internet Authority cert from v2 of the cert set. |
| 17 static const unsigned char kGIACertificate2[] = { | 17 static const unsigned char kGIACertificate2[] = { |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 uint64_t hash; | 240 uint64_t hash; |
| 241 uint32_t index; | 241 uint32_t index; |
| 242 EXPECT_FALSE(sets->MatchCert( | 242 EXPECT_FALSE(sets->MatchCert( |
| 243 not_a_cert, | 243 not_a_cert, |
| 244 StringPiece(reinterpret_cast<const char*>(&in_hash), sizeof(in_hash)), | 244 StringPiece(reinterpret_cast<const char*>(&in_hash), sizeof(in_hash)), |
| 245 &hash, &index)); | 245 &hash, &index)); |
| 246 } | 246 } |
| 247 | 247 |
| 248 } // namespace test | 248 } // namespace test |
| 249 } // namespace net | 249 } // namespace net |
| OLD | NEW |