Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("//testing/libfuzzer/fuzzer_test.gni") | |
| 6 | 7 |
| 7 source_set("webcrypto") { | 8 source_set("webcrypto") { |
| 8 sources = [ | 9 sources = [ |
| 9 "algorithm_dispatch.cc", | 10 "algorithm_dispatch.cc", |
| 10 "algorithm_dispatch.h", | 11 "algorithm_dispatch.h", |
| 11 "algorithm_implementation.cc", | 12 "algorithm_implementation.cc", |
| 12 "algorithm_implementation.h", | 13 "algorithm_implementation.h", |
| 13 "algorithm_implementations.h", | 14 "algorithm_implementations.h", |
| 14 "algorithm_registry.cc", | 15 "algorithm_registry.cc", |
| 15 "algorithm_registry.h", | 16 "algorithm_registry.h", |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 "//base/test:test_support", | 87 "//base/test:test_support", |
| 87 "//components/test_runner:test_runner", | 88 "//components/test_runner:test_runner", |
| 88 "//crypto", | 89 "//crypto", |
| 89 "//crypto:platform", | 90 "//crypto:platform", |
| 90 "//testing/gtest", | 91 "//testing/gtest", |
| 91 "//testing/perf", | 92 "//testing/perf", |
| 92 "//third_party/WebKit/public:blink", | 93 "//third_party/WebKit/public:blink", |
| 93 "//third_party/re2", | 94 "//third_party/re2", |
| 94 ] | 95 ] |
| 95 } | 96 } |
| 97 | |
| 98 # Shared functionality for writing WebCrypto fuzzers at this layer (several | |
| 99 # things need to be done to initialize Blink and pull in the right | |
| 100 # dependencies). | |
| 101 source_set("fuzzer_support") { | |
| 102 testonly = true | |
| 103 | |
| 104 sources = [ | |
| 105 "fuzzer_support.cc", | |
| 106 "fuzzer_support.h", | |
| 107 ] | |
| 108 deps = [ | |
| 109 ":webcrypto", | |
| 110 "//crypto", | |
| 111 "//crypto:platform", | |
| 112 | |
| 113 # The "blink_for_unittests" includes a dependency on Mojo, which otherwise | |
| 114 # public:blink lacks and would result in a linker error. | |
| 115 "//third_party/WebKit/public:blink_for_unittests", | |
| 116 | |
| 117 # This contains a helper function for initializing Blink (needed for | |
| 118 # PartitionAlloc initialization). | |
| 119 "//components/test_runner:test_runner", | |
| 120 ] | |
| 121 } | |
| 122 | |
| 123 # Tests the import of PKCS8 formatted EC keys. | |
| 124 fuzzer_test("ec_import_key_pkcs8_fuzzer") { | |
| 125 sources = [ | |
| 126 "ec_import_key_pkcs8_fuzzer.cc", | |
| 127 ] | |
| 128 deps = [ | |
| 129 ":fuzzer_support", | |
| 130 ":webcrypto", | |
| 131 "//third_party/WebKit/public:blink_headers", | |
| 132 ] | |
| 133 } | |
| 134 | |
| 135 # Tests the import of SPKI formatted EC keys. | |
| 136 fuzzer_test("ec_import_key_spki_fuzzer") { | |
| 137 sources = [ | |
| 138 "ec_import_key_spki_fuzzer.cc", | |
| 139 ] | |
| 140 deps = [ | |
| 141 ":fuzzer_support", | |
| 142 ":webcrypto", | |
| 143 "//third_party/WebKit/public:blink_headers", | |
| 144 ] | |
| 145 } | |
| 146 | |
| 147 # Tests the import of PKCS8 formatted RSA keys. | |
| 148 fuzzer_test("rsa_import_key_pkcs8_fuzzer") { | |
| 149 sources = [ | |
| 150 "rsa_import_key_pkcs8_fuzzer.cc", | |
| 151 ] | |
| 152 deps = [ | |
| 153 ":fuzzer_support", | |
| 154 ":webcrypto", | |
| 155 "//third_party/WebKit/public:blink_headers", | |
| 156 ] | |
| 157 } | |
| 158 | |
| 159 # Tests the import of SPKI formatted RSA keys. | |
| 160 fuzzer_test("rsa_import_key_spki_fuzzer") { | |
| 161 sources = [ | |
| 162 "rsa_import_key_pkcs8_fuzzer.cc", | |
|
Nico
2017/03/26 03:14:39
You copied rsa_import_key_pkcs8_fuzzer here and fo
eroman
2017/03/30 17:02:56
Ugh, I am terrible :(
Thanks for pointing this ou
| |
| 163 ] | |
| 164 deps = [ | |
| 165 ":fuzzer_support", | |
| 166 ":webcrypto", | |
| 167 "//third_party/WebKit/public:blink_headers", | |
| 168 ] | |
| 169 } | |
| OLD | NEW |