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
ash / webui / graduation / BUILD.gn [blame]
# 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")
import("//testing/test.gni")
assert(is_chromeos_ash, "Graduation is ash-chrome only")
static_library("graduation") {
sources = [
"graduation_state_tracker.cc",
"graduation_state_tracker.h",
"graduation_ui.cc",
"graduation_ui.h",
"graduation_ui_handler.cc",
"graduation_ui_handler.h",
"webview_auth_handler.cc",
"webview_auth_handler.h",
]
public_deps = [ ":url_constants" ]
deps = [
"mojom:mojom",
"resources:resources",
"//ash:ash",
"//ash/constants:constants",
"//ash/public/cpp:cpp",
"//ash/webui/common:chrome_os_webui_config",
"//ash/webui/common:trusted_types_util",
"//ash/webui/system_apps/public:system_web_app_config",
"//ash/webui/system_apps/public:system_web_app_type",
"//base",
"//chromeos/ash/components/browser_context_helper",
"//chromeos/strings",
"//components/signin/public/base",
"//components/signin/public/identity_manager",
"//components/user_manager",
"//content/public/browser",
"//ui/base",
"//ui/webui",
"//ui/webui/resources",
]
}
# Url constants pulled out to enable depending on production url constants in
# browser tests.
source_set("url_constants") {
sources = [
"url_constants.cc",
"url_constants.h",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"graduation_ui_handler_unittest.cc",
"webview_auth_handler_unittest.cc",
]
deps = [
"mojom:mojom",
"//ash/public/cpp:cpp",
"//ash/webui/graduation:graduation",
"//base",
"//components/account_id",
"//components/signin/public/base",
"//components/signin/public/base:base",
"//components/signin/public/base:test_support",
"//components/signin/public/identity_manager",
"//components/signin/public/identity_manager:test_support",
"//components/sync_preferences:test_support",
"//components/user_manager:test_support",
"//content/test:test_support",
"//google_apis:google_apis",
"//mojo/public/cpp/bindings",
"//services/network:test_support",
"//testing/gtest",
]
}