# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

source_set("feature_engagement") {
  sources = [
    "tracker_factory.h",
    "tracker_factory.mm",
    "tracker_factory_util.h",
    "tracker_factory_util.mm",
    "tracker_util.h",
    "tracker_util.mm",
  ]

  configs += [ "//build/config/compiler:enable_arc" ]

  deps = [
    "//base",
    "//components/feature_engagement",
    "//components/keyed_service/core",
    "//components/keyed_service/ios",
    "//ios/chrome/browser",
    "//ios/chrome/browser/browser_state",
    "//ios/chrome/browser/ui/commands",
    "//ios/web/public",
  ]
}

source_set("eg_tests") {
  configs += [ "//build/config/compiler:enable_arc" ]
  testonly = true
  sources = [
    "feature_engagement_egtest.mm",
  ]
  deps = [
    ":feature_engagement",
    "//base",
    "//base/test:test_support",
    "//components/feature_engagement/public",
    "//ios/chrome/browser/browser_state",
    "//ios/chrome/test/app:test_support",
    "//ios/chrome/test/earl_grey:test_support",
    "//ios/testing/earl_grey:earl_grey_support",
  ]
}