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 "webcrypto_impl.h" | 5 #include "webcrypto_impl.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 11 matching lines...) Expand all Loading... | |
22 WebKit::WebCryptoAlgorithmIdSha1, | 22 WebKit::WebCryptoAlgorithmIdSha1, |
23 WebKit::WebCryptoAlgorithmIdSha224, | 23 WebKit::WebCryptoAlgorithmIdSha224, |
24 WebKit::WebCryptoAlgorithmIdSha256, | 24 WebKit::WebCryptoAlgorithmIdSha256, |
25 WebKit::WebCryptoAlgorithmIdSha384, | 25 WebKit::WebCryptoAlgorithmIdSha384, |
26 WebKit::WebCryptoAlgorithmIdSha512 | 26 WebKit::WebCryptoAlgorithmIdSha512 |
27 }; | 27 }; |
28 | 28 |
29 class WebCryptoImplTest : public testing::Test, public WebCryptoImpl { | 29 class WebCryptoImplTest : public testing::Test, public WebCryptoImpl { |
30 }; | 30 }; |
31 | 31 |
32 TEST_F(WebCryptoImplTest, DigestSampleSets) { | 32 TEST_F(WebCryptoImplTest, DISABLED_DigestSampleSets) { |
eroman
2013/09/25 00:00:59
Looks like this is a dependency with your other ch
padolph
2013/09/25 02:00:38
Done.
| |
33 // The results are stored here in hex format for readability. | 33 // The results are stored here in hex format for readability. |
34 // | 34 // |
35 // TODO(bryaneyler): Eventually, all these sample test sets should be replaced | 35 // TODO(bryaneyler): Eventually, all these sample test sets should be replaced |
36 // with the sets here: http://csrc.nist.gov/groups/STM/cavp/index.html#03 | 36 // with the sets here: http://csrc.nist.gov/groups/STM/cavp/index.html#03 |
37 struct { | 37 struct { |
38 const char* input; | 38 const char* input; |
39 unsigned input_length; | 39 unsigned input_length; |
40 const char* hex_result[arraysize(kAlgorithmIds)]; | 40 const char* hex_result[arraysize(kAlgorithmIds)]; |
41 } input_set[] = { | 41 } input_set[] = { |
42 { | 42 { |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
268 | 268 |
269 // Ignore case, it's checking the hex value. | 269 // Ignore case, it's checking the hex value. |
270 EXPECT_STRCASEEQ( | 270 EXPECT_STRCASEEQ( |
271 input_set[index].mac, | 271 input_set[index].mac, |
272 base::HexEncode( | 272 base::HexEncode( |
273 array_buffer.data(), array_buffer.byteLength()).c_str()); | 273 array_buffer.data(), array_buffer.byteLength()).c_str()); |
274 } | 274 } |
275 } | 275 } |
276 | 276 |
277 } // namespace content | 277 } // namespace content |
OLD | NEW |