Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / components / suggestions / BUILD.gn
blob28ff8228ca4218a5c44d0272802aed152127b80f
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 source_set("suggestions") {
6   sources = [
7     "blacklist_store.cc",
8     "blacklist_store.h",
9     "image_encoder.h",
10     "image_fetcher.h",
11     "image_fetcher_delegate.h",
12     "image_manager.cc",
13     "image_manager.h",
14     "suggestions_pref_names.cc",
15     "suggestions_pref_names.h",
16     "suggestions_service.cc",
17     "suggestions_service.h",
18     "suggestions_store.cc",
19     "suggestions_store.h",
20     "suggestions_utils.cc",
21     "suggestions_utils.h",
22   ]
24   public_deps = [
25     "//base",
26     "//components/suggestions/proto",
27     "//net",
28     "//ui/gfx",
29     "//url",
30   ]
31   deps = [
32     "//components/data_use_measurement/core",
33     "//components/keyed_service/core",
34     "//components/pref_registry",
35     "//components/variations",
36     "//components/variations/net",
37   ]
39   if (is_ios) {
40     sources += [ "image_encoder_ios.mm" ]
41   } else {
42     sources += [ "image_encoder.cc" ]
43   }
46 source_set("unit_tests") {
47   testonly = true
48   sources = [
49     "blacklist_store_unittest.cc",
50     "image_manager_unittest.cc",
51     "suggestions_service_unittest.cc",
52     "suggestions_store_unittest.cc",
53   ]
54   deps = [
55     ":suggestions",
56     "//testing/gmock",
57     "//testing/gtest",
58   ]