Merge "Don't send more than 2K to addRngEntropy" into oc-dev

am: 7eeb6b5079

Change-Id: Id0ee0e3f22ee4f2d2b730054043d28c01ac19c6f
This commit is contained in:
Shawn Willden 2017-09-12 16:31:32 +00:00 committed by android-build-merger
commit 35e1be70b4

View file

@ -3907,7 +3907,7 @@ TEST_F(AddEntropyTest, AddEmptyEntropy) {
* Verifies that the addRngEntropy method doesn't blow up when given a largish amount of data.
*/
TEST_F(AddEntropyTest, AddLargeEntropy) {
EXPECT_EQ(ErrorCode::OK, keymaster().addRngEntropy(HidlBuf(string(16 * 1024, 'a'))));
EXPECT_EQ(ErrorCode::OK, keymaster().addRngEntropy(HidlBuf(string(2 * 1024, 'a'))));
}
typedef KeymasterHidlTest AttestationTest;