# 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_ash)
static_library("common") {
sources = [
"file_util.cc",
"file_util.h",
"icon_constants.cc",
"icon_constants.h",
"keyword_util.cc",
"keyword_util.h",
"search_result_util.cc",
"search_result_util.h",
"string_util.cc",
"string_util.h",
"types_util.cc",
"types_util.h",
]
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
deps = [
"//ash/public/cpp",
"//base",
"//chrome/browser/ash/app_list/search",
"//chrome/browser/ash/app_list/search/ranking",
"//chrome/browser/ash/file_manager",
"//chrome/browser/profiles:profile",
"//chromeos/ash/components/string_matching",
"//ui/base",
"//ui/gfx",
"//url",
]
allow_circular_includes_from = [
"//chrome/browser/ash/app_list/search",
"//chrome/browser/ash/app_list/search/ranking",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"keyword_util_unittest.cc",
"string_util_unittest.cc",
]
deps = [
":common",
"//base",
"//chrome/browser/ash/app_list/search",
"//chrome/browser/ui",
"//testing/gmock",
"//testing/gtest",
"//url",
]
}