OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//components/scheduler/scheduler.gni") |
| 6 |
| 7 # GYP version: components/scheduler.gypi:scheduler |
| 8 component("scheduler") { |
| 9 sources = rebase_path(scheduler_gypi_values.scheduler_sources, |
| 10 ".", |
| 11 "//components/scheduler") |
| 12 |
| 13 defines = [ "SCHEDULER_IMPLEMENTATION" ] |
| 14 |
| 15 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 16 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 17 |
| 18 deps = [ |
| 19 ":common", |
| 20 "//base", |
| 21 "//cc:cc", |
| 22 "//third_party/WebKit/public:blink", |
| 23 "//ui/gfx:gfx", |
| 24 ] |
| 25 } |
| 26 |
| 27 # GYP version: components/scheduler.gypi:scheduler_common |
| 28 source_set("common") { |
| 29 sources = rebase_path(scheduler_gypi_values.scheduler_common_sources, |
| 30 ".", |
| 31 "//components/scheduler") |
| 32 } |
| 33 |
| 34 source_set("unit_tests") { |
| 35 testonly = true |
| 36 |
| 37 sources = [ |
| 38 "child/nestable_task_runner_for_test.cc", |
| 39 "child/nestable_task_runner_for_test.h", |
| 40 "child/prioritizing_task_queue_selector_unittest.cc", |
| 41 "child/scheduler_helper_unittest.cc", |
| 42 "child/task_queue_manager_unittest.cc", |
| 43 "child/test_time_source.cc", |
| 44 "child/test_time_source.h", |
| 45 "child/worker_scheduler_impl_unittest.cc", |
| 46 "renderer/deadline_task_runner_unittest.cc", |
| 47 "renderer/renderer_scheduler_impl_unittest.cc", |
| 48 ] |
| 49 |
| 50 deps = [ |
| 51 ":scheduler", |
| 52 "//cc:test_support", |
| 53 "//testing/gmock", |
| 54 "//testing/gtest", |
| 55 ] |
| 56 } |
OLD | NEW |