[hal] Add handle constructor and name getters for sim devices (#4925)

This commit is contained in:
Ryan Blue
2023-01-11 14:45:15 -05:00
committed by GitHub
parent 53d8d33bca
commit dc4355c031
11 changed files with 98 additions and 1 deletions

View File

@@ -20,6 +20,8 @@ TEST(SimDeviceSimTest, Basic) {
EXPECT_FALSE(simBool.Get());
simBool.Set(true);
EXPECT_TRUE(devBool.Get());
EXPECT_EQ(sim.GetName(), "test");
}
TEST(SimDeviceSimTest, EnumerateDevices) {