/external/libbrillo/policy/tests/ |
H A D | resilient_policy_util_unittest.cc | 31 base::ScopedTempDir temp_dir; local 32 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 34 base::FilePath file0(temp_dir.path().Append("policy")); 35 base::FilePath file1(temp_dir.path().Append("policy.12")); 36 base::FilePath file2(temp_dir.path().Append("policy.2")); 37 base::FilePath file3(temp_dir.path().Append("policy.30")); 38 base::FilePath invalid(temp_dir.path().Append("policy_4")); 46 temp_dir.path().Append(kDefaultResilientPolicyFilePath));
|
H A D | policy_util_unittest.cc | 20 base::ScopedTempDir temp_dir; local 21 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 23 base::FilePath invalid_policy_data_path(temp_dir.path().Append("policy")); 24 base::FilePath inexistent_file(temp_dir.path().Append("policy.1")); 25 base::FilePath good_policy_data_path(temp_dir.path().Append("policy.2"));
|
/external/autotest/client/common_lib/ |
H A D | autotemp_unittest.py | 35 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/ltp/testcases/kernel/syscalls/fchdir/ |
H A D | fchdir01.c | 73 char *temp_dir; variable 92 if ((temp_dir = (getcwd(temp_dir, 0))) == NULL) 132 free(temp_dir); 133 temp_dir = NULL;
|
/external/perfetto/src/base/ |
H A D | temp_file.cc | 72 TempDir temp_dir; local 73 temp_dir.path_.assign(kSysTmpPath); 74 temp_dir.path_.append("/perfetto-XXXXXXXX"); 75 PERFETTO_CHECK(mkdtemp(&temp_dir.path_[0])); 76 return temp_dir;
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
H A D | shell_util.py | 26 temp_dir = _tempfile.mkdtemp() 28 with ScopedChangeDir(temp_dir): 31 _shutil.rmtree(temp_dir)
|
/external/libchrome/base/files/ |
H A D | file_unittest.cc | 22 base::ScopedTempDir temp_dir; local 23 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 24 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file_1"); 96 file_path = temp_dir.GetPath().AppendASCII("create_file_2"); 109 base::ScopedTempDir temp_dir; local 110 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 111 FilePath file_path = temp_dir.GetPath().AppendASCII("create_file"); 127 base::ScopedTempDir temp_dir; local 128 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 129 FilePath file_path = temp_dir 154 base::ScopedTempDir temp_dir; local 226 base::ScopedTempDir temp_dir; local 274 base::ScopedTempDir temp_dir; local 326 base::ScopedTempDir temp_dir; local 389 base::ScopedTempDir temp_dir; local 414 base::ScopedTempDir temp_dir; local 438 base::ScopedTempDir temp_dir; local 455 base::ScopedTempDir temp_dir; local 482 base::ScopedTempDir temp_dir; local 499 base::ScopedTempDir temp_dir; local 523 base::ScopedTempDir temp_dir; local 537 base::ScopedTempDir temp_dir; local 553 base::ScopedTempDir temp_dir; local 570 base::ScopedTempDir temp_dir; local 592 base::ScopedTempDir temp_dir; local 618 base::ScopedTempDir temp_dir; local 633 base::ScopedTempDir temp_dir; local 653 base::ScopedTempDir temp_dir; local [all...] |
H A D | dir_reader_posix_unittest.cc | 30 base::ScopedTempDir temp_dir; 31 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 32 const char* dir = temp_dir.GetPath().value().c_str();
|
/external/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/ |
H A D | fileutil_unittest.py | 34 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/ |
H A D | projector_api_test.py | 44 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:
|
/external/google-breakpad/src/client/linux/handler/ |
H A D | exception_handler_unittest.cc | 165 AutoTempDir temp_dir; local 167 MinidumpDescriptor(temp_dir.path()), NULL, NULL, NULL, true, -1); 168 EXPECT_EQ(temp_dir.path(), handler.minidump_descriptor().directory()); 169 string temp_subdir = temp_dir.path() + "/subdir"; 175 AutoTempDir temp_dir; local 177 const int fd = CreateTMPFile(temp_dir.path(), &path); 215 AutoTempDir temp_dir; local 220 minidump_fd = CreateTMPFile(temp_dir.path(), &minidump_path); 235 handler.reset(new ExceptionHandler(MinidumpDescriptor(temp_dir.path()), 320 AutoTempDir temp_dir; local 332 AutoTempDir temp_dir; local 344 AutoTempDir temp_dir; local 356 AutoTempDir temp_dir; local 368 AutoTempDir temp_dir; local 385 AutoTempDir temp_dir; local 414 AutoTempDir temp_dir; local 430 AutoTempDir temp_dir; local 446 AutoTempDir temp_dir; local 462 AutoTempDir temp_dir; local 492 AutoTempDir temp_dir; local 584 AutoTempDir temp_dir; local 672 AutoTempDir temp_dir; local 765 AutoTempDir temp_dir; local 844 AutoTempDir temp_dir; local 986 AutoTempDir temp_dir; local 1005 AutoTempDir temp_dir; local 1024 AutoTempDir temp_dir; local 1041 AutoTempDir temp_dir; local 1085 AutoTempDir temp_dir; local 1124 AutoTempDir temp_dir; local 1172 AutoTempDir temp_dir; local [all...] |
/external/python/cpython2/Lib/test/ |
H A D | test_cmd_line_script.py | 9 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() a [all...] |
/external/python/cpython3/Lib/test/ |
H A D | test_multiprocessing_main_handling.py | 161 with support.temp_dir() as script_dir: 166 with support.temp_dir() as script_dir: 177 with support.temp_dir() as script_dir: 187 with support.temp_dir() as script_dir: 196 with support.temp_dir() as script_dir: 203 with support.temp_dir() as script_dir: 213 with support.temp_dir() as script_dir: 221 with support.temp_dir() as script_dir: 229 with support.temp_dir() as script_dir: 238 with support.temp_dir() a [all...] |
H A D | test_cgitb.py | 1 from test.support import temp_dir namespace 40 with temp_dir() as tracedir: 54 with temp_dir() as tracedir:
|
H A D | test_cmd_line_script.py | 225 with support.temp_dir() as script_dir: 232 with support.temp_dir() as script_dir: 242 with support.temp_dir() as script_dir: 249 with support.temp_dir() as script_dir: 259 with support.temp_dir() as script_dir: 264 with support.temp_dir() as script_dir: 271 with support.temp_dir() as script_dir: 279 with support.temp_dir() as script_dir: 286 with support.temp_dir() as script_dir: 296 with support.temp_dir() a [all...] |
/external/autotest/server/site_tests/brillo_ADBDirectoryTransfer/ |
H A D | brillo_ADBDirectoryTransfer.py | 32 self.temp_dir = tempfile.mkdtemp() 33 self.test_dir = os.path.join(self.temp_dir, 'test_dir') 52 return_dir = os.path.join(self.temp_dir, 'return_dir') 67 shutil.rmtree(self.temp_dir)
|
/external/google-breakpad/src/common/tests/ |
H A D | auto_tempdir.h | 55 char temp_dir[] = TEMPDIR "/breakpad.XXXXXX"; local 56 EXPECT_TRUE(mkdtemp(temp_dir) != NULL); 57 path_.assign(temp_dir);
|
/external/autotest/utils/ |
H A D | packager.py | 163 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): 229 temp_dir, exclude_string_tar) 239 temp_dir = tempfile.mkdtemp() 241 packages.check_diskspace(temp_dir) 244 % (temp_dir, [all...] |
/external/libmojo/mojo/edk/system/ |
H A D | platform_handle_dispatcher_unittest.cc | 24 base::ScopedTempDir temp_dir; local 25 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 31 CreateAndOpenTemporaryFileInDir(temp_dir.GetPath(), &unused)); 66 base::ScopedTempDir temp_dir; local 67 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 73 CreateAndOpenTemporaryFileInDir(temp_dir.GetPath(), &unused));
|
/external/google-breakpad/src/common/linux/ |
H A D | memory_mapped_file_unittest.cc | 85 AutoTempDir temp_dir; local 86 string test_file = temp_dir.path() + "/empty_file"; 107 AutoTempDir temp_dir; local 108 string test_file = temp_dir.path() + "/test_file"; 141 AutoTempDir temp_dir; local 142 string test_file1 = temp_dir.path() + "/test_file1"; 143 string test_file2 = temp_dir.path() + "/test_file2"; 186 AutoTempDir temp_dir; local 187 string test_file1 = temp_dir.path() + "/test_file1";
|
/external/autotest/server/site_tests/brillo_DecodingAudioTest/ |
H A D | brillo_DecodingAudioTest.py | 42 self.temp_dir = tempfile.mkdtemp(dir=fb_client.tmp_dir) 54 _DEFAULT_SINE_FREQUENCY, self.temp_dir, file_format)
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
H A D | minidump_writer_unittest.cc | 84 AutoTempDir temp_dir; local 85 string templ = temp_dir.path() + kMDWriterUnitTestFileName; 113 AutoTempDir temp_dir; local 114 string templ = temp_dir.path() + kMDWriterUnitTestFileName; 180 AutoTempDir temp_dir; local 181 string templ = temp_dir.path() + kMDWriterUnitTestFileName; 264 AutoTempDir temp_dir; local 265 string tempfile = temp_dir.path() + "/minidump-writer-unittest-temp"; 300 string dumpfile = temp_dir.path() + kMDWriterUnitTestFileName; 349 AutoTempDir temp_dir; local 470 AutoTempDir temp_dir; local 548 AutoTempDir temp_dir; local 642 AutoTempDir temp_dir; local [all...] |
/external/toolchain-utils/fdo_scripts/ |
H A D | divide_and_merge_profiles.py | 72 temp_dir = tempfile.mkdtemp() 73 temp_dirs.append(temp_dir) 74 self._CopyFilesTree(i, current_files, temp_dir) 82 for temp_dir in temp_dirs: 83 command = 'rm -rf %s' % temp_dir
|
/external/vboot_reference/cgpt/ |
H A D | cgpt_wrapper.c | 75 char temp_dir[] = "/tmp/cgpt_wrapper.XXXXXX"; local 76 if (ReadNorFlash(temp_dir) != 0) { 80 if (snprintf(rw_gpt_path, sizeof(rw_gpt_path), "%s/rw_gpt", temp_dir) < 0) { 131 ret = WriteNorFlash(temp_dir); 140 RemoveDir(temp_dir);
|
/external/autotest/client/site_tests/firmware_TouchMTB/ |
H A D | cros_gs.py | 32 temp_dir = tempfile.mkdtemp() 33 gsutil_temp_file = os.path.join(temp_dir, GSUTIL_TAR_NAME) 44 shutil.rmtree(temp_dir)
|