blob: 0ae8cc9275dd6b432059d188a7aba11d328637a9 [file] [log] [blame]
# Copyright 2016 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.
static_library("core") {
sources = [
"bloom_filter.cc",
"bloom_filter.h",
"host_filter.cc",
"host_filter.h",
"previews_black_list.cc",
"previews_black_list.h",
"previews_decider.h",
"previews_experiments.cc",
"previews_experiments.h",
"previews_features.cc",
"previews_features.h",
"previews_logger.cc",
"previews_logger.h",
"previews_logger_observer.h",
"previews_switches.cc",
"previews_switches.h",
]
deps = [
"//base",
"//components/blacklist/opt_out_blacklist",
"//components/variations",
"//net:net",
"//third_party/re2",
"//third_party/smhasher:murmurhash3",
"//url:url",
]
}
static_library("test_support") {
testonly = true
sources = [
"test_previews_decider.cc",
"test_previews_decider.h",
]
deps = [
":core",
"//base",
"//base/test:test_support",
"//net",
"//net:test_support",
"//testing/gmock",
"//testing/gtest",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"bloom_filter_unittest.cc",
"host_filter_unittest.cc",
"previews_black_list_unittest.cc",
"previews_experiments_unittest.cc",
"previews_logger_unittest.cc",
]
deps = [
":core",
":test_support",
"//base",
"//base/test:test_support",
"//components/blacklist/opt_out_blacklist",
"//components/variations",
"//net:net",
"//net:test_support",
"//testing/gtest",
"//url:url",
]
}