Home
last modified time | relevance | path

Searched refs:g_path (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/test/unittest/api/
H A Ddocumentdb_collection_test.cpp31 std::string g_path = "./document.db"; variable
48 EXPECT_EQ(GRD_DBOpen(g_path.c_str(), nullptr, GRD_DB_OPEN_CREATE, &g_db), GRD_OK); in SetUp()
58 DocumentDBTestUtils::RemoveTestDbFiles(g_path); in TearDown()
H A Ddocumentdb_delete_test.cpp33 std::string g_path = "./document.db"; variable
46 int status = GRD_DBOpen(g_path.c_str(), nullptr, GRD_DB_OPEN_CREATE, &g_db); in SetUpTestCase()
53 DocumentDBTestUtils::RemoveTestDbFiles(g_path); in TearDownTestCase()
H A Ddocumentdb_data_test.cpp32 std::string g_path = "./document.db"; variable
50 EXPECT_EQ(GRD_DBOpen(g_path.c_str(), nullptr, GRD_DB_OPEN_CREATE, &g_db), GRD_OK); in SetUp()
62 DocumentDBTestUtils::RemoveTestDbFiles(g_path); in TearDown()
H A Ddocumentdb_insert_test.cpp28 std::string g_path = "./document.db"; variable
64 int status = GRD_DBOpen(g_path.c_str(), nullptr, GRD_DB_OPEN_CREATE, &g_db); in SetUpTestCase()
73 DocumentDBTestUtils::RemoveTestDbFiles(g_path); in TearDownTestCase()
H A Ddocumentdb_find_test.cpp35 std::string g_path = "./document.db"; variable
113 int status = GRD_DBOpen(g_path.c_str(), nullptr, GRD_DB_OPEN_CREATE, &g_db); in SetUpTestCase()
122 DocumentDBTestUtils::RemoveTestDbFiles(g_path); in TearDownTestCase()
/ohos5.0/drivers/peripheral/audio/test/sample/
H A Didl_capture.c75 char g_path[PATH_MAX] = {'\0'}; variable
293 mmapDesc.filePath = strdup(g_path); in FrameStartCaptureMmap()
480 g_file = fopen(g_path, "wb+"); in RecordingAudioInitFile()
482 printf("capture failed to open '%s'\n", g_path); in RecordingAudioInitFile()
493 if (realpath(g_path, pathBuf) == NULL) { in RecordingAudioInitFile()
498 (void)memcpy_s(g_path, PATH_MAX, pathBuf, PATH_MAX); in RecordingAudioInitFile()
500 (void)chmod(g_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); in RecordingAudioInitFile()
1322 int32_t ret = strncpy_s(g_path, PATH_LEN - 1, argv[1], strlen(argv[1]) + 1); in CheckAndOpenFile()
1356 printf("Record file path:%s\n", g_path); in main()
H A Didl_render.c67 char g_path[256]; variable
266 if (realpath(g_path, pathBuf) == NULL) { in FrameStartMmap()
475 if (realpath(g_path, pathBuf) == NULL) { in PlayingAudioInitFile()
481 printf("failed to open '%s'\n", g_path); in PlayingAudioInitFile()
490 (void)chmod(g_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); in PlayingAudioInitFile()
1279 int32_t ret = strncpy_s(g_path, PATH_LEN - 1, argv[1], strlen(argv[1]) + 1); in main()
1286 if (realpath(g_path, pathBuf) == NULL) { in main()