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", |
16 ] | 17 ] |
17 | 18 |
18 deps = [ | 19 deps = [ |
19 "//base", | 20 "//base", |
20 ] | 21 ] |
21 } | 22 } |
22 | 23 |
23 source_set("unit_tests") { | 24 source_set("unit_tests") { |
24 testonly = true | 25 testonly = true |
25 | 26 |
26 sources = [ | 27 sources = [ |
27 "discardable_shared_memory_heap_unittest.cc", | 28 "discardable_shared_memory_heap_unittest.cc", |
28 ] | 29 ] |
29 | 30 |
30 deps = [ | 31 deps = [ |
31 ":common", | 32 ":common", |
32 "//base", | 33 "//base", |
33 "//testing/gtest", | 34 "//testing/gtest", |
34 ] | 35 ] |
35 } | 36 } |
OLD | NEW |