diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-08-10 20:50:27 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-08-10 20:50:27 +0300 |
commit | 43941a3d876b854560b06906665d689c3924aed1 (patch) | |
tree | 4934b6cb0e778c5ef0dedebb3c9b93878d2508fb /indra/llinventory/tests | |
parent | 8213cc896c74ca08ee231aa557eac302445c933e (diff) |
SL-13669 tests should cover import/export category from llsd
Diffstat (limited to 'indra/llinventory/tests')
-rw-r--r-- | indra/llinventory/tests/inventorymisc_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<LLInventoryCategory> src1 = create_random_inventory_cat(); - fileXML << LLSDOStreamer<LLSDNotationFormatter>(ll_create_sd_from_inventory_category(src1)) << std::endl; + fileXML << LLSDOStreamer<LLSDNotationFormatter>(src1->exportLLSD()) << std::endl; fileXML.close(); llifstream file(filename.c_str()); @@ -500,7 +500,8 @@ namespace tut file.close(); - LLPointer<LLInventoryCategory> src2 = ll_create_category_from_sd(s_item); + LLPointer<LLInventoryCategory> 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()); |