Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / components / scheduler / BUILD.gn
blob3d6858f0c37f6c37912d4a06ca2f5d61631dc84c
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.
5 import("//components/scheduler/scheduler.gni")
7 # GYP version: components/scheduler.gypi:scheduler
8 component("scheduler") {
9   sources = rebase_path(scheduler_gypi_values.scheduler_sources,
10                         ".",
11                         "//components/scheduler")
13   defines = [ "SCHEDULER_IMPLEMENTATION" ]
15   # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
16   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
18   deps = [
19     "//base",
20     "//cc:cc",
21     "//third_party/WebKit/public:blink",
22     "//ui/gfx:gfx",
23   ]
25   public_deps = [
26     "//third_party/WebKit/public:blink",
27   ]
30 source_set("unit_tests") {
31   testonly = true
33   sources = [
34     "child/idle_helper_unittest.cc",
35     "child/nestable_task_runner_for_test.cc",
36     "child/nestable_task_runner_for_test.h",
37     "child/scheduler_helper_unittest.cc",
38     "child/scheduler_task_runner_delegate_for_test.cc",
39     "child/scheduler_task_runner_delegate_for_test.h",
40     "child/scheduler_task_runner_delegate_impl_unittest.cc",
41     "child/task_queue_manager_unittest.cc",
42     "child/task_queue_selector_unittest.cc",
43     "child/task_queue_sets_unittest.cc",
44     "child/test_time_source.cc",
45     "child/test_time_source.h",
46     "child/webthread_impl_for_worker_scheduler_unittest.cc",
47     "child/worker_scheduler_impl_unittest.cc",
48     "renderer/deadline_task_runner_unittest.cc",
49     "renderer/renderer_scheduler_impl_unittest.cc",
50     "renderer/task_cost_estimator_unittest.cc",
51     "renderer/webthread_impl_for_renderer_scheduler_unittest.cc",
52     "test/test_always_fail_time_source.cc",
53     "test/test_always_fail_time_source.h",
54   ]
56   deps = [
57     ":scheduler",
58     "//cc:test_support",
59     "//testing/gmock",
60     "//testing/gtest",
61   ]
64 # GYP version: components/scheduler.gypi:scheduler_test_support
65 static_library("test_support") {
66   sources = rebase_path(scheduler_gypi_values.scheduler_test_support_sources,
67                         ".",
68                         "//components/scheduler")
70   deps = [
71     "//base",
72   ]