blob: 9ffa0c72cb24b0df08406b8fff615faa3b89a21a [file] [log] [blame]
penghuangd81c1a62016-11-02 20:06:061# 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
5import("//testing/test.gni")
6
7component("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",
penghuangd81c1a62016-11-02 20:06:0616 ]
17
Nico Weberc74e1bd72020-01-14 02:15:3818 deps = [ "//base" ]
penghuangd81c1a62016-11-02 20:06:0619}
20
21source_set("unit_tests") {
22 testonly = true
23
Nico Weberc74e1bd72020-01-14 02:15:3824 sources = [ "discardable_shared_memory_heap_unittest.cc" ]
penghuangd81c1a62016-11-02 20:06:0625
26 deps = [
27 ":common",
28 "//base",
Thiabaud Engelbrechtf4e98d752020-07-28 00:44:0229 "//testing/gmock",
penghuangd81c1a62016-11-02 20:06:0630 "//testing/gtest",
31 ]
32}