diff options
Diffstat (limited to 'icing/file/portable-file-backed-proto-log_test.cc')
-rw-r--r-- | icing/file/portable-file-backed-proto-log_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/icing/file/portable-file-backed-proto-log_test.cc b/icing/file/portable-file-backed-proto-log_test.cc index b5fee4b..795271a 100644 --- a/icing/file/portable-file-backed-proto-log_test.cc +++ b/icing/file/portable-file-backed-proto-log_test.cc @@ -851,11 +851,12 @@ TEST_F(PortableFileBackedProtoLogTest, Iterator) { { // Iterator with bad filesystem + ScopedFd sfd(filesystem_.OpenForRead(file_path_.c_str())); MockFilesystem mock_filesystem; - ON_CALL(mock_filesystem, GetFileSize(A<const char*>())) + ON_CALL(mock_filesystem, GetFileSize(A<int>())) .WillByDefault(Return(Filesystem::kBadFileSize)); PortableFileBackedProtoLog<DocumentProto>::Iterator bad_iterator( - mock_filesystem, file_path_, /*initial_offset=*/0); + mock_filesystem, sfd.get(), /*initial_offset=*/0); ASSERT_THAT(bad_iterator.Advance(), StatusIs(libtextclassifier3::StatusCode::OUT_OF_RANGE)); } |