Home
last modified time | relevance | path

Searched refs:exportFileName (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_import_and_export_test.cpp1168 std::string exportFileName = g_exportFileDir + "ForceExportTest001.back"; variable
1170 int fd = open(exportFileName.c_str(), (O_WRONLY | O_CREAT), (S_IRUSR | S_IWUSR | S_IRGRP));
1176 chmod(exportFileName.c_str(), S_IRWXU);
1177 EXPECT_EQ(g_kvNbDelegatePtr->Export(exportFileName, passwd, true), OK);
1181 EXPECT_EQ(stat(exportFileName.c_str(), &fileStat), 0);
1193 EXPECT_EQ(g_kvNbDelegatePtr->Import(exportFileName, passwd), OK);
1234 std::string exportFileName = g_exportFileDir + storeId + ".back"; variable
1235 EXPECT_EQ(g_kvNbDelegatePtr->Export(exportFileName, passwd, true), OK);
1246 EXPECT_EQ(g_kvNbDelegatePtr->Import(exportFileName, passwd), OK);
H A Ddistributeddb_interfaces_device_identifier_test.cpp525 std::string exportFileName = g_testDir + "/" + STORE_ID + ".dump"; in StorageEngineTest002() local
526 int fd = open(exportFileName.c_str(), (O_WRONLY | O_CREAT), (S_IRUSR | S_IWUSR | S_IRGRP)); in StorageEngineTest002()
530 OS::RemoveDBDirectory(exportFileName); in StorageEngineTest002()
H A Ddistributeddb_interfaces_import_and_export_rd_test.cpp1145 std::string exportFileName = g_exportFileDir + "ForceExportTest001.back"; variable
1147 int fd = open(exportFileName.c_str(), (O_WRONLY | O_CREAT), (S_IRUSR | S_IWUSR | S_IRGRP));
1153 chmod(exportFileName.c_str(), S_IRWXU);
1154 EXPECT_EQ(g_kvNbDelegatePtr->Export(exportFileName, passwd, true), OK);
1158 EXPECT_EQ(stat(exportFileName.c_str(), &fileStat), 0);
1170 EXPECT_EQ(g_kvNbDelegatePtr->Import(exportFileName, passwd), OK);