# Copyright 2021 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import("//third_party/protobuf/proto_library.gni") assert(is_chromeos) proto_library("proto") { sources = [ "ftrl_optimizer.proto", "mrfu_cache.proto", "score_normalizer.proto", ] } static_library("util") { sources = [ "ftrl_optimizer.cc", "ftrl_optimizer.h", "mrfu_cache.cc", "mrfu_cache.h", "score_normalizer.cc", "score_normalizer.h", ] public_deps = [ "//chrome/browser:browser_public_dependencies" ] deps = [ ":proto", "//ash", "//base", ] } source_set("unit_tests") { testonly = true sources = [ "ftrl_optimizer_unittest.cc", "mrfu_cache_unittest.cc", "score_normalizer_unittest.cc", ] deps = [ ":util", "//base", "//base/test:test_support", "//chrome/browser/ash/app_list/search", "//chrome/browser/ash/app_list/search/test:test_support", "//chrome/browser/ash/app_list/search/util:proto", "//chrome/browser/ui", "//testing/gmock", "//testing/gtest", ] }