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 (144 lines) | stat: -rw-r--r-- 3,887 bytes parent folder | download | duplicates (2)
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# 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("drive") {
  sources = [
    "drive_integration_service.cc",
    "drive_integration_service.h",
    "drivefs_native_message_host_ash.cc",
    "drivefs_native_message_host_ash.h",
    "file_system_util.cc",
    "file_system_util.h",
  ]

  public_deps = [
    "//base",
    "//chrome/browser:browser_public_dependencies",
    "//chrome/browser/profiles:profile",
    "//chromeos/ash/components/drivefs",
    "//chromeos/ash/components/drivefs/mojom",
    "//chromeos/ash/components/network",
    "//components/drive",
    "//components/keyed_service/core",
    "//components/prefs",
    "//google_apis/common",
    "//mojo/public/cpp/bindings",
    "//third_party/abseil-cpp:absl",
  ]

  deps = [
    "//ash/constants",
    "//chrome/browser:browser_process",
    "//chrome/browser/ash/profiles",
    "//chrome/browser/chromeos/drivefs",
    "//chrome/browser/chromeos/drivefs:native_message_host_origins",
    "//chrome/browser/profiles",
    "//chrome/common:constants",
    "//chromeos/ash/components/drivefs/mojom:mojom_shared",
    "//chromeos/ash/components/drivefs/mojom:mojom_shared_cpp_sources",
    "//chromeos/ash/components/login/login_state",
    "//chromeos/components/drivefs/mojom",
    "//chromeos/constants",
    "//components/metrics:metrics_pref_names",
    "//components/pref_registry",
    "//components/signin/public/identity_manager",
    "//components/user_manager",
    "//content/public/browser",
    "//extensions/browser/api/messaging:native_messaging",
    "//google_apis",
    "//services/network/public/cpp",
    "//storage/browser",
    "//ui/base",
    "//ui/chromeos/strings",
  ]
}

static_library("test_support") {
  testonly = true

  sources = [
    "drive_integration_service_browser_test_base.cc",
    "drive_integration_service_browser_test_base.h",
    "drivefs_test_support.cc",
    "drivefs_test_support.h",
  ]

  public_deps = [
    ":drive",
    "//base",
    "//chrome/test:test_support_ui",
    "//chromeos/ash/components/drivefs",
    "//chromeos/ash/components/drivefs:test_support",
    "//components/account_id",
  ]

  deps = [
    "//base/test:test_support",
    "//chrome/browser/ash/profiles",
    "//chrome/browser/profiles:profile",
    "//chrome/common:constants",
    "//chrome/common:non_code_constants",
    "//components/drive",
    "//components/prefs",
    "//components/user_manager",
  ]
}

source_set("browser_tests") {
  testonly = true

  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]

  sources = [ "drive_integration_service_browsertest.cc" ]

  deps = [
    ":drive",
    ":test_support",
    "//ash/constants",
    "//base",
    "//base/test:test_support",
    "//chrome/browser",
    "//chrome/browser/ash/file_manager",
    "//chrome/browser/profiles:profile",
    "//chrome/browser/ui",
    "//chromeos/ash/components/drivefs:test_support",
    "//chromeos/ash/components/drivefs/mojom",
    "//chromeos/components/drivefs/mojom",
    "//components/drive",
    "//components/prefs",
    "//components/prefs:test_support",
    "//content/test:test_support",
    "//mojo/public/cpp/bindings",
    "//storage/browser",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "drive_integration_service_unittest.cc",
    "file_system_util_unittest.cc",
  ]

  deps = [
    ":drive",
    "//ash/constants",
    "//base",
    "//chrome/browser/ash/login/users:test_support",
    "//chrome/test:test_support",
    "//chrome/test:test_support_ui",
    "//chromeos/ash/components/login/login_state",
    "//components/account_id",
    "//components/drive",
    "//components/prefs",
    "//components/user_manager",
    "//content/test:test_support",
    "//testing/gtest",
  ]
}