Home
last modified time | relevance | path

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

12

/external/chromium/chrome/browser/
Dshell_integration_unittest.cc84 ScopedTempDir temp_dir; in TEST() local
85 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
88 env.Set("XDG_DATA_HOME", temp_dir.path().value()); in TEST()
90 temp_dir.path().AppendASCII(kTemplateFilename), in TEST()
99 ScopedTempDir temp_dir; in TEST() local
100 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
103 env.Set("XDG_DATA_DIRS", temp_dir.path().value()); in TEST()
105 temp_dir.path().AppendASCII("applications"))); in TEST()
107 temp_dir.path().AppendASCII("applications") in TEST()
117 ScopedTempDir temp_dir; in TEST() local
[all …]
Dshell_integration_linux.cc76 ScopedTempDir temp_dir; in CreateShortcutIcon() local
77 if (!temp_dir.CreateUniqueTempDir()) in CreateShortcutIcon()
80 FilePath temp_file_path = temp_dir.path().Append( in CreateShortcutIcon()
154 ScopedTempDir temp_dir; in CreateShortcutInApplicationsMenu() local
155 if (!temp_dir.CreateUniqueTempDir()) in CreateShortcutInApplicationsMenu()
158 FilePath temp_file_path = temp_dir.path().Append(shortcut_filename); in CreateShortcutInApplicationsMenu()
/external/chromium/chrome/browser/sync/util/
Duser_settings_unittest.cc168 ScopedTempDir temp_dir; in TEST_F() local
169 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
170 SetUpVersion10Databases(temp_dir.path()); in TEST_F()
198 FilePath new_style_path = temp_dir.path().Append( in TEST_F()
207 ScopedTempDir temp_dir; in TEST_F() local
208 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
209 SetUpVersion11Database(temp_dir.path()); in TEST_F()
249 ScopedTempDir temp_dir; in TEST_F() local
250 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
252 settings.Init(temp_dir.path().AppendASCII("UserSettings.sqlite3")); in TEST_F()
[all …]
/external/chromium/base/
Dplatform_file_unittest.cc62 ScopedTempDir temp_dir; in TEST() local
63 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
64 FilePath file_path = temp_dir.path().AppendASCII("create_file_1"); in TEST()
115 file_path = temp_dir.path().AppendASCII("create_file_2"); in TEST()
131 ScopedTempDir temp_dir; in TEST() local
132 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
133 FilePath file_path = temp_dir.path().AppendASCII("read_write_file"); in TEST()
203 ScopedTempDir temp_dir; in TEST() local
204 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
205 FilePath file_path = temp_dir.path().AppendASCII("truncate_file"); in TEST()
[all …]
Dshared_memory_posix.cc290 FilePath temp_dir; in FilePathForMemoryName() local
291 if (!file_util::GetShmemTempDir(&temp_dir)) in FilePathForMemoryName()
294 *path = temp_dir.AppendASCII("com.google.chrome.shmem." + mem_name); in FilePathForMemoryName()
/external/webkit/Tools/Scripts/webkitpy/style/
Dfilereader_unittest.py63 temp_dir = tempfile.mkdtemp()
67 self._temp_dir = temp_dir
101 temp_dir = os.path.join(self._temp_dir, 'test_dir')
102 os.mkdir(temp_dir)
104 self._file_reader.process_file(temp_dir)
117 "Skipping: '%s'\n " % temp_dir))
/external/qemu/android/utils/
Dtempfile.c61 char temp_dir[MAX_PATH]; in tempfile_create() local
62 char *p = temp_dir, *end = p + sizeof(temp_dir); in tempfile_create()
71 retval = GetTempFileName(temp_dir, "TMP", 0, temp_namebuff); in tempfile_create()
73 D( "can't create temporary file in '%s'", temp_dir ); in tempfile_create()
/external/chromium/chrome/browser/extensions/
Dconvert_user_script.cc55 ScopedTempDir temp_dir; in ConvertUserScriptToExtension() local
56 if (!temp_dir.CreateUniqueTempDirUnderPath(user_data_temp_dir)) { in ConvertUserScriptToExtension()
134 FilePath manifest_path = temp_dir.path().Append( in ConvertUserScriptToExtension()
144 temp_dir.path().AppendASCII("script.js"))) { in ConvertUserScriptToExtension()
150 temp_dir.path(), in ConvertUserScriptToExtension()
160 temp_dir.Take(); // The caller takes ownership of the directory. in ConvertUserScriptToExtension()
Dconvert_web_app.cc94 ScopedTempDir temp_dir; in ConvertWebAppToExtension() local
95 if (!temp_dir.CreateUniqueTempDirUnderPath(user_data_temp_dir)) { in ConvertWebAppToExtension()
136 FilePath manifest_path = temp_dir.path().Append( in ConvertWebAppToExtension()
145 FilePath icons_dir = temp_dir.path().AppendASCII(kIconsDirName); in ConvertWebAppToExtension()
171 temp_dir.path(), in ConvertWebAppToExtension()
181 temp_dir.Take(); // The caller takes ownership of the directory. in ConvertWebAppToExtension()
Dextension_creator.cc257 ScopedTempDir temp_dir; in Run() local
258 if (!temp_dir.CreateUniqueTempDir()) in Run()
265 if (CreateZip(extension_dir, temp_dir.path(), &zip_path) && in Run()
Dsandboxed_extension_unpacker_unittest.cc28 void OnUnpackSuccess(const FilePath& temp_dir, in OnUnpackSuccess() argument
42 void(const FilePath& temp_dir,
Dtest_extension_prefs.h30 const FilePath& temp_dir() const { return temp_dir_.path(); } in temp_dir() function
Dsandboxed_extension_unpacker.h30 virtual void OnUnpackSuccess(const FilePath& temp_dir,
/external/chromium/chrome/common/
Dzip_unittest.cc124 ScopedTempDir temp_dir; in TEST_F() local
125 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
126 FilePath zip_file = temp_dir.path().AppendASCII("out.zip"); in TEST_F()
137 ScopedTempDir temp_dir; in TEST_F() local
138 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST_F()
139 FilePath zip_file = temp_dir.path().AppendASCII("out.zip"); in TEST_F()
/external/webkit/Tools/Scripts/webkitpy/common/system/
Dautoinstall.py70 target_dir=None, temp_dir=None): argument
100 self._temp_dir = temp_dir
193 temp_dir = self._temp_dir
194 if temp_dir is None or os.path.exists(temp_dir):
197 self._create_directory(temp_dir, "autoinstall temp")
504 temp_dir = os.path.join(target_dir, "Temp") variable
507 temp_dir=temp_dir)
Dfileset.py52 with self._filesystem.mkdtemp() as temp_dir:
53 self._fileset.extract(self._filename, temp_dir)
55 src = self._filesystem.join(temp_dir, self._filename)
/external/webkit/Tools/Scripts/webkitpy/tool/bot/
Dqueueengine_unittest.py65 return os.path.join(self._test.temp_dir, "queue_log_path")
69 return os.path.join(self._test.temp_dir, "work_log_path", "%s.log" % work_item)
139 self.assertTrue(os.path.exists(os.path.join(self.temp_dir, "queue_log_path")))
140 … self.assertTrue(os.path.exists(os.path.join(self.temp_dir, "work_log_path", "work_item.log")))
202 self.temp_dir = tempfile.mkdtemp(suffix="work_queue_test_logs")
205 shutil.rmtree(self.temp_dir)
/external/chromium/chrome/browser/safe_browsing/
Dsafe_browsing_store_file_unittest.cc23 FilePath temp_dir; in SetUp() local
24 ASSERT_TRUE(file_util::CreateNewTempDirectory(kFolderPrefix, &temp_dir)); in SetUp()
26 file_deleter_.reset(new FileAutoDeleter(temp_dir)); in SetUp()
28 filename_ = temp_dir; in SetUp()
Dbloom_filter_unittest.cc93 ScopedTempDir temp_dir; in TEST() local
94 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()
95 FilePath filter_path = temp_dir.path().AppendASCII("SafeBrowsingTestFilter"); in TEST()
/external/gtest/test/
Dgtest_xml_output_unittest.py123 temp_dir = tempfile.mkdtemp()
124 output_file = os.path.join(temp_dir,
136 working_dir=temp_dir)
Dgtest-filepath_test.cc466 const char* temp_dir = getenv("TEMP"); in TempDir()
469 if (temp_dir == NULL || temp_dir[0] == '\0') in TempDir()
471 else if (String(temp_dir).EndsWith("\\")) in TempDir()
472 return String(temp_dir); in TempDir()
474 return String::Format("%s\\", temp_dir); in TempDir()
/external/webkit/Tools/Scripts/webkitpy/common/checkout/
Dapi_unittest.py104 self.temp_dir = tempfile.mkdtemp(suffix="changelogs")
106 os.chdir(self.temp_dir)
111 shutil.rmtree(self.temp_dir, ignore_errors=True)
/external/protobuf/gtest/test/
Dgtest-filepath_test.cc453 const char* temp_dir = posix::GetEnv("TEMP"); in TempDir()
454 if (temp_dir == NULL || temp_dir[0] == '\0') in TempDir()
456 else if (String(temp_dir).EndsWith("\\")) in TempDir()
457 return String(temp_dir); in TempDir()
459 return String::Format("%s\\", temp_dir); in TempDir()
/external/chromium/testing/gtest/test/
Dgtest-filepath_test.cc539 const char* temp_dir = posix::GetEnv("TEMP"); in TempDir()
540 if (temp_dir == NULL || temp_dir[0] == '\0') in TempDir()
542 else if (String(temp_dir).EndsWith("\\")) in TempDir()
543 return String(temp_dir); in TempDir()
545 return String::Format("%s\\", temp_dir); in TempDir()
/external/chromium/chrome/browser/tab_contents/
Dthumbnail_generator_unittest.cc329 ScopedTempDir temp_dir; in TEST() local
330 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); in TEST()

12