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