From 43941a3d876b854560b06906665d689c3924aed1 Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Mon, 10 Aug 2020 20:50:27 +0300 Subject: SL-13669 tests should cover import/export category from llsd --- indra/llinventory/tests/inventorymisc_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'indra/llinventory/tests') diff --git a/indra/llinventory/tests/inventorymisc_test.cpp b/indra/llinventory/tests/inventorymisc_test.cpp index 6eb3f04827..e8b063bffe 100644 --- a/indra/llinventory/tests/inventorymisc_test.cpp +++ b/indra/llinventory/tests/inventorymisc_test.cpp @@ -478,7 +478,7 @@ namespace tut } LLPointer src1 = create_random_inventory_cat(); - fileXML << LLSDOStreamer(ll_create_sd_from_inventory_category(src1)) << std::endl; + fileXML << LLSDOStreamer(src1->exportLLSD()) << std::endl; fileXML.close(); llifstream file(filename.c_str()); @@ -500,7 +500,8 @@ namespace tut file.close(); - LLPointer src2 = ll_create_category_from_sd(s_item); + LLPointer src2 = new LLInventoryCategory(); + src2->importLLSD(s_item); ensure_equals("1.item id::getUUID() failed", src1->getUUID(), src2->getUUID()); ensure_equals("2.parent::getParentUUID() failed", src1->getParentUUID(), src2->getParentUUID()); -- cgit v1.3