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

Side by Side Diff: fuzzer/go/common/common.go

Issue 1668543004: Add AddressSanitizer to fuzzer analysis (Closed) Base URL: https://skia.googlesource.com/buildbot@remove-old-tests
Patch Set: add multi threaded delete Created 4 years, 10 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 package common 1 package common
2 2
3 import "sort" 3 import "sort"
4 4
5 const ( 5 const (
6 TEST_HARNESS_NAME = "fuzz" 6 TEST_HARNESS_NAME = "fuzz"
7 7
8 UNKNOWN_FUNCTION = "UNKNOWN" 8 UNKNOWN_FUNCTION = "UNKNOWN"
9 UNKNOWN_FILE = "UNKNOWN" 9 UNKNOWN_FILE = "UNKNOWN"
10 UNKNOWN_LINE = -1 10 UNKNOWN_LINE = -1
11
12 ASAN_OPTIONS = "ASAN_OPTIONS=detect_leaks=0 symbolize=1 allocator_may_re turn_null=1"
11 ) 13 )
12 14
13 var prettyFuzzCategories = map[string]string{ 15 var prettyFuzzCategories = map[string]string{
14 "api_paeth": "API - Paeth", 16 "api_paeth": "API - Paeth",
15 "skcodec": "SkCodec", 17 "skcodec": "SkCodec",
16 "skpicture": "SkPicture", 18 "skpicture": "SkPicture",
17 } 19 }
18 20
19 var FUZZ_CATEGORIES = []string{} 21 var FUZZ_CATEGORIES = []string{}
20 22
21 func init() { 23 func init() {
22 for k, _ := range prettyFuzzCategories { 24 for k, _ := range prettyFuzzCategories {
23 FUZZ_CATEGORIES = append(FUZZ_CATEGORIES, k) 25 FUZZ_CATEGORIES = append(FUZZ_CATEGORIES, k)
24 } 26 }
25 sort.Strings(FUZZ_CATEGORIES) 27 sort.Strings(FUZZ_CATEGORIES)
26 } 28 }
27 29
28 func PrettifyCategory(category string) string { 30 func PrettifyCategory(category string) string {
29 return prettyFuzzCategories[category] 31 return prettyFuzzCategories[category]
30 } 32 }
31 33
32 func HasCategory(c string) bool { 34 func HasCategory(c string) bool {
33 _, found := prettyFuzzCategories[c] 35 _, found := prettyFuzzCategories[c]
34 return found 36 return found
35 } 37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698