chromium/components/content_capture/browser/BUILD.gn

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

source_set("browser") {
  sources = [
    "content_capture_consumer.h",
    "content_capture_frame.cc",
    "content_capture_frame.h",
    "content_capture_receiver.cc",
    "content_capture_receiver.h",
    "onscreen_content_provider.cc",
    "onscreen_content_provider.h",
  ]

  public_deps = [
    "//base",
    "//components/content_capture/common",
    "//components/content_capture/common:mojo_interfaces",
    "//content/public/browser",
    "//ui/gfx/geometry",
  ]

  deps = []
}

source_set("test_support") {
  testonly = true
  sources = [
    "content_capture_test_helper.cc",
    "content_capture_test_helper.h",
  ]

  public_deps = [
    ":browser",
    "//testing/gtest",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "content_capture_receiver_test.cc" ]

  deps = [
    ":test_support",
    "//base/test:test_support",
    "//content/test:test_support",
  ]
}

source_set("browser_tests") {
  testonly = true
  sources = [ "content_capture_receiver_browsertest.cc" ]

  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]

  public_deps = [
    ":test_support",
    "//base/test:test_support",
    "//content/public/browser",
    "//content/shell:content_shell_lib",
    "//content/test:browsertest_support",
    "//content/test:test_support",
  ]
}