Index: components/webusb/BUILD.gn |
diff --git a/components/webusb/BUILD.gn b/components/webusb/BUILD.gn |
index 0b57ded0c232a9448e037721ab30be7fe7066a55..c9e9ca1ff27fe2607960e21129527c58c40ed0b1 100644 |
--- a/components/webusb/BUILD.gn |
+++ b/components/webusb/BUILD.gn |
@@ -15,3 +15,18 @@ static_library("webusb") { |
"//device/usb", |
] |
} |
+ |
+source_set("unit_tests") { |
+ testonly = true |
+ sources = [ |
+ "webusb_detector_unittest.cc", |
+ ] |
+ |
+ deps = [ |
+ ":webusb", |
+ "//device/usb", |
+ "//device/usb:mocks", |
+ "//testing/gmock", |
+ "//testing/gtest", |
+ ] |
+} |