aboutsummaryrefslogtreecommitdiff
path: root/icing/file/portable-file-backed-proto-log_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'icing/file/portable-file-backed-proto-log_test.cc')
-rw-r--r--icing/file/portable-file-backed-proto-log_test.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/icing/file/portable-file-backed-proto-log_test.cc b/icing/file/portable-file-backed-proto-log_test.cc
index 795271a..b5fee4b 100644
--- a/icing/file/portable-file-backed-proto-log_test.cc
+++ b/icing/file/portable-file-backed-proto-log_test.cc
@@ -851,12 +851,11 @@ 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<int>()))
+ ON_CALL(mock_filesystem, GetFileSize(A<const char*>()))
.WillByDefault(Return(Filesystem::kBadFileSize));
PortableFileBackedProtoLog<DocumentProto>::Iterator bad_iterator(
- mock_filesystem, sfd.get(), /*initial_offset=*/0);
+ mock_filesystem, file_path_, /*initial_offset=*/0);
ASSERT_THAT(bad_iterator.Advance(),
StatusIs(libtextclassifier3::StatusCode::OUT_OF_RANGE));
}