Index: components/proximity_auth/ble/BUILD.gn |
diff --git a/components/proximity_auth/ble/BUILD.gn b/components/proximity_auth/ble/BUILD.gn |
index 3a6603ecaaa78181b21acd843476d9641bf13575..e1b759e3235b73adc2daecba0c8899ed1a100308 100644 |
--- a/components/proximity_auth/ble/BUILD.gn |
+++ b/components/proximity_auth/ble/BUILD.gn |
@@ -2,6 +2,8 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//testing/test.gni") |
+ |
source_set("ble") { |
sources = [ |
"bluetooth_low_energy_connection.cc", |
@@ -21,3 +23,21 @@ source_set("ble") { |
"//net", |
] |
} |
+ |
+source_set("unit_tests") { |
+ testonly = true |
+ sources = [ |
+ "bluetooth_low_energy_connection_finder_unittest.cc", |
+ ] |
+ |
+ configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
+ |
+ deps = [ |
+ ":ble", |
+ "//components/proximity_auth", |
+ "//base/test:test_support", |
+ "//device/bluetooth:mocks", |
+ "//testing/gmock", |
+ "//testing/gtest", |
+ ] |
+} |