Home
last modified time | relevance | path

Searched refs:temp_filename (Results 1 – 16 of 16) sorted by relevance

/external/webrtc/webrtc/test/testsupport/
Dfileutils_unittest.cc95 std::string temp_filename = webrtc::test::TempFilename( in TEST_F() local
97 ASSERT_TRUE(webrtc::test::FileExists(temp_filename)) in TEST_F()
98 << "Couldn't find file: " << temp_filename; in TEST_F()
99 remove(temp_filename.c_str()); in TEST_F()
138 std::string temp_filename = webrtc::test::TempFilename( in TEST_F() local
140 FILE* file = fopen(temp_filename.c_str(), "wb"); in TEST_F()
141 ASSERT_TRUE(file != NULL) << "Failed to open file: " << temp_filename; in TEST_F()
143 "Failed to write to file: " << temp_filename; in TEST_F()
145 ASSERT_GT(webrtc::test::GetFileSize(std::string(temp_filename.c_str())), 0u); in TEST_F()
146 remove(temp_filename.c_str()); in TEST_F()
/external/google-breakpad/src/tools/windows/symupload/
Dsymupload.cc128 wchar_t temp_filename[_MAX_PATH]; in DumpSymbolsToTempFile() local
129 if (GetTempFileName(temp_path, L"sym", 0, temp_filename) == 0) { in DumpSymbolsToTempFile()
135 if (_wfopen_s(&temp_file, temp_filename, L"w") != 0) in DumpSymbolsToTempFile()
139 if (!(temp_file = _wfopen(temp_filename, L"w"))) in DumpSymbolsToTempFile()
148 _wunlink(temp_filename); in DumpSymbolsToTempFile()
152 *temp_file_path = temp_filename; in DumpSymbolsToTempFile()
/external/tensorflow/tensorflow/contrib/ffmpeg/
Ddecode_video_op.cc52 const string temp_filename = io::GetTempFilename(extension); in Compute() local
53 OP_REQUIRES_OK(context, WriteFile(temp_filename, contents)); in Compute()
54 FileDeleter deleter(temp_filename); in Compute()
62 const Status result = ffmpeg::ReadVideoFile(temp_filename, &output_data, in Compute()
Ddecode_audio_op.cc49 const string temp_filename = io::GetTempFilename(file_format); in Decode() local
50 OP_REQUIRES_OK(context, WriteFile(temp_filename, file_contents)); in Decode()
51 FileDeleter deleter(temp_filename); in Decode()
56 ffmpeg::ReadAudioFile(temp_filename, file_format, samples_per_second, in Decode()
/external/python/cpython2/Lib/test/
Dtest_netrc.py4 temp_filename = test_support.TESTFN variable
13 with open(temp_filename, mode) as fp:
16 self.addCleanup(os.unlink, temp_filename)
17 return netrc.netrc(temp_filename)
/external/tensorflow/tensorflow/contrib/ffmpeg/default/
Dffmpeg_lib_test.cc101 string temp_filename = GetTempFilename("wav"); in TEST() local
102 ASSERT_TRUE(WriteStringToFile(Env::Default(), temp_filename, content).ok()); in TEST()
105 ReadAudioFile(temp_filename, "wav", 20000, 1, &roundtrip_data).ok()); in TEST()
/external/webrtc/webrtc/voice_engine/test/auto_test/standard/
Dcodec_test.cc187 const std::string temp_filename = webrtc::test::OutputPath() + in TEST_F() local
191 event_log->StartLogging(temp_filename, 1000); in TEST_F()
195 FILE* event_file = fopen(temp_filename.c_str(), "r"); in TEST_F()
199 remove(temp_filename.c_str()); in TEST_F()
/external/python/cpython3/Lib/test/
Dtest_netrc.py13 temp_fd, temp_filename = tempfile.mkstemp()
16 self.addCleanup(os.unlink, temp_filename)
17 return netrc.netrc(temp_filename)
/external/libxcam/modules/ocl/
Dcl_kernel.cpp127 char temp_filename[XCAM_MAX_STR_SIZE] = {0}; in build_kernel() local
201 temp_filename, XCAM_MAX_STR_SIZE - 1, in build_kernel()
205 ret = temp_file.open (temp_filename, "wb"); in build_kernel()
210 rename (temp_filename, cache_filename); in build_kernel()
212 remove (temp_filename); in build_kernel()
/external/webrtc/webrtc/call/
Drtc_event_log_unittest.cc468 const std::string temp_filename = in LogSessionAndReadBack() local
504 log_dumper->StartLogging(temp_filename, 10000000); in LogSessionAndReadBack()
512 ASSERT_TRUE(RtcEventLog::ParseRtcEventLog(temp_filename, &parsed_stream)); in LogSessionAndReadBack()
562 remove(temp_filename.c_str()); in LogSessionAndReadBack()
635 const std::string temp_filename = in DropOldEvents() local
651 log_dumper->StartLogging(temp_filename, 10000000); in DropOldEvents()
661 ASSERT_TRUE(RtcEventLog::ParseRtcEventLog(temp_filename, &parsed_stream)); in DropOldEvents()
677 remove(temp_filename.c_str()); in DropOldEvents()
/external/googletest/googletest/scripts/
Dupload.py1160 unused, temp_filename = line.split(':', 1)
1164 temp_filename = temp_filename.strip().replace('\\', '/')
1165 if temp_filename != filename:
1167 new_filename = temp_filename
/external/googletest/googlemock/scripts/
Dupload.py1160 unused, temp_filename = line.split(':', 1)
1164 temp_filename = temp_filename.strip().replace('\\', '/')
1165 if temp_filename != filename:
1167 new_filename = temp_filename
/external/google-breakpad/src/testing/scripts/
Dupload.py1160 unused, temp_filename = line.split(':', 1)
1164 temp_filename = temp_filename.strip().replace('\\', '/')
1165 if temp_filename != filename:
1167 new_filename = temp_filename
/external/google-breakpad/src/testing/gtest/scripts/
Dupload.py1160 unused, temp_filename = line.split(':', 1)
1164 temp_filename = temp_filename.strip().replace('\\', '/')
1165 if temp_filename != filename:
1167 new_filename = temp_filename
/external/tensorflow/tensorflow/core/kernels/
Dsave_op_test.cc669 const string temp_filename = in BM_LargeTensorWrite() local
673 ops::Save(root, temp_filename, {tensor_name}, {{tensor}}); in BM_LargeTensorWrite()
684 VLOG(1) << "Save op's output path: " << temp_filename; in BM_LargeTensorWrite()
/external/python/oauth2client/oauth2client/
Dclient.py1327 temp_filename = tempfile.mktemp()
1328 file_desc = os.open(temp_filename, os.O_WRONLY | os.O_CREAT, 0o600)
1332 shutil.move(temp_filename, filename)