Update mojo sdk to rev c02a28868825edfa57ab77947b8cb15e741c5598
[chromium-blink-merge.git] / components / proximity_auth / cryptauth / BUILD.gn
bloba27243510f0eb608dee7d7112c4137d4e7aa7539
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("cryptauth") {
6   sources = [
7     "base64url.cc",
8     "base64url.h",
9     "cryptauth_access_token_fetcher.h",
10     "cryptauth_access_token_fetcher_impl.cc",
11     "cryptauth_access_token_fetcher_impl.h",
12     "cryptauth_api_call_flow.cc",
13     "cryptauth_api_call_flow.h",
14     "cryptauth_client.h",
15     "cryptauth_client_impl.cc",
16     "cryptauth_client_impl.h",
17     "cryptauth_device_manager.cc",
18     "cryptauth_device_manager.h",
19     "cryptauth_enroller.h",
20     "cryptauth_enroller_impl.cc",
21     "cryptauth_enroller_impl.h",
22     "cryptauth_enrollment_manager.cc",
23     "cryptauth_enrollment_manager.h",
24     "cryptauth_enrollment_utils.cc",
25     "cryptauth_enrollment_utils.h",
26     "cryptauth_gcm_manager.cc",
27     "cryptauth_gcm_manager.h",
28     "cryptauth_gcm_manager_impl.cc",
29     "cryptauth_gcm_manager_impl.h",
30     "pref_names.cc",
31     "pref_names.h",
32     "secure_message_delegate.cc",
33     "secure_message_delegate.h",
34     "sync_scheduler.cc",
35     "sync_scheduler.h",
36     "sync_scheduler_impl.cc",
37     "sync_scheduler_impl.h",
38   ]
40   deps = [
41     "//base",
42     "//crypto",
43     "//components/gcm_driver",
44     "//components/proximity_auth/logging",
45     "//google_apis",
46     "//net",
47   ]
49   public_deps = [
50     "proto",
51   ]
54 source_set("test_support") {
55   testonly = true
57   sources = [
58     "fake_cryptauth_gcm_manager.cc",
59     "fake_cryptauth_gcm_manager.h",
60     "fake_secure_message_delegate.cc",
61     "fake_secure_message_delegate.h",
62     "mock_cryptauth_client.cc",
63     "mock_cryptauth_client.h",
64     "mock_sync_scheduler.cc",
65     "mock_sync_scheduler.h",
66   ]
68   deps = [
69     ":cryptauth",
70     "//base",
71     "//testing/gmock",
72   ]
74   public_deps = [
75     "proto",
76   ]
79 source_set("unit_tests") {
80   testonly = true
81   sources = [
82     "base64url_unittest.cc",
83     "cryptauth_access_token_fetcher_impl_unittest.cc",
84     "cryptauth_api_call_flow_unittest.cc",
85     "cryptauth_client_impl_unittest.cc",
86     "cryptauth_device_manager_unittest.cc",
87     "cryptauth_enroller_impl_unittest.cc",
88     "cryptauth_enrollment_manager_unittest.cc",
89     "cryptauth_gcm_manager_impl_unittest.cc",
90     "fake_secure_message_delegate_unittest.cc",
91     "sync_scheduler_impl_unittest.cc",
92   ]
94   deps = [
95     ":cryptauth",
96     ":test_support",
97     "//base:prefs_test_support",
98     "//base/test:test_support",
99     "//components/gcm_driver:test_support",
100     "//google_apis:test_support",
101     "//net:test_support",
102     "//testing/gtest",
103   ]