/external/icing/icing/index/main/ |
D | main-index_test.cc | 150 ICING_ASSERT_OK(lite_index_->AddHit(foot_term_id, doc0_hit)); in TEST_F() 160 ICING_ASSERT_OK(Merge(*lite_index_, *term_id_codec_, main_index.get())); in TEST_F() 187 ICING_ASSERT_OK(lite_index_->AddHit(foot_term_id, doc0_hit)); in TEST_F() 197 ICING_ASSERT_OK(Merge(*lite_index_, *term_id_codec_, main_index.get())); in TEST_F() 224 ICING_ASSERT_OK(lite_index_->AddHit(foot_term_id, doc0_hit)); in TEST_F() 225 ICING_ASSERT_OK(lite_index_->AddHit(fool_term_id, doc0_hit)); in TEST_F() 226 ICING_ASSERT_OK(lite_index_->AddHit(far_term_id, doc0_hit)); in TEST_F() 230 ICING_ASSERT_OK(lite_index_->AddHit(foot_term_id, doc1_hit)); in TEST_F() 231 ICING_ASSERT_OK(lite_index_->AddHit(fool_term_id, doc1_hit)); in TEST_F() 235 ICING_ASSERT_OK(lite_index_->AddHit(fool_term_id, doc2_hit)); in TEST_F() [all …]
|
D | main-index-merger_test.cc | 91 ICING_ASSERT_OK(lite_index_->AddHit(foot_term_id, doc0_hit)); in TEST_F() 94 ICING_ASSERT_OK(lite_index_->AddHit(fool_term_id, doc1_hit)); in TEST_F() 130 ICING_ASSERT_OK(lite_index_->AddHit(foot_term_id, doc0_hit)); in TEST_F() 133 ICING_ASSERT_OK(lite_index_->AddHit(fool_term_id, doc1_hit)); in TEST_F() 193 ICING_ASSERT_OK(lite_index_->AddHit(foot_term_id, foot_doc0_hit)); in TEST_F() 197 ICING_ASSERT_OK(lite_index_->AddHit(foo_term_id, foo_doc0_hit)); in TEST_F() 257 ICING_ASSERT_OK(lite_index_->AddHit(foot_term_id, foot_doc0_hit)); in TEST_F() 260 ICING_ASSERT_OK(lite_index_->AddHit(foo_term_id, foo_doc0_hit)); in TEST_F() 322 ICING_ASSERT_OK(lite_index_->AddHit(foot_term_id, foot_doc0_hit)); in TEST_F() 326 ICING_ASSERT_OK(lite_index_->AddHit(fool_term_id, fool_doc0_hit)); in TEST_F()
|
D | posting-list-accessor_test.cc | 57 ICING_ASSERT_OK(pl_accessor.PrependHit(hit)); in TEST() 86 ICING_ASSERT_OK(pl_accessor.PrependHit(hit1)); in TEST() 101 ICING_ASSERT_OK(pl_accessor.PrependHit(hit2)); in TEST() 134 ICING_ASSERT_OK(pl_accessor.PrependHit(hit)); in TEST() 154 ICING_ASSERT_OK(pl_accessor.PrependHit(hit)); in TEST() 190 ICING_ASSERT_OK(pl_accessor.PrependHit(hit)); in TEST() 244 ICING_ASSERT_OK(pl_accessor.PrependHit(hit)); in TEST() 264 ICING_ASSERT_OK(pl_accessor.PrependHit(hit)); in TEST() 328 ICING_ASSERT_OK(pl_accessor.PrependHit(hit1)); in TEST() 368 ICING_ASSERT_OK(pl_accessor.PrependHit(hit1)); in TEST() [all …]
|
D | posting-list-used_test.cc | 473 ICING_ASSERT_OK(pl.PrependHit(Hit(Hit::kInvalidValue - 1, 0))); in TEST() 477 ICING_ASSERT_OK(pl.PrependHit(Hit(Hit::kInvalidValue >> 2, 0))); in TEST() 524 ICING_ASSERT_OK(pl_used1.PrependHit(hit)); in TEST() 534 ICING_ASSERT_OK(pl_used2.PrependHit(hit)); in TEST() 537 ICING_ASSERT_OK(pl_used2.MoveFrom(&pl_used1)); in TEST() 551 ICING_ASSERT_OK(pl_used1.PrependHit(hit)); in TEST() 569 ICING_ASSERT_OK(pl_used1.PrependHit(hit)); in TEST() 579 ICING_ASSERT_OK(pl_used2.PrependHit(hit)); in TEST() 603 ICING_ASSERT_OK(pl_used1.PrependHit(hit)); in TEST() 613 ICING_ASSERT_OK(pl_used2.PrependHit(hit)); in TEST() [all …]
|
D | flash-index-storage_test.cc | 168 ICING_ASSERT_OK(posting_list_holder1.posting_list.PrependHit(hit)); in TEST_F() 191 ICING_ASSERT_OK(posting_list_holder2.posting_list.PrependHit(hit)); in TEST_F() 225 ICING_ASSERT_OK(posting_list_holder3.posting_list.PrependHit(hit)); in TEST_F() 264 ICING_ASSERT_OK(posting_list_holder1.posting_list.PrependHit(hit)); in TEST_F() 287 ICING_ASSERT_OK(posting_list_holder2.posting_list.PrependHit(hit)); in TEST_F() 321 ICING_ASSERT_OK(posting_list_holder3.posting_list.PrependHit(hit)); in TEST_F() 362 ICING_ASSERT_OK(posting_list_holder1.posting_list.PrependHit(hit)); in TEST_F() 385 ICING_ASSERT_OK(posting_list_holder2.posting_list.PrependHit(hit)); in TEST_F() 433 ICING_ASSERT_OK(posting_list_holder3.posting_list.PrependHit(hit)); in TEST_F() 474 ICING_ASSERT_OK(posting_list_holder1.posting_list.PrependHit(hit)); in TEST_F() [all …]
|
D | index-block_test.cc | 127 ICING_ASSERT_OK(pl_used.PrependHit(hit)); in TEST() 183 ICING_ASSERT_OK(pl_used_1.PrependHit(hit)); in TEST() 195 ICING_ASSERT_OK(pl_used_2.PrependHit(hit)); in TEST() 256 ICING_ASSERT_OK(pl_used_1.PrependHit(hit)); in TEST() 275 ICING_ASSERT_OK(pl_used_2.PrependHit(hit)); in TEST() 301 ICING_ASSERT_OK(pl_used_1.PrependHit(hit)); in TEST()
|
/external/icing/icing/file/ |
D | file-backed-proto_test.cc | 48 ICING_ASSERT_OK(file_proto.Write(absl::make_unique<DocumentProto>(document))); in TEST_F() 63 ICING_ASSERT_OK( in TEST_F() 86 ICING_ASSERT_OK( in TEST_F() 91 ICING_ASSERT_OK( in TEST_F() 102 ICING_ASSERT_OK( in TEST_F() 107 ICING_ASSERT_OK( in TEST_F() 130 ICING_ASSERT_OK( in TEST_F()
|
D | file-backed-proto-log_test.cc | 184 ICING_ASSERT_OK(proto_log->PersistToDisk()); in TEST_F() 253 ICING_ASSERT_OK(proto_log->PersistToDisk()); in TEST_F() 323 ICING_ASSERT_OK(proto_log->PersistToDisk()); in TEST_F() 372 ICING_ASSERT_OK(proto_log->PersistToDisk()); in TEST_F() 449 ICING_ASSERT_OK(proto_log->WriteProto(document1)); in TEST_F() 450 ICING_ASSERT_OK(proto_log->WriteProto(document2)); in TEST_F() 453 ICING_ASSERT_OK(iterator.Advance()); in TEST_F() 457 ICING_ASSERT_OK(iterator.Advance()); in TEST_F() 538 ICING_ASSERT_OK(proto_log->EraseProto(document1_offset)); in TEST_F() 575 ICING_ASSERT_OK(proto_log->EraseProto(document1_offset)); in TEST_F() [all …]
|
D | portable-file-backed-proto-log_test.cc | 214 ICING_ASSERT_OK(proto_log->PersistToDisk()); in TEST_F() 283 ICING_ASSERT_OK(proto_log->PersistToDisk()); in TEST_F() 396 ICING_ASSERT_OK(proto_log->PersistToDisk()); in TEST_F() 579 ICING_ASSERT_OK(proto_log->PersistToDisk()); in TEST_F() 653 ICING_ASSERT_OK(proto_log->PersistToDisk()); in TEST_F() 696 ICING_ASSERT_OK(proto_log->EraseProto(document_offset)); in TEST_F() 697 ICING_ASSERT_OK(proto_log->PersistToDisk()); in TEST_F() 784 ICING_ASSERT_OK(proto_log->EraseProto(document_offset)); in TEST_F() 836 ICING_ASSERT_OK(proto_log->WriteProto(document1)); in TEST_F() 837 ICING_ASSERT_OK(proto_log->WriteProto(document2)); in TEST_F() [all …]
|
D | file-backed-vector_test.cc | 61 ICING_ASSERT_OK(vector->Set(idx + i, data.at(i))); in Insert() 441 ICING_ASSERT_OK(vector->Set(0, 1.0)); in TEST_F() 442 ICING_ASSERT_OK(vector->Set(1, 2.0)); in TEST_F() 443 ICING_ASSERT_OK(vector->Set(2, 2.0)); in TEST_F() 444 ICING_ASSERT_OK(vector->Set(3, 2.0)); in TEST_F() 445 ICING_ASSERT_OK(vector->Set(4, 2.0)); in TEST_F()
|
/external/icing/icing/store/ |
D | usage-store_test.cc | 255 ICING_ASSERT_OK(usage_store->SetUsageScores(/*document_id=*/2, in TEST_F() 291 ICING_ASSERT_OK(usage_store->SetUsageScores(/*document_id=*/1, scores_a)); in TEST_F() 298 ICING_ASSERT_OK(usage_store->SetUsageScores(/*document_id=*/2, scores_b)); in TEST_F() 332 ICING_ASSERT_OK(usage_store->SetUsageScores(/*document_id=*/1, scores)); in TEST_F() 346 ICING_ASSERT_OK(usage_store->SetUsageScores(/*document_id=*/1, scores)); in TEST_F() 349 ICING_ASSERT_OK(usage_store->SetUsageScores(/*document_id=*/2, scores)); in TEST_F() 370 ICING_ASSERT_OK(usage_store->SetUsageScores(/*document_id=*/0, scores)); in TEST_F() 371 ICING_ASSERT_OK(usage_store->SetUsageScores(/*document_id=*/1, scores)); in TEST_F() 372 ICING_ASSERT_OK(usage_store->SetUsageScores(/*document_id=*/2, scores)); in TEST_F() 393 ICING_ASSERT_OK(usage_store->SetUsageScores(/*document_id=*/0, scores)); in TEST_F() [all …]
|
D | document-store_test.cc | 166 ICING_ASSERT_OK( in SetUp() 519 ICING_ASSERT_OK(doc_store->Put(document1)); in TEST_F() 524 ICING_ASSERT_OK(doc_store->Put(document2)); in TEST_F() 529 ICING_ASSERT_OK(doc_store->Put(document3)); in TEST_F() 534 ICING_ASSERT_OK(doc_store->Put(document4)); in TEST_F() 623 ICING_ASSERT_OK(doc_store->Put(document1)); in TEST_F() 624 ICING_ASSERT_OK(doc_store->Put(document2)); in TEST_F() 625 ICING_ASSERT_OK(doc_store->Put(document3)); in TEST_F() 626 ICING_ASSERT_OK(doc_store->Put(document4)); in TEST_F() 682 ICING_ASSERT_OK(schema_store->SetSchema(schema)); in TEST_F() [all …]
|
D | document-store_benchmark.cc | 155 ICING_ASSERT_OK(document_store->Put( in BM_DoesDocumentExistBenchmark() 219 ICING_ASSERT_OK(document_store->Put(CreateDocument("namespace", "uri"))); in BM_GetSameDocument() 250 ICING_ASSERT_OK(document_store->Put(document)); in BM_Delete()
|
/external/icing/icing/scoring/ |
D | scorer_test.cc | 83 ICING_ASSERT_OK(schema_store_->SetSchema(test_email_schema)); in SetUp() 338 ICING_ASSERT_OK(document_store()->ReportUsage(usage_report_type1)); in TEST_F() 379 ICING_ASSERT_OK(document_store()->ReportUsage(usage_report_type2)); in TEST_F() 420 ICING_ASSERT_OK(document_store()->ReportUsage(usage_report_type3)); in TEST_F() 463 ICING_ASSERT_OK(document_store()->ReportUsage(usage_report_type1_time1)); in TEST_F() 472 ICING_ASSERT_OK(document_store()->ReportUsage(usage_report_type1_time5)); in TEST_F() 481 ICING_ASSERT_OK(document_store()->ReportUsage(usage_report_type1_time3)); in TEST_F() 523 ICING_ASSERT_OK(document_store()->ReportUsage(usage_report_type2_time1)); in TEST_F() 532 ICING_ASSERT_OK(document_store()->ReportUsage(usage_report_type2_time5)); in TEST_F() 541 ICING_ASSERT_OK(document_store()->ReportUsage(usage_report_type2_time3)); in TEST_F() [all …]
|
D | score-and-rank_benchmark.cc | 114 ICING_ASSERT_OK(schema_store->SetSchema(CreateSchemaWithEmailType())); in BM_ScoreAndRankDocumentHitsByDocumentScore() 216 ICING_ASSERT_OK(schema_store->SetSchema(CreateSchemaWithEmailType())); in BM_ScoreAndRankDocumentHitsByCreationTime() 319 ICING_ASSERT_OK(schema_store->SetSchema(CreateSchemaWithEmailType())); in BM_ScoreAndRankDocumentHitsNoScoring()
|
D | scoring-processor_test.cc | 78 ICING_ASSERT_OK(schema_store_->SetSchema(test_email_schema)); in SetUp() 546 ICING_ASSERT_OK(document_store()->ReportUsage(usage_report_doc1)); in TEST_F() 547 ICING_ASSERT_OK(document_store()->ReportUsage(usage_report_doc2)); in TEST_F() 548 ICING_ASSERT_OK(document_store()->ReportUsage(usage_report_doc2)); in TEST_F() 606 ICING_ASSERT_OK(document_store()->ReportUsage(usage_report_doc1)); in TEST_F() 607 ICING_ASSERT_OK(document_store()->ReportUsage(usage_report_doc2)); in TEST_F()
|
/external/icing/icing/index/ |
D | index_test.cc | 160 ICING_ASSERT_OK(index_->Merge()); in TEST_F() 205 ICING_ASSERT_OK(index_->Merge()); in TEST_F() 245 ICING_ASSERT_OK(index_->Merge()); in TEST_F() 277 ICING_ASSERT_OK(index_->Merge()); in TEST_F() 308 ICING_ASSERT_OK(index_->Merge()); in TEST_F() 359 ICING_ASSERT_OK(index_->Merge()); in TEST_F() 402 ICING_ASSERT_OK(index_->Merge()); in TEST_F() 454 ICING_ASSERT_OK(index_->Merge()); in TEST_F() 496 ICING_ASSERT_OK(index_->Merge()); in TEST_F() 538 ICING_ASSERT_OK(index_->Merge()); in TEST_F() [all …]
|
D | index-processor_benchmark.cc | 185 ICING_ASSERT_OK(icu_data_file_helper::SetUpICUDataFile( in BM_IndexDocumentWithOneProperty() 214 ICING_ASSERT_OK( in BM_IndexDocumentWithOneProperty() 239 ICING_ASSERT_OK(icu_data_file_helper::SetUpICUDataFile( in BM_IndexDocumentWithTenProperties() 269 ICING_ASSERT_OK( in BM_IndexDocumentWithTenProperties() 294 ICING_ASSERT_OK(icu_data_file_helper::SetUpICUDataFile( in BM_IndexDocumentWithDiacriticLetters() 324 ICING_ASSERT_OK( in BM_IndexDocumentWithDiacriticLetters() 349 ICING_ASSERT_OK(icu_data_file_helper::SetUpICUDataFile( in BM_IndexDocumentWithHiragana() 378 ICING_ASSERT_OK( in BM_IndexDocumentWithHiragana()
|
/external/icing/icing/query/ |
D | query-processor_benchmark.cc | 73 ICING_ASSERT_OK(editor.BufferTerm(token.c_str())); in AddTokenToIndex() 74 ICING_ASSERT_OK(editor.IndexAllBufferedTerms()); in AddTokenToIndex() 94 ICING_ASSERT_OK(icu_data_file_helper::SetUpICUDataFile( in BM_QueryOneTerm() 126 ICING_ASSERT_OK(schema_store->SetSchema(schema)); in BM_QueryOneTerm() 211 ICING_ASSERT_OK(icu_data_file_helper::SetUpICUDataFile( in BM_QueryFiveTerms() 243 ICING_ASSERT_OK(schema_store->SetSchema(schema)); in BM_QueryFiveTerms() 346 ICING_ASSERT_OK(icu_data_file_helper::SetUpICUDataFile( in BM_QueryDiacriticTerm() 378 ICING_ASSERT_OK(schema_store->SetSchema(schema)); in BM_QueryDiacriticTerm() 466 ICING_ASSERT_OK(icu_data_file_helper::SetUpICUDataFile( in BM_QueryHiragana() 498 ICING_ASSERT_OK(schema_store->SetSchema(schema)); in BM_QueryHiragana()
|
/external/icing/icing/transform/icu/ |
D | icu-normalizer_benchmark.cc | 57 ICING_ASSERT_OK(icu_data_file_helper::SetUpICUDataFile( in BM_NormalizeUppercase() 91 ICING_ASSERT_OK(icu_data_file_helper::SetUpICUDataFile( in BM_NormalizeAccent() 129 ICING_ASSERT_OK(icu_data_file_helper::SetUpICUDataFile( in BM_NormalizeHiragana()
|
/external/icing/icing/tokenization/ |
D | language-segmenter_benchmark.cc | 59 ICING_ASSERT_OK(icu_data_file_helper::SetUpICUDataFile( in BM_SegmentNoSpace() 96 ICING_ASSERT_OK(icu_data_file_helper::SetUpICUDataFile( in BM_SegmentWithSpaces() 136 ICING_ASSERT_OK(icu_data_file_helper::SetUpICUDataFile( in BM_SegmentCJK()
|
/external/icing/icing/schema/ |
D | section-manager_test.cc | 87 ICING_ASSERT_OK(schema_type_mapper_->Put(kTypeEmail, 0)); in SetUp() 88 ICING_ASSERT_OK(schema_type_mapper_->Put(kTypeConversation, 1)); in SetUp() 407 ICING_ASSERT_OK(schema_type_mapper->Put( in TEST_F() 409 ICING_ASSERT_OK(schema_type_mapper->Put(empty_type.schema_type(), in TEST_F() 498 ICING_ASSERT_OK( in TEST_F() 500 ICING_ASSERT_OK(schema_type_mapper->Put(document_type.schema_type(), in TEST_F() 572 ICING_ASSERT_OK( in TEST_F() 574 ICING_ASSERT_OK(schema_type_mapper->Put(document_type.schema_type(), in TEST_F()
|
D | schema-util_test.cc | 431 ICING_ASSERT_OK(SchemaUtil::Validate(schema)); in TEST() 457 ICING_ASSERT_OK(SchemaUtil::Validate(schema)); in TEST() 466 ICING_ASSERT_OK(SchemaUtil::Validate(schema)); in TEST() 490 ICING_ASSERT_OK(SchemaUtil::Validate(schema)); in TEST() 549 ICING_ASSERT_OK(SchemaUtil::Validate(schema)); in TEST()
|
/external/icing/icing/index/iterator/ |
D | doc-hit-info-iterator-filter_test.cc | 70 ICING_ASSERT_OK(schema_store_->SetSchema(schema)); in SetUp() 99 ICING_ASSERT_OK(document_store_->Put(test_document1_)); in TEST_F() 119 ICING_ASSERT_OK(document_store_->Delete(test_document2_.namespace_(), in TEST_F() 237 ICING_ASSERT_OK(schema_store_->SetSchema(schema)); in SetUp() 392 ICING_ASSERT_OK(schema_store_->SetSchema(schema)); in SetUp() 532 ICING_ASSERT_OK(schema_store_->SetSchema(schema)); in SetUp() 732 ICING_ASSERT_OK(schema_store_->SetSchema(schema)); in SetUp() 793 ICING_ASSERT_OK( in TEST_F()
|
/external/icing/icing/testing/ |
D | common-matchers.h | 404 #define ICING_ASSERT_OK(func) ASSERT_THAT(func, IsOk()) macro 411 ICING_ASSERT_OK(statusor.status()); \
|