Use HIDL metadata for deprecation check

Test: vts_treble_vintf_vendor_test
Bug: 131717099
Change-Id: I92cd7ce1cd835e92342a82e886893ff206c3f52d
Merged-In: I92cd7ce1cd835e92342a82e886893ff206c3f52d
diff --git a/treble/vintf/DeviceManifestTest.cpp b/treble/vintf/DeviceManifestTest.cpp
index f2cfe8c..1a99089 100644
--- a/treble/vintf/DeviceManifestTest.cpp
+++ b/treble/vintf/DeviceManifestTest.cpp
@@ -67,7 +67,8 @@
 TEST_F(DeviceManifestTest, NoDeprecatedHalsOnManifest) {
   string error;
   EXPECT_EQ(android::vintf::NO_DEPRECATED_HALS,
-            VintfObject::CheckDeprecation(&error))
+            VintfObject::GetInstance()->checkDeprecation(
+                HidlInterfaceMetadata::all(), &error))
       << error;
 }