Correct WV log spam
[ Merge of http://go/wvgerrit/102923 ] Avoid logging an error, on first boot, when trying to retrieve a certificate that does not yet exist. Bug: 161201883 Test: WV unit/integration tests Change-Id: I293f9766a7f2024107d0db45a874a9478b0c3959
This commit is contained in:
@@ -2160,7 +2160,8 @@ TEST_P(DeviceCertificateTest, ReadCertificate) {
|
||||
// Call to Open will return a unique_ptr, freeing this object.
|
||||
MockFile* file = new MockFile();
|
||||
EXPECT_CALL(file_system, Exists(StrEq(device_certificate_path)))
|
||||
.WillOnce(Return(true));
|
||||
.Times(2)
|
||||
.WillRepeatedly(Return(true));
|
||||
EXPECT_CALL(file_system, FileSize(StrEq(device_certificate_path)))
|
||||
.WillOnce(Return(data.size()));
|
||||
EXPECT_CALL(file_system, DoOpen(StrEq(device_certificate_path), _))
|
||||
|
||||
Reference in New Issue
Block a user