blob: 92d896f521ed45949b86eb7fbc2f77398e94c234 [file] [log] [blame]
Antonio Gomes358076c2024-10-03 12:15:581# Copyright 2024 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5assert(is_win || is_mac || is_linux || is_chromeos || is_android)
6
7source_set("chooser_controller") {
8 sources = [
9 "title_util.cc",
10 "title_util.h",
11 ]
12 deps = [
13 "//base",
14 "//chrome/browser/profiles:profile",
15 "//chrome/browser/ui:url_identity",
16 "//content/public/browser",
17 "//ui/base",
18 "//url",
19 ]
20}
21
22if (!is_android) {
23 source_set("browser_tests") {
24 testonly = true
25 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
26 sources = [ "title_util_browsertest.cc" ]
27 deps = [
28 ":chooser_controller",
29 "//base/test:test_support",
30 "//chrome/test:test_support",
31 ]
32 }
33}
34
35source_set("unit_tests") {
36 testonly = true
37 sources = [ "title_util_unittest.cc" ]
38 deps = [
39 ":chooser_controller",
40 "//base/test:test_support",
41 "//chrome/app:generated_resources",
42 "//chrome/test:test_support",
43 "//components/strings:components_strings",
44 "//content/test:test_support",
45 "//services/data_decoder/public/cpp:test_support",
46 "//url",
47 ]
48 if (!is_android) {
49 deps += [
50 "//chrome/browser/extensions:test_support",
51 "//chrome/browser/web_applications:web_applications_test_support",
52 "//extensions:test_support",
53 ]
54 }
55}