Home
last modified time | relevance | path

Searched refs:file (Results 1 - 11 of 11) sorted by relevance

/ide/tools/previewer/automock/
H A Dbuild_jsmock_system_plugin.js4 * you may not use this file except in compliance with the License.
76 file: path.resolve(__dirname, 'dist/jsMockSystemPlugin.js'),
84 countSize(configJSAPIMockOutput.file);
85 const fileContent = fs.readFileSync(configJSAPIMockOutput.file, 'utf-8');
86 fs.writeFileSync(configJSAPIMockOutput.file, fileContent.replace(/CommonMethod\$\d*/g, 'CommonMethod'), 'utf-8');
91 const file = path.relative(__dirname, filePath);
94 console.error('file size is wrong');
99 console.log(`generate snapshot file: ${file}...\nthe snapshot file siz
[all...]
/ide/tools/previewer/test/mock/
H A DMockFile.cpp4 * you may not use this file except in compliance with the License.
23 #include <sys/file.h>
40 fl.l_whence = SEEK_SET; // Starting from beginning of file in SimulateFileLock()
42 fl.l_len = 0; // Lock whole file in SimulateFileLock()
46 // Lock failed (file is already locked) in SimulateFileLock()
48 return true; // Simulate that file is locked in SimulateFileLock()
51 // Lock acquired, simulate that file is not locked in SimulateFileLock()
65 fl.l_type = F_UNLCK; // Unlock the file in ReleaseFileLock()
66 fl.l_whence = SEEK_SET; // Starting from beginning of file in ReleaseFileLock()
68 fl.l_len = 0; // Unlock whole file in ReleaseFileLock()
90 FILE* file = fopen(filePath.c_str(), "rb"); AddFileToZip() local
[all...]
/ide/tools/previewer/util/
H A DPreviewerEngineLog.cpp4 * you may not use this file except in compliance with the License.
30 void PrintLog(const char* level, const char* file, const char* func, int line, const char* fmt, ...) in PrintLog() argument
45 std::string fileStr(file); in PrintLog()
H A DPreviewerEngineLog.h4 * you may not use this file except in compliance with the License.
25 void PrintLog(const char* level, const char* file, const char* func, int line,
/ide/tools/previewer/test/fuzztest/paramsparse_fuzzer/
H A DParamsParseFuzzer.h4 * you may not use this file except in compliance with the License.
98 std::ofstream file(g_currFile); in SetUpTestCase()
100 if (file.is_open()) { in SetUpTestCase()
101 file.close(); in SetUpTestCase()
103 printf("Error creating file!\n"); in SetUpTestCase()
114 printf("Error deleting file!\n"); in TearDownTestCase()
/ide/tools/previewer/test/unittest/cli/
H A DCommandLineInterfaceTest.cpp4 * you may not use this file except in compliance with the License.
290 std::ofstream file(currFile); in TEST()
292 if (file.is_open()) { in TEST()
293 file << g_configPath; in TEST()
294 file.close(); in TEST()
297 printf("Error creating file!\n");\ in TEST()
/ide/tools/previewer/jsapp/rich/external/
H A DStageContext.cpp4 * you may not use this file except in compliance with the License.
38 ELOG("file %s is not exist.", filePath.c_str()); in ReadFileContents()
41 std::ifstream file(filePath, std::ios::binary | std::ios::ate); in ReadFileContents()
42 if (!file) { in ReadFileContents()
43 ELOG("open file %s failed.", filePath.c_str()); in ReadFileContents()
46 std::streamsize fileSize = file.tellg(); in ReadFileContents()
47 file.seekg(0, std::ios::beg); in ReadFileContents()
49 if (file.read(reinterpret_cast<char*>(data.data()), fileSize)) { in ReadFileContents()
52 ELOG("read file %s failed.", filePath.c_str()); in ReadFileContents()
382 printf("Failed to open the zip file in GetModuleBufferFromHsp()
[all...]
/ide/tools/previewer/test/unittest/jsapp/
H A DStageContextTest.cpp4 * you may not use this file except in compliance with the License.
34 std::ofstream file(filePath, std::ios_base::trunc); in WriteFile()
35 if (file.is_open()) { in WriteFile()
36 file << content; in WriteFile()
37 file.close(); in WriteFile()
39 printf("Error open file!\n"); in WriteFile()
81 printf("Error deleting file!\n"); in TearDownTestCase()
H A DJsAppImplTest.cpp4 * you may not use this file except in compliance with the License.
40 std::ofstream file(testFile, std::ios::out | std::ios::in | std::ios_base::trunc); in WriteFile()
41 if (file.is_open()) { in WriteFile()
42 file << fileContent; in WriteFile()
43 file.close(); in WriteFile()
45 printf("Error open file!\n"); in WriteFile()
547 printf("Error deleting module.json file!\n"); in TEST_F()
550 printf("Error deleting pkgContextInfo.json file!\n"); in TEST_F()
/ide/tools/previewer/test/unittest/util/
H A DJsonReaderTest.cpp4 * you may not use this file except in compliance with the License.
413 std::ofstream file(path); in TEST()
414 if (!file) { in TEST()
415 printf("Error creating file: %s\r\n", path.c_str()); in TEST()
419 file << g_obj; in TEST()
420 file.close(); in TEST()
H A DCommandParserTest.cpp4 * you may not use this file except in compliance with the License.
42 std::ofstream file(currFile); in SetUpTestCase()
44 if (file.is_open()) { in SetUpTestCase()
45 file.close(); in SetUpTestCase()
47 printf("Error creating file!\n"); in SetUpTestCase()
56 } else if (invalidParam == "=file=") { in SetUpTestCase()
68 printf("Error deleting file!\n"); in TearDownTestCase()
91 "-ljPath =file= "
95 "-f =file= "

Completed in 9 milliseconds