File: BUILD.gn

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (127 lines) | stat: -rw-r--r-- 3,948 bytes parent folder | download | duplicates (3)
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Copyright 2024 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/chromeos/ui_mode.gni")

assert(is_chromeos)

static_library("crd") {
  sources = [
    "crd_admin_session_controller.cc",
    "crd_admin_session_controller.h",
    "crd_logging.h",
    "crd_oauth_token_fetcher.cc",
    "crd_oauth_token_fetcher.h",
    "crd_remote_command_utils.cc",
    "crd_remote_command_utils.h",
    "crd_session_observer.h",
    "crd_support_host_observer_proxy.cc",
    "crd_support_host_observer_proxy.h",
    "crd_uma_logger.cc",
    "crd_uma_logger.h",
    "device_command_fetch_crd_availability_info_job.cc",
    "device_command_fetch_crd_availability_info_job.h",
    "device_command_start_crd_session_job.cc",
    "device_command_start_crd_session_job.h",
    "remote_activity_notification_controller.cc",
    "remote_activity_notification_controller.h",
    "shared_crd_session_impl.cc",
    "shared_crd_session_impl.h",
    "start_crd_session_job_delegate.cc",
    "start_crd_session_job_delegate.h",
  ]

  public_deps = [ "//chrome/browser:browser_public_dependencies" ]

  deps = [
    "//ash",
    "//base",
    "//chrome/browser:browser_process",
    "//chrome/browser/ash/app_mode/isolated_web_app",
    "//chrome/browser/ash/policy/core",
    "//chrome/browser/ash/policy/remote_commands/crd/public:interface",
    "//chrome/common:constants",
    "//chromeos/ash/components/dbus/userdataauth:userdataauth",
    "//chromeos/ash/services/network_config:in_process_instance",
    "//components/policy/core/common",
    "//components/policy/proto:",
    "//components/prefs",
    "//components/session_manager/core",
    "//components/user_manager",
    "//google_apis",
    "//mojo/public/cpp/bindings",
    "//remoting/base:errors",
    "//remoting/host:common",
    "//remoting/host:enterprise_params",
    "//remoting/host/chromeos:features",
    "//remoting/host/chromeos:remoting_service",
    "//remoting/host/mojom",
    "//ui/base",
  ]

  allow_circular_includes_from = [ "//chrome/browser/ash/policy/core" ]
}

static_library("test_support") {
  testonly = true

  sources = [
    "fake_start_crd_session_job_delegate.cc",
    "fake_start_crd_session_job_delegate.h",
  ]

  deps = [
    "//base",
    "//chrome/browser/ash/policy/remote_commands/crd",
    "//testing/gtest",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "crd_admin_session_controller_unittest.cc",
    "device_command_fetch_crd_availability_info_job_unittest.cc",
    "device_command_start_crd_session_job_unittest.cc",
    "shared_crd_session_impl_unittest.cc",
  ]

  deps = [
    "//ash",
    "//ash:test_support",
    "//ash/constants",
    "//ash/public/cpp",
    "//base",
    "//base/test:test_support",
    "//chrome/browser",
    "//chrome/browser/ash/app_mode",
    "//chrome/browser/ash/app_mode/web_app",
    "//chrome/browser/ash/policy/remote_commands:test_support",
    "//chrome/browser/ash/policy/remote_commands/crd",
    "//chrome/browser/ash/policy/remote_commands/crd:test_support",
    "//chrome/browser/ash/policy/remote_commands/crd/public:interface",
    "//chrome/browser/ash/settings:test_support",
    "//chrome/browser/prefs",
    "//chrome/browser/ui/ash/login:test_support",
    "//chrome/common:constants",
    "//chrome/test:test_support",
    "//chromeos/ash/services/network_config:in_process_instance",
    "//chromeos/crosapi/mojom",
    "//chromeos/services/network_config/public/mojom",
    "//components/policy/proto:",
    "//components/prefs",
    "//components/prefs:test_support",
    "//components/session_manager/core",
    "//content/test:test_support",
    "//mojo/public/cpp/bindings",
    "//remoting/base:errors",
    "//remoting/host:enterprise_params",
    "//remoting/host/chromeos:features",
    "//remoting/host/mojom",
    "//testing/gmock",
    "//testing/gtest",
    "//ui/base",
  ]
}