Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: components/cryptauth/BUILD.gn

Issue 2561203002: Migrate weave-related classes from proximity_auth/ble to cryptauth/ble. (Closed)
Patch Set: Moved all general classes from proximity_auth to cryptauth. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 "fake_connection.cc",
80 "fake_connection.h",
68 "fake_cryptauth_gcm_manager.cc", 81 "fake_cryptauth_gcm_manager.cc",
69 "fake_cryptauth_gcm_manager.h", 82 "fake_cryptauth_gcm_manager.h",
70 "fake_secure_message_delegate.cc", 83 "fake_secure_message_delegate.cc",
71 "fake_secure_message_delegate.h", 84 "fake_secure_message_delegate.h",
72 "mock_cryptauth_client.cc", 85 "mock_cryptauth_client.cc",
73 "mock_cryptauth_client.h", 86 "mock_cryptauth_client.h",
74 "mock_sync_scheduler.cc", 87 "mock_sync_scheduler.cc",
75 "mock_sync_scheduler.h", 88 "mock_sync_scheduler.h",
76 ] 89 ]
77 90
78 public_deps = [ 91 public_deps = [
79 ":cryptauth", 92 ":cryptauth",
80 "//components/cryptauth/proto", 93 "//components/cryptauth/proto",
81 ] 94 ]
82 95
83 deps = [ 96 deps = [
84 "//base", 97 "//base",
85 "//testing/gmock", 98 "//testing/gmock",
86 ] 99 ]
87 } 100 }
88 101
89 source_set("unit_tests") { 102 source_set("unit_tests") {
90 testonly = true 103 testonly = true
91 sources = [ 104 sources = [
105 "bluetooth_throttler_impl_unittest.cc",
106 "connection_unittest.cc",
92 "cryptauth_access_token_fetcher_impl_unittest.cc", 107 "cryptauth_access_token_fetcher_impl_unittest.cc",
93 "cryptauth_api_call_flow_unittest.cc", 108 "cryptauth_api_call_flow_unittest.cc",
94 "cryptauth_client_impl_unittest.cc", 109 "cryptauth_client_impl_unittest.cc",
95 "cryptauth_device_manager_unittest.cc", 110 "cryptauth_device_manager_unittest.cc",
96 "cryptauth_enroller_impl_unittest.cc", 111 "cryptauth_enroller_impl_unittest.cc",
97 "cryptauth_enrollment_manager_unittest.cc", 112 "cryptauth_enrollment_manager_unittest.cc",
98 "cryptauth_gcm_manager_impl_unittest.cc", 113 "cryptauth_gcm_manager_impl_unittest.cc",
99 "eid_generator_unittest.cc", 114 "eid_generator_unittest.cc",
100 "fake_secure_message_delegate_unittest.cc", 115 "fake_secure_message_delegate_unittest.cc",
101 "sync_scheduler_impl_unittest.cc", 116 "sync_scheduler_impl_unittest.cc",
117 "wire_message_unittest.cc",
102 ] 118 ]
103 119
104 deps = [ 120 deps = [
105 ":cryptauth", 121 ":cryptauth",
106 ":test_support", 122 ":test_support",
107 "//base/test:test_support", 123 "//base/test:test_support",
108 "//components/gcm_driver:test_support", 124 "//components/gcm_driver:test_support",
109 "//components/prefs:test_support", 125 "//components/prefs:test_support",
110 "//components/proximity_auth",
111 "//google_apis:test_support", 126 "//google_apis:test_support",
112 "//net:test_support", 127 "//net:test_support",
113 "//testing/gtest", 128 "//testing/gtest",
114 ] 129 ]
115 } 130 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698