chromium/components/subresource_filter/tools/rule_parser/BUILD.gn

# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//testing/libfuzzer/fuzzer_test.gni")

source_set("rule_parser") {
  sources = [
    "rule.cc",
    "rule.h",
    "rule_options.h",
    "rule_parser.cc",
    "rule_parser.h",
  ]
  public_deps = [
    "//base",
    "//components/url_pattern_index",
  ]
  deps = [ "//third_party/protobuf:protobuf_lite" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "rule_parser_unittest.cc",
    "rule_unittest.cc",
  ]
  deps = [
    ":rule_parser",
    "//base",
    "//components/url_pattern_index/proto:url_pattern_index",
    "//testing/gtest",
    "//third_party/protobuf:protobuf_lite",
  ]
}

fuzzer_test("subresource_filter_rule_parser_fuzzer") {
  sources = [ "rule_parser_fuzzer.cc" ]
  deps = [ ":rule_parser" ]
}