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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# 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.
import("//testing/libfuzzer/fuzzer_test.gni")
component("impl") {
output_name = "learning_impl"
visibility = [
"//media/learning/impl:unit_tests",
"//media/learning/impl:learning_fuzzer",
# Actual clients.
"//content/browser",
"//media/capabilities",
"//media/mojo/services",
]
sources = [
"distribution_reporter.cc",
"distribution_reporter.h",
"extra_trees_trainer.cc",
"extra_trees_trainer.h",
"feature_provider.cc",
"feature_provider.h",
"learning_session_impl.cc",
"learning_session_impl.h",
"learning_task_controller_helper.cc",
"learning_task_controller_helper.h",
"learning_task_controller_impl.cc",
"learning_task_controller_impl.h",
"lookup_table_trainer.cc",
"lookup_table_trainer.h",
"model.h",
"one_hot.cc",
"one_hot.h",
"random_number_generator.cc",
"random_number_generator.h",
"random_tree_trainer.cc",
"random_tree_trainer.h",
"training_algorithm.h",
"voting_ensemble.cc",
"voting_ensemble.h",
]
defines = [ "IS_LEARNING_IMPL_IMPL" ]
deps = [
"//base",
"//services/metrics/public/cpp:metrics_cpp",
"//services/metrics/public/cpp:ukm_builders",
]
public_deps = [ "//media/learning/common" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"distribution_reporter_unittest.cc",
"extra_trees_trainer_unittest.cc",
"fisher_iris_dataset.cc",
"fisher_iris_dataset.h",
"learning_session_impl_unittest.cc",
"learning_task_controller_helper_unittest.cc",
"learning_task_controller_impl_unittest.cc",
"lookup_table_trainer_unittest.cc",
"one_hot_unittest.cc",
"random_number_generator_unittest.cc",
"random_tree_trainer_unittest.cc",
"test_random_number_generator.cc",
"test_random_number_generator.h",
]
deps = [
":impl",
"//base/test:test_support",
"//components/ukm:test_support",
"//media:test_support",
"//media/learning/impl",
"//testing/gtest",
]
}
fuzzer_test("learning_fuzzer") {
sources = [ "learning_fuzzertest.cc" ]
deps = [
":impl",
"//base",
"//base/test:test_support",
]
}
|