# Copyright 2022 The Cobalt Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set_defaults("test") {
  configs = []
}

template("test") {
  target(gtest_target_type, target_name) {
    testonly = true
    forward_variables_from(invoker, "*", [ "configs" ])
    configs += invoker.configs
  }
}

template("fuzzer_test") {
  not_needed("*")
  not_needed(invoker, "*")
}
