summaryrefslogtreecommitdiff
path: root/chromium/components/suggestions/BUILD.gn
blob: e33d5f175f6526a033173ee1a68e14350ce4e8b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Copyright 2014 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.

source_set("suggestions") {
  sources = [
    "blacklist_store.cc",
    "blacklist_store.h",
    "image_encoder.h",
    "image_fetcher.h",
    "image_fetcher_delegate.h",
    "image_manager.cc",
    "image_manager.h",
    "suggestions_pref_names.cc",
    "suggestions_pref_names.h",
    "suggestions_service.cc",
    "suggestions_service.h",
    "suggestions_store.cc",
    "suggestions_store.h",
  ]

  public_deps = [
    "//base",
    "//components/prefs",
    "//components/suggestions/proto",
    "//net",
    "//ui/gfx",
    "//url",
  ]
  deps = [
    "//components/data_use_measurement/core",
    "//components/google/core/browser",
    "//components/keyed_service/core",
    "//components/leveldb_proto",
    "//components/pref_registry",
    "//components/signin/core/browser",
    "//components/sync_driver:sync_driver",
    "//components/variations",
    "//components/variations/net",
    "//google_apis",
  ]

  if (is_ios) {
    sources += [ "image_encoder_ios.mm" ]
  } else {
    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",
    "//base/test:test_support",
    "//components/leveldb_proto:test_support",
    "//components/pref_registry:test_support",
    "//components/signin/core/browser:test_support",
    "//components/sync_driver:test_support",
    "//net:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}