Home
last modified time | relevance | path

Searched refs:ICING_EXPECT_OK (Results 1 – 18 of 18) sorted by relevance

/external/icing/icing/file/
Dfile-backed-bitmap_test.cc70 ICING_EXPECT_OK(bitmap->PersistToDisk()); in TEST_F()
79 ICING_EXPECT_OK(bitmap->Set(100000, true)); in TEST_F()
80 ICING_EXPECT_OK(bitmap->Set(200000, false)); in TEST_F()
87 ICING_EXPECT_OK(bitmap->Set(50, true)); in TEST_F()
91 ICING_EXPECT_OK(bitmap->Set(100000, false)); in TEST_F()
92 ICING_EXPECT_OK(bitmap->Set(200000, true)); in TEST_F()
107 ICING_EXPECT_OK(bitmap->Set(100000, true)); in TEST_F()
111 ICING_EXPECT_OK(bitmap->Set(200000, false)); in TEST_F()
115 ICING_EXPECT_OK(bitmap->Set(0, false)); in TEST_F()
116 ICING_EXPECT_OK(bitmap->Set(1000, false)); in TEST_F()
[all …]
Dfile-backed-vector_test.cc120 ICING_EXPECT_OK(vector->PersistToDisk()); in TEST_F()
160 ICING_EXPECT_OK(vector->TruncateTo(0)); in TEST_F()
296 ICING_EXPECT_OK(vector->PersistToDisk()); in TEST_F()
364 ICING_EXPECT_OK(FileBackedVector<int64_t>::Delete(filesystem_, file_path_)); in TEST_F()
384 ICING_EXPECT_OK(FileBackedVector<int64_t>::Delete(filesystem_, file_path_)); in TEST_F()
415 ICING_EXPECT_OK(vector->TruncateTo(1)); in TEST_F()
420 ICING_EXPECT_OK(vector->TruncateTo(0)); in TEST_F()
456 ICING_EXPECT_OK(vector->TruncateTo(4)); in TEST_F()
Dfile-backed-proto-log_test.cc491 ICING_EXPECT_OK(proto_log->WriteProto(document)); in TEST_F()
513 ICING_EXPECT_OK(proto_log->PersistToDisk()); in TEST_F()
517 ICING_EXPECT_OK(proto_log->WriteProto(document)); in TEST_F()
Dportable-file-backed-proto-log_test.cc878 ICING_EXPECT_OK(proto_log->WriteProto(document)); in TEST_F()
900 ICING_EXPECT_OK(proto_log->PersistToDisk()); in TEST_F()
904 ICING_EXPECT_OK(proto_log->WriteProto(document)); in TEST_F()
/external/icing/icing/store/
Dkey-mapper_test.cc77 ICING_EXPECT_OK(key_mapper->Put("default-google.com", 100)); in TEST_F()
78 ICING_EXPECT_OK(key_mapper->Put("default-youtube.com", 50)); in TEST_F()
82 ICING_EXPECT_OK(key_mapper->Put("default-google.com", 200)); in TEST_F()
86 ICING_EXPECT_OK(key_mapper->Put("default-google.com", 300)); in TEST_F()
107 ICING_EXPECT_OK(key_mapper->PersistToDisk()); in TEST_F()
111 ICING_EXPECT_OK(key_mapper->Put("default-google.com", 100)); in TEST_F()
112 ICING_EXPECT_OK(key_mapper->PersistToDisk()); in TEST_F()
117 ICING_EXPECT_OK(key_mapper->Put("default-youtube.com", 200)); in TEST_F()
122 ICING_EXPECT_OK(key_mapper->Put("default-google.com", 300)); in TEST_F()
131 ICING_EXPECT_OK(key_mapper->Put("default-google.com", 100)); in TEST_F()
[all …]
Ddocument-store_test.cc388 ICING_EXPECT_OK(document_store->Put(DocumentProto(test_document1_))); in TEST_F()
393 ICING_EXPECT_OK(document_store->Delete(test_document1_.namespace_(), in TEST_F()
415 ICING_EXPECT_OK(document_store->Put(document)); in TEST_F()
496 ICING_EXPECT_OK(document_store->Put(test_document1_)); in TEST_F()
499 ICING_EXPECT_OK(document_store->Delete(test_document1_.namespace_(), in TEST_F()
585 ICING_EXPECT_OK(document_store->Put(test_document1_)); in TEST_F()
586 ICING_EXPECT_OK(document_store->Delete(test_document1_.namespace_(), in TEST_F()
786 ICING_EXPECT_OK(document_store->Put(test_document1_)); in TEST_F()
787 ICING_EXPECT_OK(document_store->Delete(test_document1_.namespace_(), in TEST_F()
880 ICING_EXPECT_OK(doc_store->Put(test_document1_)); in TEST_F()
[all …]
Dusage-store_test.cc245 ICING_EXPECT_OK(usage_store->SetUsageScores(/*document_id=*/1, scores)); in TEST_F()
273 ICING_EXPECT_OK(usage_store->SetUsageScores(/*document_id=*/1, scores)); in TEST_F()
277 ICING_EXPECT_OK(usage_store->DeleteUsageScores(/*document_id=*/1)); in TEST_F()
434 ICING_EXPECT_OK(usage_store->SetUsageScores(/*document_id=*/1, scores)); in TEST_F()
435 ICING_EXPECT_OK(usage_store->SetUsageScores(/*document_id=*/2, scores)); in TEST_F()
502 ICING_EXPECT_OK(usage_store->SetUsageScores(/*document_id=*/0, scores)); in TEST_F()
538 ICING_EXPECT_OK(usage_store->SetUsageScores(/*document_id=*/0, scores)); in TEST_F()
/external/icing/icing/util/
Ddocument-validator_test.cc391 ICING_EXPECT_OK(document_validator.Validate(conversation)); in TEST_F()
396 ICING_EXPECT_OK(document_validator_->Validate(email)); in TEST_F()
401 ICING_EXPECT_OK(document_validator_->Validate(email)); in TEST_F()
420 ICING_EXPECT_OK(document_validator_->Validate(email)); in TEST_F()
425 ICING_EXPECT_OK(document_validator_->Validate(email)); in TEST_F()
430 ICING_EXPECT_OK(document_validator_->Validate(email)); in TEST_F()
449 ICING_EXPECT_OK(document_validator_->Validate(email)); in TEST_F()
454 ICING_EXPECT_OK(document_validator_->Validate(email)); in TEST_F()
459 ICING_EXPECT_OK(document_validator_->Validate(email)); in TEST_F()
/external/icing/icing/index/main/
Dposting-list-accessor_test.cc61 ICING_EXPECT_OK(result.status); in TEST()
89 ICING_EXPECT_OK(result1.status); in TEST()
104 ICING_EXPECT_OK(result2.status); in TEST()
138 ICING_EXPECT_OK(result1.status); in TEST()
158 ICING_EXPECT_OK(result2.status); in TEST()
194 ICING_EXPECT_OK(result1.status); in TEST()
248 ICING_EXPECT_OK(result1.status); in TEST()
268 ICING_EXPECT_OK(result2.status); in TEST()
Dposting-list-used_test.cc128 ICING_EXPECT_OK(pl_used.PrependHit(hit0)); in TEST()
129 ICING_EXPECT_OK(pl_used.PrependHit(hit1)); in TEST()
130 ICING_EXPECT_OK(pl_used.PrependHit(hit2)); in TEST()
138 ICING_EXPECT_OK(pl_used.PrependHit(hit3)); in TEST()
153 ICING_EXPECT_OK(pl_used.PrependHit(hit4)); in TEST()
164 ICING_EXPECT_OK(pl_used.PrependHit(hit5)); in TEST()
195 ICING_EXPECT_OK(pl_used.PrependHit(hit0)); in TEST()
206 ICING_EXPECT_OK(pl_used.PrependHit(hit1)); in TEST()
500 ICING_EXPECT_OK(pl.PrependHit(Hit(4 - v))); in TEST()
506 ICING_EXPECT_OK(pl.PrependHit(Hit(kOverflow[3]))); in TEST()
[all …]
/external/icing/icing/index/iterator/
Ddoc-hit-info-iterator-or_test.cc175 ICING_EXPECT_OK(or_iter.Advance()); in TEST()
218 ICING_EXPECT_OK(or_iter.Advance()); in TEST()
261 ICING_EXPECT_OK(or_iter.Advance()); in TEST()
309 ICING_EXPECT_OK(or_iter.Advance()); in TEST()
319 ICING_EXPECT_OK(or_iter.Advance()); in TEST()
469 ICING_EXPECT_OK(or_iter.Advance()); in TEST()
547 ICING_EXPECT_OK(or_iter.Advance()); in TEST()
561 ICING_EXPECT_OK(or_iter.Advance()); in TEST()
576 ICING_EXPECT_OK(or_iter.Advance()); in TEST()
Ddoc-hit-info-iterator-and_test.cc195 ICING_EXPECT_OK(and_iter.Advance()); in TEST()
239 ICING_EXPECT_OK(and_iter.Advance()); in TEST()
283 ICING_EXPECT_OK(and_iter.Advance()); in TEST()
463 ICING_EXPECT_OK(and_iter.Advance()); in TEST()
532 ICING_EXPECT_OK(and_iter.Advance()); in TEST()
Ddoc-hit-info-iterator-section-restrict_test.cc146 ICING_EXPECT_OK(section_restrict_iterator.Advance()); in TEST_F()
/external/icing/icing/schema/
Dschema-store_test.cc698 ICING_EXPECT_OK(schema_store->SetSchema(foo_schema)); in TEST_F()
714 ICING_EXPECT_OK(schema_store->SetSchema(foo_schema)); in TEST_F()
734 ICING_EXPECT_OK(schema_store->SetSchema(foo_schema)); in TEST_F()
745 ICING_EXPECT_OK(schema_store->SetSchema(foo_bar_schema)); in TEST_F()
756 ICING_EXPECT_OK(schema_store->PersistToDisk()); in TEST_F()
767 ICING_EXPECT_OK(schema_store->SetSchema(schema)); in TEST_F()
770 ICING_EXPECT_OK(schema_store->PersistToDisk()); in TEST_F()
780 ICING_EXPECT_OK(schema_store->SetSchema(schema)); in TEST_F()
/external/icing/icing/index/
Dindex_test.cc1467 ICING_EXPECT_OK(index_->TruncateTo(kInvalidDocumentId)); in TEST_F()
1480 ICING_EXPECT_OK(index_->TruncateTo(kInvalidDocumentId)); in TEST_F()
1489 ICING_EXPECT_OK(index_->TruncateTo(kInvalidDocumentId)); in TEST_F()
1503 ICING_EXPECT_OK(index_->TruncateTo(kInvalidDocumentId)); in TEST_F()
1514 ICING_EXPECT_OK(index_->TruncateTo(index_->last_added_document_id())); in TEST_F()
1527 ICING_EXPECT_OK(index_->TruncateTo(index_->last_added_document_id())); in TEST_F()
1537 ICING_EXPECT_OK(index_->TruncateTo(index_->last_added_document_id())); in TEST_F()
1552 ICING_EXPECT_OK(index_->TruncateTo(index_->last_added_document_id())); in TEST_F()
/external/icing/icing/testing/
Dcommon-matchers.h403 #define ICING_EXPECT_OK(func) EXPECT_THAT(func, IsOk()) macro
/external/icing/icing/scoring/
Dscoring-processor_test.cc151 ICING_EXPECT_OK(ScoringProcessor::Create(spec_proto, document_store())); in TEST_F()
/external/icing/icing/
Dicing-search-engine_test.cc3972 ICING_EXPECT_OK(schema_store->SetSchema(new_schema)); in TEST_F()
4035 ICING_EXPECT_OK(schema_store->SetSchema(CreateMessageSchema())); in TEST_F()
4045 ICING_EXPECT_OK(document_store->Put(document2)); in TEST_F()
6618 ICING_EXPECT_OK(schema_store->SetSchema(new_schema)); in TEST_F()