summaryrefslogtreecommitdiff
path: root/chromium/ios/chrome/browser/ui/settings/sync/utils/BUILD.gn
blob: 0e66592a172bdfa0e2f876be5ae9fb48bf0b897a (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
70
71
72
73
74
75
76
77
78
79
80
81
82
# 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.

import("//ios/public/provider/chrome/browser/build_config.gni")

source_set("utils") {
  configs += [ "//build/config/compiler:enable_arc" ]
  sources = [
    "sync_error_infobar_delegate.h",
    "sync_error_infobar_delegate.mm",
    "sync_presenter.h",
    "sync_util.h",
    "sync_util.mm",
  ]
  deps = [
    "//base",
    "//components/browser_sync",
    "//components/infobars/core",
    "//components/strings",
    "//components/sync",
    "//google_apis",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/browser_state",
    "//ios/chrome/browser/infobars",
    "//ios/chrome/browser/signin",
    "//ios/chrome/browser/sync",
    "//ios/chrome/browser/tabs",
    "//ios/chrome/browser/ui/commands",
    "//ui/base",
    "//ui/gfx",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("unit_tests") {
  configs += [ "//build/config/compiler:enable_arc" ]
  testonly = true
  sources = [ "sync_error_infobar_delegate_unittest.mm" ]
  deps = [
    ":utils",
    "//base",
    "//base/test:test_support",
    "//components/signin/public/base",
    "//components/sync/driver",
    "//ios/chrome/browser/browser_state:test_support",
    "//ios/chrome/browser/infobars",
    "//ios/chrome/browser/sync",
    "//ios/chrome/browser/sync:test_support",
    "//ios/public/provider/chrome/browser/signin",
    "//ios/web/public/test",
    "//testing/gtest",
    "//third_party/ocmock",
  ]
}

source_set("eg2_tests") {
  defines = [ "CHROME_EARL_GREY_2" ]
  configs += [
    "//build/config/compiler:enable_arc",
    "//build/config/ios:xctest_config",
  ]
  testonly = true

  sources = [ "sync_fake_server_egtest.mm" ]

  deps = [
    "//base",
    "//base/test:test_support",
    "//components/sync/invalidations",
    "//ios/chrome/browser/ui/authentication:eg_test_support+eg2",
    "//ios/chrome/browser/ui/bookmarks:eg_test_support+eg2",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/public/provider/chrome/browser/signin:fake_chrome_identity",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//ios/third_party/earl_grey2:test_lib",
    "//ios/web/public/test/http_server",
  ]

  frameworks = [ "UIKit.framework" ]
}