Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / memory_pressure / BUILD.gn
blob0ebc484ec58f91f773f5c278ec782c882aa4a388
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 # GYP version: components/memory_pressure.gypi:memory_pressure
6 source_set("memory_pressure") {
7   sources = [
8     "direct_memory_pressure_calculator.cc",
9     "direct_memory_pressure_calculator.h",
10     "direct_memory_pressure_calculator_win.cc",
11     "filtered_memory_pressure_calculator.cc",
12     "filtered_memory_pressure_calculator.h",
13     "memory_pressure_calculator.h",
14     "memory_pressure_listener.cc",
15     "memory_pressure_listener.h",
16     "memory_pressure_stats_collector.cc",
17     "memory_pressure_stats_collector.h",
18   ]
20   deps = [
21     "//base",
22   ]
25 source_set("unit_tests") {
26   testonly = true
27   sources = [
28     "direct_memory_pressure_calculator_win_unittest.cc",
29     "filtered_memory_pressure_calculator_unittest.cc",
30     "memory_pressure_stats_collector_unittest.cc",
31     "test_memory_pressure_calculator.cc",
32     "test_memory_pressure_calculator.h",
33   ]
35   deps = [
36     ":memory_pressure",
37     "//base/test:test_support",
38     "//testing/gtest",
39   ]