Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: third_party/WebKit/Source/platform/BUILD.gn

Issue 2731643002: Fuzzer for TextCodecs (Closed)
Patch Set: fuzzer overload Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 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_fuzzer_" + target_name) {
mmoroz 2017/03/03 09:49:47 Could you please name it in a way that it ends wit
Charlie Harrison 2017/03/03 19:33:55 Done.
2060 sources = [
2061 "TextCodecFuzzer.cpp",
2062 ]
2063 deps = [
2064 ":blink_fuzzer_test_support",
2065 ":platform",
2066 ]
2067 additional_configs = [ ":" + name + "_config" ]
2068
2069 # Seed corpus uploaded to Google Cloud Storage bucket used by ClusterFuzz.
mmoroz 2017/03/03 09:49:47 Do you have the same seed corpus set for all the c
Charlie Harrison 2017/03/03 19:33:55 Right now there is just one named "blink_text_code
2070 }
2071 }
2072
2073 blink_text_codec_fuzzer("BIG5") {
2074 }
2075 blink_text_codec_fuzzer("EUC_JP") {
2076 }
2077 blink_text_codec_fuzzer("EUC_KR") {
2078 }
2079 blink_text_codec_fuzzer("GBK") {
2080 }
2081 blink_text_codec_fuzzer("IBM866") {
2082 }
2083 blink_text_codec_fuzzer("ISO_2022_JP") {
2084 }
2085 blink_text_codec_fuzzer("ISO_8859_10") {
2086 }
2087 blink_text_codec_fuzzer("ISO_8859_13") {
2088 }
2089 blink_text_codec_fuzzer("ISO_8859_14") {
2090 }
2091 blink_text_codec_fuzzer("ISO_8859_15") {
2092 }
2093 blink_text_codec_fuzzer("ISO_8859_16") {
2094 }
2095 blink_text_codec_fuzzer("ISO_8859_2") {
2096 }
2097 blink_text_codec_fuzzer("ISO_8859_3") {
2098 }
2099 blink_text_codec_fuzzer("ISO_8859_4") {
2100 }
2101 blink_text_codec_fuzzer("ISO_8859_5") {
2102 }
2103 blink_text_codec_fuzzer("ISO_8859_6") {
2104 }
2105 blink_text_codec_fuzzer("ISO_8859_7") {
2106 }
2107 blink_text_codec_fuzzer("ISO_8859_8") {
2108 }
2109 blink_text_codec_fuzzer("ISO_8859_8_I") {
2110 }
2111 blink_text_codec_fuzzer("KOI8_R") {
2112 }
2113 blink_text_codec_fuzzer("KOI8_U") {
2114 }
2115 blink_text_codec_fuzzer("SHIFT_JIS") {
2116 }
2117 blink_text_codec_fuzzer("UTF_16BE") {
2118 }
2119 blink_text_codec_fuzzer("UTF_16LE") {
2120 }
2121 blink_text_codec_fuzzer("UTF_32") {
2122 }
2123 blink_text_codec_fuzzer("UTF_32BE") {
2124 }
2125 blink_text_codec_fuzzer("UTF_32LE") {
2126 }
2127 blink_text_codec_fuzzer("UTF_8") {
2128 }
2129 blink_text_codec_fuzzer("GB18030") {
2130 }
2131 blink_text_codec_fuzzer("MACINTOSH") {
2132 }
2133 blink_text_codec_fuzzer("WINDOWS_1250") {
2134 }
2135 blink_text_codec_fuzzer("WINDOWS_1251") {
2136 }
2137 blink_text_codec_fuzzer("WINDOWS_1252") {
2138 }
2139 blink_text_codec_fuzzer("WINDOWS_1253") {
2140 }
2141 blink_text_codec_fuzzer("WINDOWS_1254") {
2142 }
2143 blink_text_codec_fuzzer("WINDOWS_1255") {
2144 }
2145 blink_text_codec_fuzzer("WINDOWS_1256") {
2146 }
2147 blink_text_codec_fuzzer("WINDOWS_1257") {
2148 }
2149 blink_text_codec_fuzzer("WINDOWS_1258") {
2150 }
2151 blink_text_codec_fuzzer("WINDOWS_874") {
2152 }
2153 blink_text_codec_fuzzer("X_MAC_CYRILLIC") {
2154 }
2155 blink_text_codec_fuzzer("X_USER_DEFINED") {
2156 }
2157
2052 # NOTE: These are legacy unit tests and tests that require a Platform 2158 # 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. 2159 # object. Do not add more unless the test requires a Platform object.
2054 # These tests are a part of the webkit_unit_tests binary. 2160 # These tests are a part of the webkit_unit_tests binary.
2055 source_set("unit_tests") { 2161 source_set("unit_tests") {
2056 testonly = true 2162 testonly = true
2057 visibility = [] 2163 visibility = []
2058 visibility = [ "//third_party/WebKit/Source/*" ] 2164 visibility = [ "//third_party/WebKit/Source/*" ]
2059 sources = [ 2165 sources = [
2060 "graphics/Canvas2DLayerBridgeTest.cpp", 2166 "graphics/Canvas2DLayerBridgeTest.cpp",
2061 "graphics/DeferredImageDecoderTest.cpp", 2167 "graphics/DeferredImageDecoderTest.cpp",
(...skipping 13 matching lines...) Expand all
2075 "//third_party/WebKit/Source:config", 2181 "//third_party/WebKit/Source:config",
2076 "//third_party/WebKit/Source:inside_blink", 2182 "//third_party/WebKit/Source:inside_blink",
2077 ] 2183 ]
2078 2184
2079 deps = [ 2185 deps = [
2080 ":test_support", 2186 ":test_support",
2081 "//testing/gmock", 2187 "//testing/gmock",
2082 "//testing/gtest", 2188 "//testing/gtest",
2083 ] 2189 ]
2084 } 2190 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698