chromium/services/video_capture/public/cpp/BUILD.gn

# Copyright 2017 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("cpp") {
  sources = [
    "features.cc",
    "features.h",
    "receiver_media_to_mojo_adapter.cc",
    "receiver_media_to_mojo_adapter.h",
    "receiver_mojo_to_media_adapter.cc",
    "receiver_mojo_to_media_adapter.h",
    "video_frame_access_handler.cc",
    "video_frame_access_handler.h",
  ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  public_deps = [
    "//base",
    "//media",
    "//media/capture:capture",
    "//services/video_capture/public/mojom",
  ]

  deps = [ "//mojo/public/cpp/bindings:bindings" ]
}

source_set("mocks") {
  testonly = true

  sources = [
    "mock_producer.cc",
    "mock_producer.h",
    "mock_push_subscription.cc",
    "mock_push_subscription.h",
    "mock_video_capture_service.cc",
    "mock_video_capture_service.h",
    "mock_video_frame_handler.cc",
    "mock_video_frame_handler.h",
    "mock_video_source.cc",
    "mock_video_source.h",
    "mock_video_source_provider.cc",
    "mock_video_source_provider.h",
  ]

  public_deps = [
    "//services/video_capture/public/mojom",
    "//testing/gmock",
  ]

  deps = [ "//build:chromeos_buildflags" ]
}