summaryrefslogtreecommitdiffstats
path: root/components/web_view/test_runner/BUILD.gn
blob: 96434bfde7979c8d3d021894d2cd176deb8151c8 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
# Copyright 2015 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("//mojo/public/mojo_application.gni")
import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")

executable("test_runner") {
  output_name = "layout_test_runner"
  testonly = true

  sources = [
    "launcher.cc",
    "launcher.h",
    "main.cc",
    "register_local_aliases.cc",
  ]

  deps = [
    "//base",
    "//build/config/sanitizers:deps",
    "//mojo/common",
    "//mojo/environment:chromium",
    "//mojo/runner:lib",
    "//mojo/runner:register_local_aliases_fwd",
    "//url",
  ]

  data_deps = [
    ":web_view_test_runner",
    "//components/html_viewer",
    "//tools/imagediff",
  ]

  if (is_linux) {
    data_deps += [
      "//breakpad:dump_syms($host_toolchain)",
      "//breakpad:minidump_stackwalk($host_toolchain)",
    ]
  }
}

mojo_native_application("web_view_test_runner") {
  testonly = true

  sources = [
    "test_runner_application_delegate.cc",
    "test_runner_application_delegate.h",
    "test_runner_main.cc",
  ]

  deps = [
    "//base",
    "//components/html_viewer/public/interfaces",
    "//components/mus/public/cpp",
    "//components/test_runner",
    "//components/web_view/public/cpp",
    "//components/web_view/public/interfaces",
    "//components/web_view/test_runner/public/interfaces",
    "//mojo/application/public/cpp",
    "//mojo/common",
    "//mojo/converters/geometry",
    "//ui/gfx/geometry",
    "//url",
  ]
}