penghuang | d81c1a6 | 2016-11-02 20:06:06 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import("//testing/test.gni") |
| 6 | |
| 7 | component("common") { |
| 8 | output_name = "discardable_memory_common" |
| 9 | |
| 10 | defines = [ "DISCARDABLE_MEMORY_IMPLEMENTATION" ] |
| 11 | |
| 12 | sources = [ |
| 13 | "discardable_memory_export.h", |
| 14 | "discardable_shared_memory_heap.cc", |
| 15 | "discardable_shared_memory_heap.h", |
penghuang | d81c1a6 | 2016-11-02 20:06:06 | [diff] [blame] | 16 | ] |
| 17 | |
Nico Weber | c74e1bd7 | 2020-01-14 02:15:38 | [diff] [blame] | 18 | deps = [ "//base" ] |
penghuang | d81c1a6 | 2016-11-02 20:06:06 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | source_set("unit_tests") { |
| 22 | testonly = true |
| 23 | |
Nico Weber | c74e1bd7 | 2020-01-14 02:15:38 | [diff] [blame] | 24 | sources = [ "discardable_shared_memory_heap_unittest.cc" ] |
penghuang | d81c1a6 | 2016-11-02 20:06:06 | [diff] [blame] | 25 | |
| 26 | deps = [ |
| 27 | ":common", |
| 28 | "//base", |
Thiabaud Engelbrecht | f4e98d75 | 2020-07-28 00:44:02 | [diff] [blame] | 29 | "//testing/gmock", |
penghuang | d81c1a6 | 2016-11-02 20:06:06 | [diff] [blame] | 30 | "//testing/gtest", |
| 31 | ] |
| 32 | } |