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

assert(is_apple)

source_set("test_support") {
  visibility = [ "//media/capture/video/apple:unit_tests" ]
  testonly = true

  sources = [
    "fake_av_capture_device_format.h",
    "fake_av_capture_device_format.mm",
    "mock_video_capture_device_avfoundation_frame_receiver.h",
    "mock_video_capture_device_avfoundation_frame_receiver.mm",
    "pixel_buffer_test_utils.cc",
    "pixel_buffer_test_utils.h",
    "video_capture_test_utils.h",
    "video_capture_test_utils.mm",
  ]

  deps = [
    "//base",
    "//base/test:test_support",
    "//media",
    "//media/capture/video/apple",
    "//testing/gmock",
    "//third_party/libyuv",
  ]

  frameworks = [
    "AVFoundation.framework",
    "CoreMedia.framework",
    "CoreVideo.framework",
    "Foundation.framework",
    "IOSurface.framework",
    "VideoToolbox.framework",
  ]

  if (is_ios) {
    frameworks += [ "UIKit.framework" ]
  }
}
