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

source_set("perf") {
  testonly = true
  sources = [
    "luci_test_result.cc",
    "luci_test_result.h",
    "perf_result_reporter.cc",
    "perf_result_reporter.h",
    "perf_test.cc",
    "perf_test.h",
  ]
  deps = [
    "//base",
    "//base:i18n",
    "//testing/gtest",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "confidence/ratio_bootstrap_estimator_test.cc",
    "luci_test_result_unittest.cc",
  ]
  deps = [
    ":perf",
    "//base",
    "//testing/gtest",
    "//testing/perf/confidence:ratio_bootstrap_estimator",
  ]

  # TODO(crbug.com/40031409): Fix code that adds exit-time destructors and
  # enable the diagnostic by removing this line.
  configs += [ "//build/config/compiler:no_exit_time_destructors" ]
}
