blob: 0b30c732a43973048c364a80b608821169a69a95 [file] [log] [blame]
# Copyright 2021 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if (is_android) {
import("//build/config/android/rules.gni")
}
component("power_scheduler") {
sources = [
"power_mode.cc",
"power_mode.h",
"power_mode_arbiter.cc",
"power_mode_arbiter.h",
"power_mode_voter.cc",
"power_mode_voter.h",
"traced_power_mode.cc",
"traced_power_mode.h",
]
defines = [ "IS_POWER_SCHEDULER_IMPL" ]
deps = [
"//base",
"//ui/gfx/geometry",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "power_mode_arbiter_unittest.cc" ]
deps = [
":power_scheduler",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
}