summaryrefslogtreecommitdiffstats
path: root/components/proximity_auth/cryptauth/BUILD.gn
blob: 92f35843a0c8127534a2b49fc3a90f4f3c319ff4 (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
# 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("cryptauth") {
  sources = [
    "base64url.cc",
    "base64url.h",
    "cryptauth_access_token_fetcher.h",
    "cryptauth_access_token_fetcher_impl.cc",
    "cryptauth_access_token_fetcher_impl.h",
    "cryptauth_api_call_flow.cc",
    "cryptauth_api_call_flow.h",
    "cryptauth_client.h",
    "cryptauth_client_impl.cc",
    "cryptauth_client_impl.h",
    "cryptauth_enroller.h",
    "cryptauth_enroller_impl.cc",
    "cryptauth_enroller_impl.h",
    "cryptauth_enrollment_utils.cc",
    "cryptauth_enrollment_utils.h",
    "secure_message_delegate.cc",
    "secure_message_delegate.h",
  ]

  deps = [
    "//base",
    "//components/proximity_auth/logging",
    "//google_apis",
    "//net",
  ]

  public_deps = [
    "proto",
  ]
}

source_set("test_support") {
  testonly = true

  sources = [
    "fake_secure_message_delegate.cc",
    "fake_secure_message_delegate.h",
    "mock_cryptauth_client.cc",
    "mock_cryptauth_client.h",
  ]

  deps = [
    ":cryptauth",
    "//base",
    "//testing/gmock",
  ]

  public_deps = [
    "proto",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "base64url_unittest.cc",
    "cryptauth_access_token_fetcher_impl_unittest.cc",
    "cryptauth_api_call_flow_unittest.cc",
    "cryptauth_client_impl_unittest.cc",
    "cryptauth_enroller_impl_unittest.cc",
    "fake_secure_message_delegate_unittest.cc",
  ]

  deps = [
    ":cryptauth",
    ":test_support",
    "//base/test:test_support",
    "//google_apis:test_support",
    "//net:test_support",
    "//testing/gtest",
  ]
}