Chromium Code Reviews| 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("//testing/libfuzzer/fuzzer_test.gni") | |
| 6 | |
| 5 config("hunspell_config") { | 7 config("hunspell_config") { |
| 6 defines = [ | 8 defines = [ |
| 7 "HUNSPELL_STATIC", | 9 "HUNSPELL_STATIC", |
| 8 "HUNSPELL_CHROME_CLIENT", | 10 "HUNSPELL_CHROME_CLIENT", |
| 9 "USE_HUNSPELL", | 11 "USE_HUNSPELL", |
| 10 ] | 12 ] |
| 11 } | 13 } |
| 12 | 14 |
| 13 config("hunspell_warnings") { | 15 config("hunspell_warnings") { |
| 14 if (is_clang) { | 16 if (is_clang) { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 102 cflags += [ | 104 cflags += [ |
| 103 # affentry.cxx has one `while ((p = nextchar(p)));` parsing loop. | 105 # affentry.cxx has one `while ((p = nextchar(p)));` parsing loop. |
| 104 "-Wno-empty-body", | 106 "-Wno-empty-body", |
| 105 | 107 |
| 106 # affentry.hxx has NULL as default parameter for a FLAG in two | 108 # affentry.hxx has NULL as default parameter for a FLAG in two |
| 107 # places. | 109 # places. |
| 108 "-Wno-null-conversion", | 110 "-Wno-null-conversion", |
| 109 ] | 111 ] |
| 110 } | 112 } |
| 111 } | 113 } |
| 114 | |
| 115 fuzzer_test("hunspell_fuzzer") { | |
| 116 sources = [ | |
| 117 "fuzz/hunspell_fuzzer.cc", | |
|
please use gerrit instead
2016/06/01 17:09:17
Sources should include the header files, too. You
mmoroz
2016/06/02 10:54:36
Done.
| |
| 118 ] | |
| 119 deps = [ | |
| 120 ":hunspell", | |
| 121 ] | |
| 122 dict = "fuzz/hunspell.dict" | |
|
please use gerrit instead
2016/06/01 17:09:17
Either here or inside of hunspell.dict, explain th
mmoroz
2016/06/02 10:54:35
Done.
| |
| 123 } | |
| OLD | NEW |