summaryrefslogtreecommitdiff
path: root/chromium/media/learning/mojo/BUILD.gn
blob: 7d2a654093c675488d118ef9238d4e1e0082f6c3 (plain)
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
52
53
# Copyright 2018 The Chromium Authors. All rights reserved.
# 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("impl") {
  output_name = "media_learning_mojo_impl"
  sources = [
    "mojo_learning_task_controller_service.cc",
    "mojo_learning_task_controller_service.h",
  ]

  defines = [ "IS_MEDIA_LEARNING_MOJO_IMPL" ]

  deps = [
    "//base",
    "//media/learning/common",

    # Since the mojom target generates a source set by default, make sure that
    # everybody depends on it themselves.
    "//media/learning/mojo/public/mojom",
    "//mojo/public/cpp/bindings",
  ]

  public_deps = [ "//media/learning/mojo/public/cpp" ]
}

# Unit Tests

source_set("unit_tests") {
  testonly = true

  sources = [ "mojo_learning_task_controller_service_unittest.cc" ]

  deps = [
    ":impl",
    "//base",
    "//base/test:test_support",
    "//media/learning/common",
    "//media/learning/mojo/public/cpp:unit_tests",
    "//media/learning/mojo/public/mojom",
    "//testing/gmock",
    "//testing/gtest",
  ]
}

test("media_learning_mojo_unittests") {
  deps = [
    ":unit_tests",
    "//mojo/core/test:run_all_unittests",
  ]
}