OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/libfuzzer/fuzzer_test.gni") | 7 import("//testing/libfuzzer/fuzzer_test.gni") |
8 import("//testing/test.gni") | 8 import("//testing/test.gni") |
9 import("//third_party/WebKit/public/public_features.gni") | 9 import("//third_party/WebKit/public/public_features.gni") |
10 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 10 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
(...skipping 2031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2042 "feature_policy/FeaturePolicyFuzzer.cpp", | 2042 "feature_policy/FeaturePolicyFuzzer.cpp", |
2043 ] | 2043 ] |
2044 deps = [ | 2044 deps = [ |
2045 ":blink_fuzzer_test_support", | 2045 ":blink_fuzzer_test_support", |
2046 ":platform", | 2046 ":platform", |
2047 ] | 2047 ] |
2048 dict = "//testing/libfuzzer/fuzzers/dicts/feature_policy.dict" | 2048 dict = "//testing/libfuzzer/fuzzers/dicts/feature_policy.dict" |
2049 seed_corpus = "//testing/libfuzzer/fuzzers/feature_policy_corpus" | 2049 seed_corpus = "//testing/libfuzzer/fuzzers/feature_policy_corpus" |
2050 } | 2050 } |
2051 | 2051 |
| 2052 # Fuzzer template for WTF::TextCodec. |
| 2053 template("blink_text_codec_fuzzer") { |
| 2054 forward_variables_from(invoker, "*") |
| 2055 config(target_name + "_config") { |
| 2056 defines = [ "$target_name" ] |
| 2057 } |
| 2058 name = target_name |
| 2059 fuzzer_test("blink_text_codec_" + name + "_fuzzer") { |
| 2060 sources = [ |
| 2061 "TextCodecFuzzer.cpp", |
| 2062 ] |
| 2063 deps = [ |
| 2064 ":blink_fuzzer_test_support", |
| 2065 ":platform", |
| 2066 ] |
| 2067 additional_configs = [ ":" + name + "_config" ] |
| 2068 } |
| 2069 } |
| 2070 |
| 2071 blink_text_codec_fuzzer("BIG5") { |
| 2072 } |
| 2073 blink_text_codec_fuzzer("EUC_JP") { |
| 2074 } |
| 2075 blink_text_codec_fuzzer("EUC_KR") { |
| 2076 } |
| 2077 blink_text_codec_fuzzer("GBK") { |
| 2078 } |
| 2079 blink_text_codec_fuzzer("IBM866") { |
| 2080 } |
| 2081 blink_text_codec_fuzzer("ISO_2022_JP") { |
| 2082 } |
| 2083 blink_text_codec_fuzzer("ISO_8859_10") { |
| 2084 } |
| 2085 blink_text_codec_fuzzer("ISO_8859_13") { |
| 2086 } |
| 2087 blink_text_codec_fuzzer("ISO_8859_14") { |
| 2088 } |
| 2089 blink_text_codec_fuzzer("ISO_8859_15") { |
| 2090 } |
| 2091 blink_text_codec_fuzzer("ISO_8859_16") { |
| 2092 } |
| 2093 blink_text_codec_fuzzer("ISO_8859_2") { |
| 2094 } |
| 2095 blink_text_codec_fuzzer("ISO_8859_3") { |
| 2096 } |
| 2097 blink_text_codec_fuzzer("ISO_8859_4") { |
| 2098 } |
| 2099 blink_text_codec_fuzzer("ISO_8859_5") { |
| 2100 } |
| 2101 blink_text_codec_fuzzer("ISO_8859_6") { |
| 2102 } |
| 2103 blink_text_codec_fuzzer("ISO_8859_7") { |
| 2104 } |
| 2105 blink_text_codec_fuzzer("ISO_8859_8") { |
| 2106 } |
| 2107 blink_text_codec_fuzzer("ISO_8859_8_I") { |
| 2108 } |
| 2109 blink_text_codec_fuzzer("KOI8_R") { |
| 2110 } |
| 2111 blink_text_codec_fuzzer("KOI8_U") { |
| 2112 } |
| 2113 blink_text_codec_fuzzer("SHIFT_JIS") { |
| 2114 } |
| 2115 blink_text_codec_fuzzer("UTF_16BE") { |
| 2116 } |
| 2117 blink_text_codec_fuzzer("UTF_16LE") { |
| 2118 } |
| 2119 blink_text_codec_fuzzer("UTF_32") { |
| 2120 } |
| 2121 blink_text_codec_fuzzer("UTF_32BE") { |
| 2122 } |
| 2123 blink_text_codec_fuzzer("UTF_32LE") { |
| 2124 } |
| 2125 blink_text_codec_fuzzer("UTF_8") { |
| 2126 } |
| 2127 blink_text_codec_fuzzer("GB18030") { |
| 2128 } |
| 2129 blink_text_codec_fuzzer("MACINTOSH") { |
| 2130 } |
| 2131 blink_text_codec_fuzzer("WINDOWS_1250") { |
| 2132 } |
| 2133 blink_text_codec_fuzzer("WINDOWS_1251") { |
| 2134 } |
| 2135 blink_text_codec_fuzzer("WINDOWS_1252") { |
| 2136 } |
| 2137 blink_text_codec_fuzzer("WINDOWS_1253") { |
| 2138 } |
| 2139 blink_text_codec_fuzzer("WINDOWS_1254") { |
| 2140 } |
| 2141 blink_text_codec_fuzzer("WINDOWS_1255") { |
| 2142 } |
| 2143 blink_text_codec_fuzzer("WINDOWS_1256") { |
| 2144 } |
| 2145 blink_text_codec_fuzzer("WINDOWS_1257") { |
| 2146 } |
| 2147 blink_text_codec_fuzzer("WINDOWS_1258") { |
| 2148 } |
| 2149 blink_text_codec_fuzzer("WINDOWS_874") { |
| 2150 } |
| 2151 blink_text_codec_fuzzer("X_MAC_CYRILLIC") { |
| 2152 } |
| 2153 blink_text_codec_fuzzer("X_USER_DEFINED") { |
| 2154 } |
| 2155 |
2052 # NOTE: These are legacy unit tests and tests that require a Platform | 2156 # NOTE: These are legacy unit tests and tests that require a Platform |
2053 # object. Do not add more unless the test requires a Platform object. | 2157 # object. Do not add more unless the test requires a Platform object. |
2054 # These tests are a part of the webkit_unit_tests binary. | 2158 # These tests are a part of the webkit_unit_tests binary. |
2055 source_set("unit_tests") { | 2159 source_set("unit_tests") { |
2056 testonly = true | 2160 testonly = true |
2057 visibility = [] | 2161 visibility = [] |
2058 visibility = [ "//third_party/WebKit/Source/*" ] | 2162 visibility = [ "//third_party/WebKit/Source/*" ] |
2059 sources = [ | 2163 sources = [ |
2060 "graphics/Canvas2DLayerBridgeTest.cpp", | 2164 "graphics/Canvas2DLayerBridgeTest.cpp", |
2061 "graphics/DeferredImageDecoderTest.cpp", | 2165 "graphics/DeferredImageDecoderTest.cpp", |
(...skipping 13 matching lines...) Expand all Loading... |
2075 "//third_party/WebKit/Source:config", | 2179 "//third_party/WebKit/Source:config", |
2076 "//third_party/WebKit/Source:inside_blink", | 2180 "//third_party/WebKit/Source:inside_blink", |
2077 ] | 2181 ] |
2078 | 2182 |
2079 deps = [ | 2183 deps = [ |
2080 ":test_support", | 2184 ":test_support", |
2081 "//testing/gmock", | 2185 "//testing/gmock", |
2082 "//testing/gtest", | 2186 "//testing/gtest", |
2083 ] | 2187 ] |
2084 } | 2188 } |
OLD | NEW |