| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/base/crl_set.h" | 5 #include "net/cert/crl_set.h" |
| 6 #include "testing/gtest/include/gtest/gtest.h" | 6 #include "testing/gtest/include/gtest/gtest.h" |
| 7 | 7 |
| 8 // These data blocks were generated using a lot of code that is still in | 8 // These data blocks were generated using a lot of code that is still in |
| 9 // development. For now, if you need to update them, you have to contact agl. | 9 // development. For now, if you need to update them, you have to contact agl. |
| 10 static const uint8 kGIACRLSet[] = { | 10 static const uint8 kGIACRLSet[] = { |
| 11 0x60, 0x00, 0x7b, 0x22, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x3a, | 11 0x60, 0x00, 0x7b, 0x22, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x3a, |
| 12 0x30, 0x2c, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, | 12 0x30, 0x2c, 0x22, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, |
| 13 0x65, 0x22, 0x3a, 0x22, 0x43, 0x52, 0x4c, 0x53, 0x65, 0x74, 0x22, 0x2c, 0x22, | 13 0x65, 0x22, 0x3a, 0x22, 0x43, 0x52, 0x4c, 0x53, 0x65, 0x74, 0x22, 0x2c, 0x22, |
| 14 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x3a, 0x30, 0x2c, 0x22, | 14 0x53, 0x65, 0x71, 0x75, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x3a, 0x30, 0x2c, 0x22, |
| 15 0x44, 0x65, 0x6c, 0x74, 0x61, 0x46, 0x72, 0x6f, 0x6d, 0x22, 0x3a, 0x30, 0x2c, | 15 0x44, 0x65, 0x6c, 0x74, 0x61, 0x46, 0x72, 0x6f, 0x6d, 0x22, 0x3a, 0x30, 0x2c, |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 // This CRLSet has an expiry value set to one second past midnight, 1st Jan, | 317 // This CRLSet has an expiry value set to one second past midnight, 1st Jan, |
| 318 // 1970. | 318 // 1970. |
| 319 base::StringPiece s(reinterpret_cast<const char*>(kExpiredCRLSet), | 319 base::StringPiece s(reinterpret_cast<const char*>(kExpiredCRLSet), |
| 320 sizeof(kExpiredCRLSet)); | 320 sizeof(kExpiredCRLSet)); |
| 321 scoped_refptr<net::CRLSet> set; | 321 scoped_refptr<net::CRLSet> set; |
| 322 EXPECT_TRUE(net::CRLSet::Parse(s, &set)); | 322 EXPECT_TRUE(net::CRLSet::Parse(s, &set)); |
| 323 ASSERT_TRUE(set.get() != NULL); | 323 ASSERT_TRUE(set.get() != NULL); |
| 324 | 324 |
| 325 EXPECT_TRUE(set->IsExpired()); | 325 EXPECT_TRUE(set->IsExpired()); |
| 326 } | 326 } |
| OLD | NEW |