1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51

media / mojo / common / BUILD.gn [blame]

# 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.

source_set("common") {
  sources = [
    "audio_data_s16_converter.cc",
    "audio_data_s16_converter.h",
    "input_error_code_converter.cc",
    "input_error_code_converter.h",
    "media_type_converters.cc",
    "media_type_converters.h",
    "mojo_data_pipe_read_write.cc",
    "mojo_data_pipe_read_write.h",
    "mojo_decoder_buffer_converter.cc",
    "mojo_decoder_buffer_converter.h",
    "mojo_pipe_read_write_util.cc",
    "mojo_pipe_read_write_util.h",
  ]

  deps = [
    "//base",
    "//gpu/ipc/common",
    "//media",
    "//media/mojo/mojom",
    "//mojo/public/cpp/bindings",
    "//mojo/public/cpp/system",
    "//ui/gfx/geometry",
    "//ui/gfx/geometry/mojom",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "audio_data_s16_converter_unittest.cc",
    "media_type_converters_unittest.cc",
    "mojo_data_pipe_read_write_unittest.cc",
    "mojo_decoder_buffer_converter_unittest.cc",
  ]

  deps = [
    "//base",
    "//base/test:test_support",
    "//media:test_support",
    "//media/mojo:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}