chromium/components/discardable_memory/client/BUILD.gn

# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//testing/test.gni")

component("client") {
  output_name = "discardable_memory_client"

  defines = [ "DISCARDABLE_MEMORY_IMPLEMENTATION" ]

  sources = [
    "client_discardable_shared_memory_manager.cc",
    "client_discardable_shared_memory_manager.h",
  ]

  deps = [
    "//base",
    "//components/crash/core/common:crash_key",
    "//components/discardable_memory/common",
    "//components/discardable_memory/public/mojom",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "client_discardable_shared_memory_manager_unittest.cc" ]

  deps = [
    ":client",
    "//base",
    "//base/test:test_support",
    "//testing/gtest",
  ]
}