diff options
Diffstat (limited to 'kernel/kapi/devices/interface_registry.tests.cpp')
| -rw-r--r-- | kernel/kapi/devices/interface_registry.tests.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/kapi/devices/interface_registry.tests.cpp b/kernel/kapi/devices/interface_registry.tests.cpp index 100954ea..f82e867e 100644 --- a/kernel/kapi/devices/interface_registry.tests.cpp +++ b/kernel/kapi/devices/interface_registry.tests.cpp @@ -133,23 +133,23 @@ SCENARIO("Publishing and finding a device", "[kapi][devices][interface_registry] THEN("find finds the published capability by name") { - REQUIRE(registry.find<probe_device>("probe0")); + REQUIRE(registry.resolve<probe_device>("probe0")); } THEN("find for an unpublished capability does not find a device") { - REQUIRE_FALSE(registry.find<const_device>("probe0")); + REQUIRE_FALSE(registry.resolve<const_device>("probe0")); } THEN("find for an unpublished device does not find a device") { - REQUIRE_FALSE(registry.find<probe_device>("probe1")); + REQUIRE_FALSE(registry.resolve<probe_device>("probe1")); } THEN("withdrawing an interface for a device removes it from the registry") { registry.unpublish(*device, probe_device::id); - REQUIRE_FALSE(registry.find<probe_device>("probe0")); + REQUIRE_FALSE(registry.resolve<probe_device>("probe0")); } } @@ -165,7 +165,7 @@ SCENARIO("Publishing and finding a device", "[kapi][devices][interface_registry] THEN("find() no longer finds it") { - REQUIRE_FALSE(registry.find<probe_device>("probe0")); + REQUIRE_FALSE(registry.resolve<probe_device>("probe0")); } } } |
