# Copyright 2022 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 = [
"text_classifier_model_service.h",
"text_classifier_model_service.mm",
"text_classifier_model_service_factory.h",
"text_classifier_model_service_factory.mm",
]
deps = [
":model_utils",
"//base",
"//components/keyed_service/ios",
"//components/optimization_guide/core",
"//components/optimization_guide/proto:optimization_guide_proto",
"//ios/chrome/browser/optimization_guide/model",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile",
]
}
source_set("model_utils") {
sources = [
"text_selection_util.h",
"text_selection_util.mm",
]
deps = [ "//base" ]
}
source_set("test_support") {
testonly = true
sources = [
"text_classifier_model_service_fake.h",
"text_classifier_model_service_fake.mm",
]
deps = [
":model",
"//base",
"//components/keyed_service/ios",
"//components/optimization_guide/core",
"//ios/chrome/browser/optimization_guide/model",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/profile",
]
}