Home
last modified time | relevance | path

Searched refs:ICING_ASSERT_OK (Results 1 – 25 of 40) sorted by relevance

12

/external/icing/icing/index/main/
Dmain-index_test.cc150 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 …]
Dmain-index-merger_test.cc91 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()
Dposting-list-accessor_test.cc57 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 …]
Dposting-list-used_test.cc473 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 …]
Dflash-index-storage_test.cc168 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 …]
Dindex-block_test.cc127 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/
Dfile-backed-proto_test.cc48 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()
Dfile-backed-proto-log_test.cc184 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 …]
Dportable-file-backed-proto-log_test.cc214 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 …]
Dfile-backed-vector_test.cc61 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/
Dusage-store_test.cc255 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 …]
Ddocument-store_test.cc166 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 …]
Ddocument-store_benchmark.cc155 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/
Dscorer_test.cc83 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 …]
Dscore-and-rank_benchmark.cc114 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()
Dscoring-processor_test.cc78 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/
Dindex_test.cc160 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 …]
Dindex-processor_benchmark.cc185 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/
Dquery-processor_benchmark.cc73 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/
Dicu-normalizer_benchmark.cc57 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/
Dlanguage-segmenter_benchmark.cc59 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/
Dsection-manager_test.cc87 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()
Dschema-util_test.cc431 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/
Ddoc-hit-info-iterator-filter_test.cc70 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/
Dcommon-matchers.h404 #define ICING_ASSERT_OK(func) ASSERT_THAT(func, IsOk()) macro
411 ICING_ASSERT_OK(statusor.status()); \

12