chromium/third_party/blink/renderer/modules/idle/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("//third_party/blink/renderer/modules/modules.gni")

blink_modules_sources("idle") {
  sources = [
    "idle_detector.cc",
    "idle_detector.h",
    "idle_manager.cc",
    "idle_manager.h",
  ]

  deps = [ "//third_party/blink/renderer/modules/permissions" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "idle_detector_test.cc" ]

  configs += [
    "//third_party/blink/renderer:config",
    "//third_party/blink/renderer:inside_blink",
    "//third_party/blink/renderer/core:blink_core_pch",
  ]

  deps = [
    "//base/test:test_support",
    "//testing/gmock",
    "//testing/gtest",
    "//third_party/blink/renderer/controller:blink_bindings_test_sources",
    "//third_party/blink/renderer/modules",
    "//third_party/blink/renderer/platform",
    "//third_party/blink/renderer/platform:test_support",
    "//third_party/blink/renderer/platform/wtf",
  ]
}