blob: d94987b4663120c1f0cb3545f0cec40272e604fc [file] [log] [blame]
# Copyright 2023 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/buildflag_header.gni")
import("//chromeos/ash/components/scalable_iph/scalable_iph.gni")
assert(is_chromeos)
component("constants") {
defines = [ "IS_SCALABLE_IPH_CONSTANTS_IMPL" ]
sources = [
"scalable_iph_constants.cc",
"scalable_iph_constants.h",
]
public_deps = [ "//base" ]
}
component("scalable_iph") {
defines = [ "IS_CHROMEOS_ASH_COMPONENTS_SCALABLE_IPH_IMPL" ]
sources = [
"config.cc",
"config.h",
"iph_session.cc",
"iph_session.h",
"logger.cc",
"logger.h",
"scalable_iph.cc",
"scalable_iph.h",
"scalable_iph_delegate.cc",
"scalable_iph_delegate.h",
"scalable_iph_factory.cc",
"scalable_iph_factory.h",
]
deps = [
":constants",
"//ash/constants",
"//base",
"//chromeos/ash/components/browser_context_helper",
"//components/feature_engagement/public",
"//components/keyed_service/content",
"//components/keyed_service/core",
]
}
buildflag_header("buildflags") {
header = "buildflags.h"
flags = [ "ENABLE_CROS_SCALABLE_IPH=$enable_cros_scalable_iph" ]
}
source_set("unit_tests") {
testonly = true
sources = [ "scalable_iph_unittest.cc" ]
deps = [
":constants",
":scalable_iph",
"//chrome/browser/ash/scalable_iph:test_support",
"//components/feature_engagement/public",
"//testing/gmock",
"//testing/gtest",
]
}