File: BUILD.gn

package info (click to toggle)
chromium 138.0.7204.183-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 6,080,960 kB
  • sloc: cpp: 34,937,079; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,954; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,811; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (113 lines) | stat: -rw-r--r-- 3,416 bytes parent folder | download | duplicates (4)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# Copyright 2025 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/ozone.gni")
import("//build/config/ui.gni")
import("//testing/test.gni")

source_set("internal_test_placeholder_constants") {
  testonly = true
  sources = [ "internal_test_placeholder_constants.h" ]
}

source_set("e2e_test_support") {
  testonly = true
  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
  sources = [
    "glic_e2e_test.cc",
    "glic_e2e_test.h",
  ]
  if (checkout_glic_e2e_tests) {
    defines += [ "ENABLE_GLIC_INTERNAL_TESTS=1" ]
  }

  # Internal targets also use the dependencies by depending on this target.
  public_deps = [
    "//chrome/browser",
    "//chrome/browser:browser_process",
    "//chrome/browser/autofill:test_support_ui",
    "//chrome/browser/contextual_cueing",
    "//chrome/browser/glic",
    "//chrome/browser/glic:impl",
    "//chrome/browser/glic/fre",
    "//chrome/browser/glic/test_support",
    "//chrome/browser/signin/e2e_tests:test_support",
    "//chrome/browser/ui:ui_features",
    "//chrome/common:constants",
    "//chrome/test:test_support",
    "//chrome/test:test_support_ui",
    "//content/test:test_support",
  ]
  if (checkout_glic_e2e_tests) {
    public_deps += [ "//chrome/browser/glic/e2e_test/internal:constants" ]
  } else {
    public_deps += [ ":internal_test_placeholder_constants" ]
  }
}

test("glic_internal_e2e_interactive_ui_tests") {
  use_xvfb = use_xvfb_in_this_config
  configs += [ "//build/config:precompiled_headers" ]
  sources = [
    # TODO(crbug.com/399665693): This is needed because we are using WPR
    # definition in autofill test utilities. This can be removed when WPR
    # utilities is separated.
    "../../../browser/ui/views/translate/translate_bubble_test_utils_views.cc",
    "../../../test/base/interactive_ui_tests_main.cc",
  ]
  data = [
    "//chrome/browser/internal/resources/signin/test_accounts.json",

    # TODO(crbug.com/399665693): Remove unneeded data after refactoring.
    # Used in wpr utilities.
    "//chrome/test/data/web_page_replay_go_helper_scripts/automation_helper.js",
    "//components/test/data/autofill/web_page_replay_support_files/",

    # WPR binary.
    "//third_party/catapult/telemetry/telemetry/bin/",

    # Used in WPR command.
    "//third_party/catapult/web_page_replay_go/deterministic.js",
  ]
  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
  deps = [
    ":e2e_test_support",

    # TODO(crbug.com/399665693): Remove unneeded deps after refactoring.
    # Required for translate_bubble_test_utils_views.cc
    "//chrome/browser/ui/browser_window:browser_window",
    "//chrome/test:chrome_test_launcher",
    "//chrome/test:test_support",
    "//chrome/test:test_support_ui",
  ]

  if (checkout_glic_e2e_tests) {
    # Real internal test code is defined in this target.
    deps += [ "internal:e2e_tests" ]
    data += [ "internal/wpr_recordings/" ]
  }

  if (use_aura) {
    deps += [ "//ui/aura:test_support" ]
  }

  if (use_ozone) {
    deps += [
      "//ui/ozone",
      "//ui/platform_window/common",
    ]
  }

  if (is_win) {
    deps += [
      "//chrome:browser_tests_pak",
      "//chrome:packed_resources",
      "//chrome:resources",
      "//chrome:strings",
      "//chrome/installer/util:strings",
      "//ui/resources:ui_test_pak",
      "//ui/resources:ui_test_pak_data",
    ]
  }
}