OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # CryptAuth is a component which manages data about devices associated with a | 5 # CryptAuth is a component which manages data about devices associated with a |
6 # user's account. This component both sends data about the current device and | 6 # user's account. This component both sends data about the current device and |
7 # requets data about associated devices. | 7 # requets data about associated devices. |
8 | 8 |
9 static_library("cryptauth") { | 9 static_library("cryptauth") { |
10 sources = [ | 10 sources = [ |
| 11 "bluetooth_throttler.h", |
| 12 "bluetooth_throttler_impl.cc", |
| 13 "bluetooth_throttler_impl.h", |
| 14 "connection.cc", |
| 15 "connection.h", |
11 "cryptauth_access_token_fetcher.h", | 16 "cryptauth_access_token_fetcher.h", |
12 "cryptauth_access_token_fetcher_impl.cc", | 17 "cryptauth_access_token_fetcher_impl.cc", |
13 "cryptauth_access_token_fetcher_impl.h", | 18 "cryptauth_access_token_fetcher_impl.h", |
14 "cryptauth_api_call_flow.cc", | 19 "cryptauth_api_call_flow.cc", |
15 "cryptauth_api_call_flow.h", | 20 "cryptauth_api_call_flow.h", |
16 "cryptauth_client.h", | 21 "cryptauth_client.h", |
17 "cryptauth_client_impl.cc", | 22 "cryptauth_client_impl.cc", |
18 "cryptauth_client_impl.h", | 23 "cryptauth_client_impl.h", |
19 "cryptauth_device_manager.cc", | 24 "cryptauth_device_manager.cc", |
20 "cryptauth_device_manager.h", | 25 "cryptauth_device_manager.h", |
(...skipping 15 matching lines...) Expand all Loading... |
36 "remote_device.cc", | 41 "remote_device.cc", |
37 "remote_device.h", | 42 "remote_device.h", |
38 "secure_message_delegate.cc", | 43 "secure_message_delegate.cc", |
39 "secure_message_delegate.h", | 44 "secure_message_delegate.h", |
40 "switches.cc", | 45 "switches.cc", |
41 "switches.h", | 46 "switches.h", |
42 "sync_scheduler.cc", | 47 "sync_scheduler.cc", |
43 "sync_scheduler.h", | 48 "sync_scheduler.h", |
44 "sync_scheduler_impl.cc", | 49 "sync_scheduler_impl.cc", |
45 "sync_scheduler_impl.h", | 50 "sync_scheduler_impl.h", |
| 51 "wire_message.cc", |
| 52 "wire_message.h", |
46 ] | 53 ] |
47 | 54 |
48 deps = [ | 55 deps = [ |
49 "//base", | 56 "//base", |
| 57 "//components/cryptauth/ble", |
50 "//components/gcm_driver", | 58 "//components/gcm_driver", |
51 "//components/gcm_driver/common", | 59 "//components/gcm_driver/common", |
52 "//components/prefs", | 60 "//components/prefs", |
53 "//components/proximity_auth/logging", | 61 "//components/proximity_auth/logging", |
54 "//crypto", | 62 "//crypto", |
55 "//google_apis", | 63 "//google_apis", |
56 "//net", | 64 "//net", |
57 ] | 65 ] |
58 | 66 |
59 public_deps = [ | 67 public_deps = [ |
60 "//components/cryptauth/proto", | 68 "//components/cryptauth/proto", |
61 ] | 69 ] |
| 70 |
| 71 # TODO (hansberry): Resolve this. |
| 72 allow_circular_includes_from = [ "//components/cryptauth/ble" ] |
62 } | 73 } |
63 | 74 |
64 static_library("test_support") { | 75 static_library("test_support") { |
65 testonly = true | 76 testonly = true |
66 | 77 |
67 sources = [ | 78 sources = [ |
| 79 "cryptauth_test_util.cc", |
| 80 "cryptauth_test_util.h", |
| 81 "fake_connection.cc", |
| 82 "fake_connection.h", |
68 "fake_cryptauth_gcm_manager.cc", | 83 "fake_cryptauth_gcm_manager.cc", |
69 "fake_cryptauth_gcm_manager.h", | 84 "fake_cryptauth_gcm_manager.h", |
70 "fake_secure_message_delegate.cc", | 85 "fake_secure_message_delegate.cc", |
71 "fake_secure_message_delegate.h", | 86 "fake_secure_message_delegate.h", |
72 "mock_cryptauth_client.cc", | 87 "mock_cryptauth_client.cc", |
73 "mock_cryptauth_client.h", | 88 "mock_cryptauth_client.h", |
74 "mock_sync_scheduler.cc", | 89 "mock_sync_scheduler.cc", |
75 "mock_sync_scheduler.h", | 90 "mock_sync_scheduler.h", |
76 ] | 91 ] |
77 | 92 |
78 public_deps = [ | 93 public_deps = [ |
79 ":cryptauth", | 94 ":cryptauth", |
80 "//components/cryptauth/proto", | 95 "//components/cryptauth/proto", |
81 ] | 96 ] |
82 | 97 |
83 deps = [ | 98 deps = [ |
84 "//base", | 99 "//base", |
85 "//testing/gmock", | 100 "//testing/gmock", |
86 ] | 101 ] |
87 } | 102 } |
88 | 103 |
89 source_set("unit_tests") { | 104 source_set("unit_tests") { |
90 testonly = true | 105 testonly = true |
91 sources = [ | 106 sources = [ |
| 107 "bluetooth_throttler_impl_unittest.cc", |
| 108 "connection_unittest.cc", |
92 "cryptauth_access_token_fetcher_impl_unittest.cc", | 109 "cryptauth_access_token_fetcher_impl_unittest.cc", |
93 "cryptauth_api_call_flow_unittest.cc", | 110 "cryptauth_api_call_flow_unittest.cc", |
94 "cryptauth_client_impl_unittest.cc", | 111 "cryptauth_client_impl_unittest.cc", |
95 "cryptauth_device_manager_unittest.cc", | 112 "cryptauth_device_manager_unittest.cc", |
96 "cryptauth_enroller_impl_unittest.cc", | 113 "cryptauth_enroller_impl_unittest.cc", |
97 "cryptauth_enrollment_manager_unittest.cc", | 114 "cryptauth_enrollment_manager_unittest.cc", |
98 "cryptauth_gcm_manager_impl_unittest.cc", | 115 "cryptauth_gcm_manager_impl_unittest.cc", |
99 "eid_generator_unittest.cc", | 116 "eid_generator_unittest.cc", |
100 "fake_secure_message_delegate_unittest.cc", | 117 "fake_secure_message_delegate_unittest.cc", |
101 "sync_scheduler_impl_unittest.cc", | 118 "sync_scheduler_impl_unittest.cc", |
| 119 "wire_message_unittest.cc", |
102 ] | 120 ] |
103 | 121 |
104 deps = [ | 122 deps = [ |
105 ":cryptauth", | 123 ":cryptauth", |
106 ":test_support", | 124 ":test_support", |
107 "//base/test:test_support", | 125 "//base/test:test_support", |
108 "//components/gcm_driver:test_support", | 126 "//components/gcm_driver:test_support", |
109 "//components/prefs:test_support", | 127 "//components/prefs:test_support", |
110 "//components/proximity_auth", | |
111 "//google_apis:test_support", | 128 "//google_apis:test_support", |
112 "//net:test_support", | 129 "//net:test_support", |
113 "//testing/gtest", | 130 "//testing/gtest", |
114 ] | 131 ] |
115 } | 132 } |
OLD | NEW |