Implement AddRngEntropy.
Change-Id: I8308b23d900b0f6132dd480516e123c82ee8bcb3
diff --git a/google_keymaster_test.cpp b/google_keymaster_test.cpp
index 06479a7..73b1fae 100644
--- a/google_keymaster_test.cpp
+++ b/google_keymaster_test.cpp
@@ -2349,5 +2349,13 @@
}
}
+typedef KeymasterTest AddEntropyTest;
+TEST_F(AddEntropyTest, AddEntropy) {
+ // There's no obvious way to test that entropy is actually added, but we can test that the API
+ // doesn't blow up or return an error.
+ EXPECT_EQ(KM_ERROR_OK,
+ device()->add_rng_entropy(device(), reinterpret_cast<const uint8_t*>("foo"), 3));
+}
+
} // namespace test
} // namespace keymaster