| 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 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 | 6 |
| 7 static_library("proximity_auth") { | 7 static_library("proximity_auth") { |
| 8 sources = [ | 8 sources = [ |
| 9 "bluetooth_connection.cc", | 9 "bluetooth_connection.cc", |
| 10 "bluetooth_connection.h", | 10 "bluetooth_connection.h", |
| 11 "bluetooth_connection_finder.cc", | 11 "bluetooth_connection_finder.cc", |
| 12 "bluetooth_connection_finder.h", | 12 "bluetooth_connection_finder.h", |
| 13 "bluetooth_low_energy_connection_finder.cc", | |
| 14 "bluetooth_low_energy_connection_finder.h", | |
| 15 "bluetooth_util.cc", | 13 "bluetooth_util.cc", |
| 16 "bluetooth_util.h", | 14 "bluetooth_util.h", |
| 17 "bluetooth_util_chromeos.cc", | 15 "bluetooth_util_chromeos.cc", |
| 18 "messenger.h", | 16 "messenger.h", |
| 19 "messenger_impl.cc", | 17 "messenger_impl.cc", |
| 20 "messenger_impl.h", | 18 "messenger_impl.h", |
| 21 "messenger_observer.h", | 19 "messenger_observer.h", |
| 22 "metrics.cc", | 20 "metrics.cc", |
| 23 "metrics.h", | 21 "metrics.h", |
| 24 "proximity_auth_client.h", | 22 "proximity_auth_client.h", |
| (...skipping 22 matching lines...) Expand all Loading... |
| 47 "unlock_manager.h", | 45 "unlock_manager.h", |
| 48 "unlock_manager_impl.cc", | 46 "unlock_manager_impl.cc", |
| 49 "unlock_manager_impl.h", | 47 "unlock_manager_impl.h", |
| 50 ] | 48 ] |
| 51 | 49 |
| 52 deps = [ | 50 deps = [ |
| 53 "//base", | 51 "//base", |
| 54 "//components/cryptauth", | 52 "//components/cryptauth", |
| 55 "//components/cryptauth/ble", | 53 "//components/cryptauth/ble", |
| 56 "//components/prefs", | 54 "//components/prefs", |
| 55 "//components/proximity_auth/ble", |
| 57 "//components/proximity_auth/logging", | 56 "//components/proximity_auth/logging", |
| 58 "//components/signin/core/account_id:account_id", | 57 "//components/signin/core/account_id:account_id", |
| 59 "//device/bluetooth", | 58 "//device/bluetooth", |
| 60 "//net", | 59 "//net", |
| 61 ] | 60 ] |
| 62 | 61 |
| 62 # TODO(https://crbug.com/562683): This whitelists a circular include |
| 63 # dependency between this target and the following targets which should not |
| 64 # exist. |
| 65 allow_circular_includes_from = [ "//components/proximity_auth/ble" ] |
| 66 |
| 63 if (is_chromeos) { | 67 if (is_chromeos) { |
| 64 deps += [ "//chromeos" ] | 68 deps += [ "//chromeos" ] |
| 65 } | 69 } |
| 66 } | 70 } |
| 67 | 71 |
| 68 static_library("test_support") { | 72 static_library("test_support") { |
| 69 testonly = true | 73 testonly = true |
| 70 | 74 |
| 71 sources = [ | 75 sources = [ |
| 72 "fake_lock_handler.cc", | 76 "fake_lock_handler.cc", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 87 "//components/proximity_auth/logging", | 91 "//components/proximity_auth/logging", |
| 88 "//testing/gmock", | 92 "//testing/gmock", |
| 89 ] | 93 ] |
| 90 } | 94 } |
| 91 | 95 |
| 92 source_set("unit_tests") { | 96 source_set("unit_tests") { |
| 93 testonly = true | 97 testonly = true |
| 94 sources = [ | 98 sources = [ |
| 95 "bluetooth_connection_finder_unittest.cc", | 99 "bluetooth_connection_finder_unittest.cc", |
| 96 "bluetooth_connection_unittest.cc", | 100 "bluetooth_connection_unittest.cc", |
| 97 "bluetooth_low_energy_connection_finder_unittest.cc", | |
| 98 "messenger_impl_unittest.cc", | 101 "messenger_impl_unittest.cc", |
| 99 "proximity_auth_pref_manager_unittest.cc", | 102 "proximity_auth_pref_manager_unittest.cc", |
| 100 "proximity_auth_system_unittest.cc", | 103 "proximity_auth_system_unittest.cc", |
| 101 "proximity_monitor_impl_unittest.cc", | 104 "proximity_monitor_impl_unittest.cc", |
| 102 "remote_device_life_cycle_impl_unittest.cc", | 105 "remote_device_life_cycle_impl_unittest.cc", |
| 103 "remote_status_update_unittest.cc", | 106 "remote_status_update_unittest.cc", |
| 104 "throttled_bluetooth_connection_finder_unittest.cc", | 107 "throttled_bluetooth_connection_finder_unittest.cc", |
| 105 "unlock_manager_impl_unittest.cc", | 108 "unlock_manager_impl_unittest.cc", |
| 106 ] | 109 ] |
| 107 | 110 |
| 108 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 111 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 109 | 112 |
| 110 deps = [ | 113 deps = [ |
| 111 ":proximity_auth", | 114 ":proximity_auth", |
| 112 ":test_support", | 115 ":test_support", |
| 113 "//base", | 116 "//base", |
| 114 "//base/test:test_support", | 117 "//base/test:test_support", |
| 115 "//components/cryptauth:test_support", | 118 "//components/cryptauth:test_support", |
| 116 "//components/cryptauth:unit_tests", | 119 "//components/cryptauth:unit_tests", |
| 117 "//components/cryptauth/ble", | |
| 118 "//components/prefs:test_support", | 120 "//components/prefs:test_support", |
| 121 "//components/proximity_auth/ble:unit_tests", |
| 119 "//components/proximity_auth/logging", | 122 "//components/proximity_auth/logging", |
| 120 "//components/proximity_auth/logging:unit_tests", | 123 "//components/proximity_auth/logging:unit_tests", |
| 121 "//device/bluetooth:mocks", | 124 "//device/bluetooth:mocks", |
| 122 "//testing/gmock", | 125 "//testing/gmock", |
| 123 "//testing/gtest", | 126 "//testing/gtest", |
| 124 ] | 127 ] |
| 125 | 128 |
| 126 if (is_chromeos) { | 129 if (is_chromeos) { |
| 127 deps += [ "//chromeos" ] | 130 deps += [ "//chromeos" ] |
| 128 } | 131 } |
| 129 } | 132 } |
| 130 | 133 |
| 131 # Note: This is a convenience target for ease of rapid iteration during | 134 # Note: This is a convenience target for ease of rapid iteration during |
| 132 # development. It is not executed on any try or build bots. | 135 # development. It is not executed on any try or build bots. |
| 133 if (!is_chromeos) { | 136 if (!is_chromeos) { |
| 134 test("proximity_auth_unittests") { | 137 test("proximity_auth_unittests") { |
| 135 sources = [ | 138 sources = [ |
| 136 "run_all_unittests.cc", | 139 "run_all_unittests.cc", |
| 137 ] | 140 ] |
| 138 deps = [ | 141 deps = [ |
| 139 ":unit_tests", | 142 ":unit_tests", |
| 140 "//base", | 143 "//base", |
| 141 "//base/test:test_support", | 144 "//base/test:test_support", |
| 142 ] | 145 ] |
| 143 } | 146 } |
| 144 } | 147 } |
| OLD | NEW |