aboutsummaryrefslogtreecommitdiff
path: root/icing/store/document-store_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'icing/store/document-store_test.cc')
-rw-r--r--icing/store/document-store_test.cc29
1 files changed, 0 insertions, 29 deletions
diff --git a/icing/store/document-store_test.cc b/icing/store/document-store_test.cc
index 0f0eb62..96d11bf 100644
--- a/icing/store/document-store_test.cc
+++ b/icing/store/document-store_test.cc
@@ -485,35 +485,6 @@ TEST_F(DocumentStoreTest, DeleteNonexistentDocumentNotFound) {
EXPECT_THAT(document_log_size_before, Eq(document_log_size_after));
}
-TEST_F(DocumentStoreTest, DeleteNonexistentDocumentPrintableErrorMessage) {
- ICING_ASSERT_OK_AND_ASSIGN(
- DocumentStore::CreateResult create_result,
- DocumentStore::Create(&filesystem_, document_store_dir_, &fake_clock_,
- schema_store_.get()));
- std::unique_ptr<DocumentStore> document_store =
- std::move(create_result.document_store);
-
- // Validates that deleting something non-existing won't append anything to
- // ground truth
- int64_t document_log_size_before = filesystem_.GetFileSize(
- absl_ports::StrCat(document_store_dir_, "/",
- DocumentLogCreator::GetDocumentLogFilename())
- .c_str());
-
- libtextclassifier3::Status status =
- document_store->Delete("android$contacts/", "661");
- EXPECT_THAT(status, StatusIs(libtextclassifier3::StatusCode::NOT_FOUND));
- for (char c : status.error_message()) {
- EXPECT_THAT(std::isprint(c), IsTrue());
- }
-
- int64_t document_log_size_after = filesystem_.GetFileSize(
- absl_ports::StrCat(document_store_dir_, "/",
- DocumentLogCreator::GetDocumentLogFilename())
- .c_str());
- EXPECT_THAT(document_log_size_before, Eq(document_log_size_after));
-}
-
TEST_F(DocumentStoreTest, DeleteAlreadyDeletedDocumentNotFound) {
ICING_ASSERT_OK_AND_ASSIGN(
DocumentStore::CreateResult create_result,