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
|
# Copyright 2019 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.
source_set("memory_pressure") {
sources = [
"memory_pressure_voter.cc",
"memory_pressure_voter.h",
"multi_source_memory_pressure_monitor.cc",
"multi_source_memory_pressure_monitor.h",
"system_memory_pressure_evaluator.cc",
"system_memory_pressure_evaluator.h",
"system_memory_pressure_evaluator_chromeos.cc",
"system_memory_pressure_evaluator_chromeos.h",
"system_memory_pressure_evaluator_mac.cc",
"system_memory_pressure_evaluator_mac.h",
"system_memory_pressure_evaluator_win.cc",
"system_memory_pressure_evaluator_win.h",
]
deps = [
"//base",
]
}
source_set("unittests") {
testonly = true
sources = [
"memory_pressure_voter_unittest.cc",
"multi_source_memory_pressure_monitor_unittest.cc",
"system_memory_pressure_evaluator_chromeos_unittest.cc",
"system_memory_pressure_evaluator_mac_unittest.cc",
"system_memory_pressure_evaluator_win_unittest.cc",
]
deps = [
":memory_pressure",
"//base",
"//base/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
}
|