OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//testing/test.gni") | 5 import("//testing/test.gni") |
6 | 6 |
7 component("common") { | 7 component("common") { |
8 output_name = "discardable_memory_common" | 8 output_name = "discardable_memory_common" |
9 | 9 |
10 defines = [ "DISCARDABLE_MEMORY_IMPLEMENTATION" ] | 10 defines = [ "DISCARDABLE_MEMORY_IMPLEMENTATION" ] |
11 | 11 |
12 sources = [ | 12 sources = [ |
13 "discardable_memory_export.h", | 13 "discardable_memory_export.h", |
14 "discardable_shared_memory_heap.cc", | 14 "discardable_shared_memory_heap.cc", |
15 "discardable_shared_memory_heap.h", | 15 "discardable_shared_memory_heap.h", |
16 "discardable_shared_memory_id.h", | |
17 ] | 16 ] |
18 | 17 |
19 deps = [ | 18 deps = [ |
20 "//base", | 19 "//base", |
21 ] | 20 ] |
22 } | 21 } |
23 | 22 |
24 source_set("unit_tests") { | 23 source_set("unit_tests") { |
25 testonly = true | 24 testonly = true |
26 | 25 |
27 sources = [ | 26 sources = [ |
28 "discardable_shared_memory_heap_unittest.cc", | 27 "discardable_shared_memory_heap_unittest.cc", |
29 ] | 28 ] |
30 | 29 |
31 deps = [ | 30 deps = [ |
32 ":common", | 31 ":common", |
33 "//base", | 32 "//base", |
34 "//testing/gtest", | 33 "//testing/gtest", |
35 ] | 34 ] |
36 } | 35 } |
OLD | NEW |