diff options
author | Alexander Dorokhine <adorokhine@google.com> | 2020-11-18 16:39:25 -0800 |
---|---|---|
committer | Alexander Dorokhine <adorokhine@google.com> | 2020-11-18 16:39:25 -0800 |
commit | 1ae91ee03a08a4f0391f0f90e2797fb3c2e02960 (patch) | |
tree | ab1344e2dc53bdbd4c9c5eb970def0d49a9ebdc3 /icing/index/iterator/doc-hit-info-iterator-filter_test.cc | |
parent | e111bb917a63282b8e11012acb8f97cba882f342 (diff) | |
download | icing-1ae91ee03a08a4f0391f0f90e2797fb3c2e02960.tar.gz |
Update Icing from upstream.
Change-Id: Ic022a44e876a6060a47e0db991e63b2b73807769
Diffstat (limited to 'icing/index/iterator/doc-hit-info-iterator-filter_test.cc')
-rw-r--r-- | icing/index/iterator/doc-hit-info-iterator-filter_test.cc | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/icing/index/iterator/doc-hit-info-iterator-filter_test.cc b/icing/index/iterator/doc-hit-info-iterator-filter_test.cc index 9eb147a..e0a8cd0 100644 --- a/icing/index/iterator/doc-hit-info-iterator-filter_test.cc +++ b/icing/index/iterator/doc-hit-info-iterator-filter_test.cc @@ -63,14 +63,16 @@ class DocHitInfoIteratorDeletedFilterTest : public ::testing::Test { auto type_config = schema.add_types(); type_config->set_schema_type("email"); - ICING_ASSERT_OK_AND_ASSIGN(schema_store_, - SchemaStore::Create(&filesystem_, test_dir_)); + ICING_ASSERT_OK_AND_ASSIGN( + schema_store_, + SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); ICING_ASSERT_OK(schema_store_->SetSchema(schema)); ICING_ASSERT_OK_AND_ASSIGN( - document_store_, + DocumentStore::CreateResult create_result, DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, schema_store_.get())); + document_store_ = std::move(create_result.document_store); } void TearDown() override { @@ -228,14 +230,16 @@ class DocHitInfoIteratorNamespaceFilterTest : public ::testing::Test { auto type_config = schema.add_types(); type_config->set_schema_type("email"); - ICING_ASSERT_OK_AND_ASSIGN(schema_store_, - SchemaStore::Create(&filesystem_, test_dir_)); + ICING_ASSERT_OK_AND_ASSIGN( + schema_store_, + SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); ICING_ASSERT_OK(schema_store_->SetSchema(schema)); ICING_ASSERT_OK_AND_ASSIGN( - document_store_, + DocumentStore::CreateResult create_result, DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, schema_store_.get())); + document_store_ = std::move(create_result.document_store); } void TearDown() override { @@ -383,14 +387,16 @@ class DocHitInfoIteratorSchemaTypeFilterTest : public ::testing::Test { type_config = schema.add_types(); type_config->set_schema_type(schema3_); - ICING_ASSERT_OK_AND_ASSIGN(schema_store_, - SchemaStore::Create(&filesystem_, test_dir_)); + ICING_ASSERT_OK_AND_ASSIGN( + schema_store_, + SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); ICING_ASSERT_OK(schema_store_->SetSchema(schema)); ICING_ASSERT_OK_AND_ASSIGN( - document_store_, + DocumentStore::CreateResult create_result, DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, schema_store_.get())); + document_store_ = std::move(create_result.document_store); } void TearDown() override { @@ -521,14 +527,16 @@ class DocHitInfoIteratorExpirationFilterTest : public ::testing::Test { auto type_config = schema.add_types(); type_config->set_schema_type(email_schema_); - ICING_ASSERT_OK_AND_ASSIGN(schema_store_, - SchemaStore::Create(&filesystem_, test_dir_)); + ICING_ASSERT_OK_AND_ASSIGN( + schema_store_, + SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); ICING_ASSERT_OK(schema_store_->SetSchema(schema)); ICING_ASSERT_OK_AND_ASSIGN( - document_store_, + DocumentStore::CreateResult create_result, DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, schema_store_.get())); + document_store_ = std::move(create_result.document_store); } void TearDown() override { @@ -711,14 +719,16 @@ class DocHitInfoIteratorFilterTest : public ::testing::Test { type_config = schema.add_types(); type_config->set_schema_type(schema2_); - ICING_ASSERT_OK_AND_ASSIGN(schema_store_, - SchemaStore::Create(&filesystem_, test_dir_)); + ICING_ASSERT_OK_AND_ASSIGN( + schema_store_, + SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); ICING_ASSERT_OK(schema_store_->SetSchema(schema)); ICING_ASSERT_OK_AND_ASSIGN( - document_store_, + DocumentStore::CreateResult create_result, DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, schema_store_.get())); + document_store_ = std::move(create_result.document_store); } void TearDown() override { |