Home
last modified time | relevance | path

Searched refs:temp_dir (Results 1 – 25 of 149) sorted by relevance

123456

/external/libchrome/base/files/
Dfile_enumerator_unittest.cc63 ScopedTempDir temp_dir; in TEST() local
64 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
68 RunEnumerator(temp_dir.GetPath(), true, in TEST()
76 ScopedTempDir temp_dir; in TEST() local
77 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
79 const FilePath& path = temp_dir.GetPath(); in TEST()
85 temp_dir.GetPath(), true, FileEnumerator::FILES, kEmptyPattern, policy); in TEST()
91 ScopedTempDir temp_dir; in TEST() local
92 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
94 const FilePath& path = temp_dir.GetPath(); in TEST()
[all …]
Dfile_unittest.cc22 base::ScopedTempDir temp_dir; in TEST() local
23 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
24 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); in TEST()
98 file_path = temp_dir.GetPath().AppendASCII("create_file_2"); in TEST()
111 base::ScopedTempDir temp_dir; in TEST() local
112 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
113 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); in TEST()
121 base::ScopedTempDir temp_dir; in TEST() local
122 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
123 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file"); in TEST()
[all …]
/external/google-breakpad/src/client/linux/handler/
Dexception_handler_unittest.cc165 AutoTempDir temp_dir; in TEST() local
167 MinidumpDescriptor(temp_dir.path()), NULL, NULL, NULL, true, -1); in TEST()
168 EXPECT_EQ(temp_dir.path(), handler.minidump_descriptor().directory()); in TEST()
169 string temp_subdir = temp_dir.path() + "/subdir"; in TEST()
175 AutoTempDir temp_dir; in TEST() local
177 const int fd = CreateTMPFile(temp_dir.path(), &path); in TEST()
215 AutoTempDir temp_dir; in ChildCrash() local
220 minidump_fd = CreateTMPFile(temp_dir.path(), &minidump_path); in ChildCrash()
235 handler.reset(new ExceptionHandler(MinidumpDescriptor(temp_dir.path()), in ChildCrash()
320 AutoTempDir temp_dir; in TEST() local
[all …]
/external/autotest/client/common_lib/
Dautotemp_unittest.py35 temp_dir = autotemp.tempdir(unique_id='dir')
36 self.assertTrue(os.path.exists(temp_dir.name))
37 self.assertTrue(os.path.isdir(temp_dir.name))
41 temp_dir = autotemp.tempdir(unique_id='clean')
42 name = temp_dir.name
44 temp_dir.clean()
49 temp_dir = autotemp.tempdir(unique_id='del')
50 name = temp_dir.name
52 temp_dir.__del__()
/external/libbrillo/policy/tests/
Dresilient_policy_util_unittest.cc31 base::ScopedTempDir temp_dir; in TEST() local
32 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
34 base::FilePath file0(temp_dir.GetPath().Append("policy")); in TEST()
35 base::FilePath file1(temp_dir.GetPath().Append("policy.12")); in TEST()
36 base::FilePath file2(temp_dir.GetPath().Append("policy.2")); in TEST()
37 base::FilePath file3(temp_dir.GetPath().Append("policy.30")); in TEST()
38 base::FilePath invalid(temp_dir.GetPath().Append("policy_4")); in TEST()
46 temp_dir.GetPath().Append(kDefaultResilientPolicyFilePath)); in TEST()
Dpolicy_util_unittest.cc20 base::ScopedTempDir temp_dir; in TEST() local
21 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
23 base::FilePath invalid_policy_data_path(temp_dir.GetPath().Append("policy")); in TEST()
24 base::FilePath inexistent_file(temp_dir.GetPath().Append("policy.1")); in TEST()
25 base::FilePath good_policy_data_path(temp_dir.GetPath().Append("policy.2")); in TEST()
/external/python/cpython2/Lib/test/
Dtest_cmd_line_script.py9 temp_dir, make_script, compile_script,
102 with temp_dir() as script_dir:
107 with temp_dir() as script_dir:
114 with temp_dir() as script_dir:
119 with temp_dir() as script_dir:
126 with temp_dir() as script_dir:
131 with temp_dir() as script_dir:
137 with temp_dir() as script_dir:
144 with temp_dir() as script_dir:
151 with temp_dir() as script_dir:
[all …]
/external/tensorflow/tensorflow/python/keras/
Dcallbacks_v1_test.py50 temp_dir = self.get_temp_dir()
51 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True)
91 log_dir=temp_dir,
151 assert os.path.exists(temp_dir)
359 temp_dir = self.get_temp_dir()
360 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True)
378 callbacks_v1.TensorBoard(log_dir=temp_dir)
390 assert os.path.exists(temp_dir)
415 temp_dir = self.get_temp_dir()
416 self.addCleanup(shutil.rmtree, temp_dir, ignore_errors=True)
[all …]
/external/libchrome/mojo/public/cpp/base/
Dfile_unittest.cc15 base::ScopedTempDir temp_dir; in TEST() local
16 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
19 temp_dir.GetPath().AppendASCII("test_file.txt"), in TEST()
40 base::ScopedTempDir temp_dir; in TEST() local
41 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
42 base::FilePath path = temp_dir.GetPath().AppendASCII("async_test_file.txt"); in TEST()
59 base::ScopedTempDir temp_dir; in TEST() local
60 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
63 temp_dir.GetPath().AppendASCII("test_file.txt"), in TEST()
/external/autotest/utils/
Dpackager.py163 temp_dir = tempfile.mkdtemp()
166 packages.check_diskspace(temp_dir)
169 "enough space available: %s" % (temp_dir, e))
180 temp_dir,
191 shutil.rmtree(temp_dir)
197 def tar_packages(pkgmgr, pkg_type, pkg_names, src_dir, temp_dir): argument
229 temp_dir, exclude_string_tar)
239 temp_dir = tempfile.mkdtemp()
241 packages.check_diskspace(temp_dir)
244 % (temp_dir, e))
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/scripts/
Dtest_compact_ids.py23 def test_spirv_file(path, temp_dir): argument
24 optimized_spv_path = os.path.join(temp_dir, 'optimized.spv')
25 optimized_dis_path = os.path.join(temp_dir, 'optimized.dis')
26 converted_spv_path = os.path.join(temp_dir, 'converted.spv')
27 converted_dis_path = os.path.join(temp_dir, 'converted.dis')
84 temp_dir = tempfile.mkdtemp()
87 success = test_spirv_file(path, temp_dir)
/external/deqp-deps/SPIRV-Tools/test/scripts/
Dtest_compact_ids.py23 def test_spirv_file(path, temp_dir): argument
24 optimized_spv_path = os.path.join(temp_dir, 'optimized.spv')
25 optimized_dis_path = os.path.join(temp_dir, 'optimized.dis')
26 converted_spv_path = os.path.join(temp_dir, 'converted.spv')
27 converted_dis_path = os.path.join(temp_dir, 'converted.dis')
84 temp_dir = tempfile.mkdtemp()
87 success = test_spirv_file(path, temp_dir)
/external/python/cpython3/Lib/test/
Dtest_multiprocessing_main_handling.py170 with support.temp_dir() as script_dir:
175 with support.temp_dir() as script_dir:
186 with support.temp_dir() as script_dir:
196 with support.temp_dir() as script_dir:
205 with support.temp_dir() as script_dir:
212 with support.temp_dir() as script_dir:
222 with support.temp_dir() as script_dir:
230 with support.temp_dir() as script_dir:
238 with support.temp_dir() as script_dir:
247 with support.temp_dir() as script_dir:
[all …]
Dtest_cmd_line_script.py217 with support.temp_dir() as script_dir:
224 with support.temp_dir() as script_dir:
234 with support.temp_dir() as script_dir:
241 with support.temp_dir() as script_dir:
251 with support.temp_dir() as script_dir:
256 with support.temp_dir() as script_dir:
263 with support.temp_dir() as script_dir:
271 with support.temp_dir() as script_dir:
278 with support.temp_dir() as script_dir:
288 with support.temp_dir() as script_dir:
[all …]
/external/tensorflow/tensorflow/python/platform/
Dgoogletest.py73 temp_dir = tempfile.mkdtemp(prefix=os.environ['TEST_TMPDIR'])
76 temp_dir = os.path.join(tempfile.gettempdir(),
78 temp_dir = tempfile.mkdtemp(prefix=temp_dir.rstrip('.py'))
81 temp_dir = temp_dir.replace('/', os.sep)
83 def delete_temp_dir(dirname=temp_dir):
91 _googletest_temp_dir = temp_dir
/external/google-breakpad/src/client/linux/minidump_writer/
Dminidump_writer_unittest.cc84 AutoTempDir temp_dir; in TEST() local
85 string templ = temp_dir.path() + kMDWriterUnitTestFileName; in TEST()
113 AutoTempDir temp_dir; in TEST() local
114 string templ = temp_dir.path() + kMDWriterUnitTestFileName; in TEST()
180 AutoTempDir temp_dir; in TEST() local
181 string templ = temp_dir.path() + kMDWriterUnitTestFileName; in TEST()
264 AutoTempDir temp_dir; in TEST() local
265 string tempfile = temp_dir.path() + "/minidump-writer-unittest-temp"; in TEST()
300 string dumpfile = temp_dir.path() + kMDWriterUnitTestFileName; in TEST()
349 AutoTempDir temp_dir; in TEST() local
[all …]
/external/fonttools/Tests/varLib/
Dinterpolate_layout_test.py53 self.temp_dir()
58 def temp_dir(self): member in InterpolateLayoutTest
91 def compile_font(self, path, suffix, temp_dir, features=None): argument
93 savepath = os.path.join(temp_dir, ttx_filename.replace('.ttx', suffix))
116 self.temp_dir()
140 self.temp_dir()
180 self.temp_dir()
209 self.temp_dir()
243 self.temp_dir()
278 self.temp_dir()
[all …]
Dinterpolatable_test.py54 self.temp_dir()
59 def temp_dir(self): member in InterpolatableTest
63 def compile_font(self, path, suffix, temp_dir): argument
65 savepath = os.path.join(temp_dir, ttx_filename.replace('.ttx', suffix))
79 self.temp_dir()
92 self.temp_dir()
/external/google-breakpad/src/common/linux/
Dmemory_mapped_file_unittest.cc85 AutoTempDir temp_dir; in TEST_F() local
86 string test_file = temp_dir.path() + "/empty_file"; in TEST_F()
107 AutoTempDir temp_dir; in TEST_F() local
108 string test_file = temp_dir.path() + "/test_file"; in TEST_F()
141 AutoTempDir temp_dir; in TEST_F() local
142 string test_file1 = temp_dir.path() + "/test_file1"; in TEST_F()
143 string test_file2 = temp_dir.path() + "/test_file2"; in TEST_F()
186 AutoTempDir temp_dir; in TEST_F() local
187 string test_file1 = temp_dir.path() + "/test_file1"; in TEST_F()
/external/perfetto/src/base/
Dtemp_file.cc78 TempDir temp_dir; in Create() local
79 temp_dir.path_.assign(kSysTmpPath); in Create()
80 temp_dir.path_.append("/perfetto-XXXXXXXX"); in Create()
81 PERFETTO_CHECK(mkdtemp(&temp_dir.path_[0])); in Create()
82 return temp_dir; in Create()
/external/ltp/testcases/kernel/syscalls/fchdir/
Dfchdir01.c73 char *temp_dir; variable
92 if ((temp_dir = (getcwd(temp_dir, 0))) == NULL) in main()
132 free(temp_dir); in main()
133 temp_dir = NULL; in main()
/external/libchrome/mojo/core/
Dplatform_handle_dispatcher_unittest.cc24 base::ScopedTempDir temp_dir; in TEST() local
25 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
31 CreateAndOpenTemporaryFileInDir(temp_dir.GetPath(), &unused)); in TEST()
66 base::ScopedTempDir temp_dir; in TEST() local
67 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
73 CreateAndOpenTemporaryFileInDir(temp_dir.GetPath(), &unused)); in TEST()
/external/toolchain-utils/crosperf/
Dresults_cache.py45 self.temp_dir = None
96 self.temp_dir, f_base)
160 if not self.temp_dir:
161 self.temp_dir = tempfile.mkdtemp(dir=results_in_chroot)
162 command = 'cp -r {0}/* {1}'.format(self.results_dir, self.temp_dir)
166 (os.path.join('/tmp', os.path.basename(self.temp_dir))))
171 self.temp_dir)
367 self.temp_dir = tempfile.mkdtemp(dir=os.path.join(self.chromeos_root,
371 (self.temp_dir, os.path.join(cache_dir, AUTOTEST_TARBALL)))
375 self.results_dir = self.temp_dir
[all …]
/external/libchrome/mojo/public/tools/bindings/pylib/mojom_tests/
Dfileutil_unittest.py34 temp_dir = tempfile.mkdtemp()
36 self.assertTrue(os.path.exists(temp_dir))
39 full = os.path.join(temp_dir, "foo", "bar")
55 shutil.rmtree(temp_dir)
/external/tensorflow/tensorflow/contrib/tensorboard/plugins/projector/
Dprojector_api_test.py44 temp_dir = self.get_temp_dir()
45 self.addCleanup(shutil.rmtree, temp_dir)
46 writer = writer_lib.FileWriter(temp_dir)
50 with gfile.GFile(os.path.join(temp_dir, 'projector_config.pbtxt')) as f:

123456