Home
last modified time | relevance | path

Searched refs:testPath (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/foundation/filemanagement/dfs_service/test/unittests/distributed_file_daemon/
H A Dconnection_detector_test.cpp259 string testPath = "/data/test/1.txt"; variable
264 int fd = open(testPath.c_str(), O_RDWR | O_CREAT);
272 int ret = unlink(testPath.c_str());
288 string testPath = "/data/test/1.txt"; variable
290 int fd = open(testPath.c_str(), O_RDWR | O_CREAT);
309 int ret = unlink(testPath.c_str());
324 string testPath = "/data/test/1.txt"; variable
326 int fd = open(testPath.c_str(), O_RDWR | O_CREAT);
345 int ret = unlink(testPath.c_str());
360 string testPath = "/data/test/1.txt"; variable
[all …]
/ohos5.0/foundation/communication/dhcp/test/unittest/services/dhcp_server/unittest/
H A Dcommon_util_test.cpp56 const char *testPath = "/etc/dhcp/dhcp_server.conf"; variable
59 EXPECT_STREQ("/etc/dhcp", GetFilePath(testPath));
76 const char *testPath = "./test/data/testpath"; variable
79 ASSERT_EQ(RET_SUCCESS, CreatePath(testPath));
80 EXPECT_EQ(0, remove(testPath));
/ohos5.0/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_sandboxmgr_test.cpp368 const char *testPath = "xxx/xxx/xxx"; variable
369 pathNode->source = strdup(testPath);
370 pathNode->target = strdup(testPath);
373 pathNode = GetPathMountNode(section, SANDBOX_TAG_MOUNT_PATH, testPath, testPath);
378 pathNode = GetPathMountNode(section, j, testPath, testPath);
416 const char *testPath = "xxx/xxx/xxx"; variable
417 pathNode->linkName = strdup(testPath);
418 pathNode->target = strdup(testPath);
421 pathNode = GetSymbolLinkNode(section, testPath, testPath);
425 pathNode = GetSymbolLinkNode(section, testPath, testPath);
[all …]
/ohos5.0/foundation/communication/netmanager_base/test/netcommon/unittest/net_common_test/
H A Dnet_mgr_log_wrapper_test.cpp62 const std::string testPath = "test"; variable
64 auto ret = NetMgrLogWrapper::GetBriefFileName(testPath + "/" + testFileName);
70 const std::string testPath = "test"; variable
72 auto ret = NetMgrLogWrapper::GetBriefFileName(testPath + "\\" + testFileName);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/model/
H A Dmodel_test_ng.cpp48 std::string testPath = "/data/local"; variable
254 modelViewNG.SetBackground(testPath);
255 EXPECT_EQ(modelPaintProperty->GetModelBackgroundValue(), testPath);
260 modelViewNG.SetModelSource(testPath);
261 EXPECT_EQ(modelPaintProperty->GetModelSourceValue(), testPath);
281 modelViewNG.SetShader(testPath);
282 EXPECT_EQ(modelPaintProperty->GetShaderPathValue(), testPath);
407 EXPECT_EQ(json1->GetString("environment"), testPath);
408 EXPECT_EQ(json1->GetString("customRender"), testPath);
409 EXPECT_EQ(json1->GetString("shader"), testPath);
[all …]
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_helper_test/src/
H A Dmedia_file_utils_test.cpp155 string testPath = "/data/test/WriteStrToFileTest_001"; variable
159 EXPECT_EQ(MediaFileUtils::CreateFile(testPath), true);
162 EXPECT_EQ(CheckFileString(testPath, testString), true);
909 string testPath = "/data/test/copydirectory_002"; variable
910 string oldDir = testPath + "/copydirectory_002_srcdir";
911 string newDir = testPath + "/copydirectory_002_dstdir";
919 string testPath = "/data/test/copydirectory_003"; variable
920 string oldDir = testPath + "/copydirectory_003_srcdir";
921 string newDir = testPath + "/copydirectory_003_dstdir";
930 string testPath = "/data/test/copydirectory_004"; variable
[all …]
/ohos5.0/base/update/updater/test/unittest/utils/
H A Dutils_unittest.cpp141 const std::string testPath = "/data/updater/updater/etc/fstab.ut.updater"; variable
142 ret = Utils::GetDirSizeForFile(testPath);
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_filesystem/
H A Db_dir_test.cpp336 std::string testPath = "../test../test1"; variable
343 bool isForbid = BDir::CheckFilePathInvalid(testPath);
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/
H A Dsoftbus_asset_send_listener_test.cpp32 const string testPath = "/data/test"; variable
H A Dsoftbus_asset_recv_listener_test.cpp34 const string testPath = "/data/test"; variable
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dplugin_texture_encode_test.cpp536 const std::string testPath = "/data/local/tmp"; in ReadFileExtern() local
538 if (sprintf_s(inFile, sizeof(inFile), "%s/%dx%d/a%04ld_%dx%d.rgb", testPath.c_str(), in ReadFileExtern()
/ohos5.0/foundation/multimedia/camera_lite/test/unittest/
H A Dcamera_lite_test.cpp225 int32_t SampleSaveCapture(string testPath, const char *buffer, uint32_t size) in SampleSaveCapture() argument
236 filePath = testPath + ss.str(); in SampleSaveCapture()
237 ofstream pic(testPath + ss.str(), ofstream::out | ofstream::trunc); in SampleSaveCapture()