diff options
author | Tor Brede Vekterli <vekterli@yahoo-inc.com> | 2017-02-24 15:32:35 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@yahoo-inc.com> | 2017-02-27 10:04:58 +0000 |
commit | b537c556ba73aa65ed12b8b573d275d7a4d4895b (patch) | |
tree | 64e7ec9552273c8e83c481141b835cc845be1714 /searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp | |
parent | 2b10af318c7d1d563e0a3aaa7a58ef31d11c7e1e (diff) |
Make ComponentGuard::get() return a pointer, not a reference
With this change, ComponentGuard behaves like other smart handles
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp')
-rw-r--r-- | searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp b/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp index beeeba2cd68..0f77b5c5894 100644 --- a/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp +++ b/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp @@ -453,7 +453,7 @@ void assertAttributes1(const AttributeGuardList &attributes) { EXPECT_EQUAL(1u, attributes.size()); - EXPECT_EQUAL("attr1", attributes[0].get().getName()); + EXPECT_EQUAL("attr1", attributes[0]->getName()); } void @@ -467,8 +467,8 @@ void assertAttributes2(const AttributeGuardList &attributes) { EXPECT_EQUAL(2u, attributes.size()); - EXPECT_EQUAL("attr1", attributes[0].get().getName()); - EXPECT_EQUAL("attr2", attributes[1].get().getName()); + EXPECT_EQUAL("attr1", attributes[0]->getName()); + EXPECT_EQUAL("attr2", attributes[1]->getName()); } void @@ -716,7 +716,7 @@ TEST_F("require that only fast-access attributes are instantiated", FastAccessOn std::vector<AttributeGuard> attrs; f.getAttributeManager()->getAttributeList(attrs); EXPECT_EQUAL(1u, attrs.size()); - EXPECT_EQUAL("attr1", attrs[0].get().getName()); + EXPECT_EQUAL("attr1", attrs[0]->getName()); } template <typename FixtureType> @@ -803,12 +803,12 @@ assertAttribute(const AttributeGuard &attr, SerialNum createSerialNum, SerialNum lastSerialNum) { - EXPECT_EQUAL(name, attr.get().getName()); - EXPECT_EQUAL(numDocs, attr.get().getNumDocs()); - EXPECT_EQUAL(doc1Value, attr.get().getInt(1)); - EXPECT_EQUAL(doc2Value, attr.get().getInt(2)); - EXPECT_EQUAL(createSerialNum, attr.get().getCreateSerialNum()); - EXPECT_EQUAL(lastSerialNum, attr.get().getStatus().getLastSyncToken()); + EXPECT_EQUAL(name, attr->getName()); + EXPECT_EQUAL(numDocs, attr->getNumDocs()); + EXPECT_EQUAL(doc1Value, attr->getInt(1)); + EXPECT_EQUAL(doc2Value, attr->getInt(2)); + EXPECT_EQUAL(createSerialNum, attr->getCreateSerialNum()); + EXPECT_EQUAL(lastSerialNum, attr->getStatus().getLastSyncToken()); } void |