| # 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("browser") { |
| sources = [ |
| "ruleset_distributor.h", |
| "ruleset_service.cc", |
| "ruleset_service.h", |
| "subresource_filter_constants.cc", |
| "subresource_filter_constants.h", |
| "subresource_filter_features.cc", |
| "subresource_filter_features.h", |
| ] |
| deps = [ |
| "//base", |
| "//components/prefs:prefs", |
| "//components/subresource_filter/core/common", |
| "//components/variations", |
| ] |
| } |
| |
| static_library("test_support") { |
| testonly = true |
| sources = [ |
| "subresource_filter_features_test_support.cc", |
| "subresource_filter_features_test_support.h", |
| ] |
| deps = [ |
| ":browser", |
| "//base", |
| "//components/variations", |
| "//testing/gtest", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "ruleset_service_unittest.cc", |
| "subresource_filter_features_unittest.cc", |
| ] |
| deps = [ |
| ":browser", |
| ":test_support", |
| "//base", |
| "//base/test:test_support", |
| "//components/prefs:test_support", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |