summaryrefslogtreecommitdiff
path: root/chromium/remoting/ios/persistence/BUILD.gn
blob: 4c6bdee24f8111dbd27ec7432ad3074449b178ae (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
# Copyright 2017 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("//build/config/chrome_build.gni")
import("//build/config/ios/rules.gni")
import("//remoting/build/config/remoting_build.gni")

source_set("persistence") {
  sources = [
    "host_pairing_info.cc",
    "host_pairing_info.h",
    "keychain.cc",
    "keychain.h",
    "remoting_keychain.cc",
    "remoting_keychain.h",
    "remoting_preferences.h",
    "remoting_preferences.mm",
  ]

  deps = [
    "//base",
    "//remoting/ios/domain",
  ]

  configs += [ "//build/config/compiler:enable_arc" ]
}

source_set("test_support") {
  testonly = true
  sources = [
    "fake_keychain.cc",
    "fake_keychain.h",
    "mock_keychain.cc",
    "mock_keychain.h",
  ]

  public_deps = [ "//testing/gmock" ]

  configs += [ "//build/config/compiler:enable_arc" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "host_pairing_info_unittest.cc",
    "remoting_keychain_unittest.mm",
  ]
  deps = [
    ":persistence",
    ":test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]

  frameworks = [ "Security.framework" ]

  configs += [ "//build/config/compiler:enable_arc" ]
}