| Index: components/suggestions/BUILD.gn
|
| diff --git a/components/suggestions/BUILD.gn b/components/suggestions/BUILD.gn
|
| index 58291765f4860dc76e827c1c4fc11738f6b6787b..389a19bb10e87caf4a49e153245a48087f95b843 100644
|
| --- a/components/suggestions/BUILD.gn
|
| +++ b/components/suggestions/BUILD.gn
|
| @@ -2,7 +2,7 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| -static_library("suggestions") {
|
| +source_set("suggestions") {
|
| sources = [
|
| "blacklist_store.cc",
|
| "blacklist_store.h",
|
| @@ -21,17 +21,19 @@ static_library("suggestions") {
|
| "suggestions_utils.h",
|
| ]
|
|
|
| - deps = [
|
| + public_deps = [
|
| "//base",
|
| - "//components/keyed_service/core",
|
| - "//components/pref_registry",
|
| "//components/suggestions/proto",
|
| - "//components/variations",
|
| - "//components/variations/net",
|
| "//net",
|
| "//ui/gfx",
|
| "//url",
|
| ]
|
| + deps = [
|
| + "//components/keyed_service/core",
|
| + "//components/pref_registry",
|
| + "//components/variations",
|
| + "//components/variations/net",
|
| + ]
|
|
|
| if (is_ios) {
|
| sources += [ "image_encoder_ios.mm" ]
|
| @@ -39,3 +41,18 @@ static_library("suggestions") {
|
| sources += [ "image_encoder.cc" ]
|
| }
|
| }
|
| +
|
| +source_set("unit_tests") {
|
| + testonly = true
|
| + sources = [
|
| + "blacklist_store_unittest.cc",
|
| + "image_manager_unittest.cc",
|
| + "suggestions_service_unittest.cc",
|
| + "suggestions_store_unittest.cc",
|
| + ]
|
| + deps = [
|
| + ":suggestions",
|
| + "//testing/gmock",
|
| + "//testing/gtest",
|
| + ]
|
| +}
|
|
|