| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/logging.h" | |
| 6 #include "net/base/dnssec_chain_verifier.h" | 5 #include "net/base/dnssec_chain_verifier.h" |
| 7 #include "net/base/dnssec_keyset.h" | 6 #include "net/base/dnssec_keyset.h" |
| 8 #include "net/base/dns_util.h" | 7 #include "net/base/dns_util.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 9 |
| 11 namespace { | 10 namespace { |
| 12 | 11 |
| 13 class SignatureVerifierDNSSECTest : public testing::Test { | 12 class SignatureVerifierDNSSECTest : public testing::Test { |
| 14 }; | 13 }; |
| 15 | 14 |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 | 393 |
| 395 unsigned byte = bit_to_flip >> 3; | 394 unsigned byte = bit_to_flip >> 3; |
| 396 unsigned bit = bit_to_flip & 7; | 395 unsigned bit = bit_to_flip & 7; |
| 397 copy[byte] ^= (1 << bit); | 396 copy[byte] ^= (1 << bit); |
| 398 | 397 |
| 399 net::DNSSECChainVerifier verifier(FromDNSName("dnssec-exp.org"), chain); | 398 net::DNSSECChainVerifier verifier(FromDNSName("dnssec-exp.org"), chain); |
| 400 verifier.IgnoreTimestamps(); | 399 verifier.IgnoreTimestamps(); |
| 401 ASSERT_NE(net::DNSSECChainVerifier::OK, verifier.Verify()); | 400 ASSERT_NE(net::DNSSECChainVerifier::OK, verifier.Verify()); |
| 402 } | 401 } |
| 403 } | 402 } |
| OLD | NEW |