Index: device/test/test_device_client.cc |
diff --git a/device/test/test_device_client.cc b/device/test/test_device_client.cc |
index f380c2cd04bcf6b83c72e009aab18a7ebf7ca2cb..ff6933ec04558a7cc6aaf3a7d7d5852c464ec415 100644 |
--- a/device/test/test_device_client.cc |
+++ b/device/test/test_device_client.cc |
@@ -4,8 +4,12 @@ |
#include "device/test/test_device_client.h" |
-#include "device/hid/hid_service.h" |
-#include "device/usb/usb_service.h" |
+// This file unconditionally includes these headers despite conditionally |
+// depending on the corresponding targets. The code below needs the destructors |
+// of the classes defined even when the classes are never instantiated. |
+// TODO: This should probably be done more explicitly to avoid ambiguity. |
+#include "device/hid/hid_service.h" // nogncheck |
+#include "device/usb/usb_service.h" // nogncheck |
namespace device { |