chromium/ios/chrome/browser/feature_engagement/model/BUILD.gn

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

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

  deps = [
    "//base",
    "//components/feature_engagement",
    "//components/keyed_service/core",
    "//components/keyed_service/ios",
    "//components/leveldb_proto",
    "//ios/chrome/app:tests_hook",
    "//ios/chrome/browser/default_browser/model:event_exporter",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/web/public",
  ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [ "feature_engagement_egtest.mm" ]
  deps = [
    "//base",
    "//components/feature_engagement/public",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/shared/ui/table_view:constants",
    "//ios/chrome/browser/ui/popup_menu:constants",
    "//ios/chrome/test:eg_test_support+eg2",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/chrome/test/earl_grey:switches",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//net:test_support",
    "//ui/base",
    "//url",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "feature_engagement_unittest.mm",
    "ios_tracker_session_controller_unittest.mm",
  ]
  frameworks = [ "Foundation.framework" ]
  deps = [
    ":model",
    "//base",
    "//base/test:test_support",
    "//components/feature_engagement/public",
    "//components/feature_engagement/test:test_support",
    "//testing/gtest",
  ]
}