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
media / learning / common / BUILD.gn [blame]
# 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.
component("common") {
output_name = "learning_common"
visibility = [
"//media/learning",
"//media/learning/common:unit_tests",
"//media/learning/impl:*",
"//media/learning/impl:test_support",
"//media/learning/mojo:*",
"//media/learning/mojo/public/cpp:*",
"//media/learning/mojo/public/mojom:*",
# Actual client code
"//media/capabilities",
"//third_party/blink/renderer/platform/media:*",
# Test code
"//media/mojo/services:unit_tests",
]
defines = [ "IS_LEARNING_COMMON_IMPL" ]
sources = [
"feature_dictionary.cc",
"feature_dictionary.h",
"feature_library.cc",
"feature_library.h",
"labelled_example.cc",
"labelled_example.h",
"learning_session.cc",
"learning_session.h",
"learning_task.cc",
"learning_task.h",
"learning_task_controller.h",
"media_learning_tasks.cc",
"media_learning_tasks.h",
"target_histogram.cc",
"target_histogram.h",
"value.cc",
"value.h",
]
deps = [
"//base",
"//services/metrics/public/cpp:metrics_cpp",
]
configs += [ "//build/config/compiler:wexit_time_destructors" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"feature_dictionary_unittest.cc",
"labelled_example_unittest.cc",
"media_learning_tasks_unittest.cc",
"target_histogram_unittest.cc",
"value_unittest.cc",
]
deps = [
":common",
"//base/test:test_support",
"//media:test_support",
"//testing/gmock",
"//testing/gtest",
]
}