michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: const Cc = Components.classes; michael@0: const Ci = Components.interfaces; michael@0: michael@0: var gProfD = do_get_profile(); michael@0: var gDirSvc = Cc["@mozilla.org/file/directory_service;1"]. michael@0: getService(Ci.nsIProperties); michael@0: var gPrefSvc = Cc["@mozilla.org/preferences-service;1"]. michael@0: getService(Ci.nsIPrefBranch); michael@0: michael@0: function writeTestFile(aParent, aName) { michael@0: let file = aParent.clone(); michael@0: file.append(aName); michael@0: file.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, 0644); michael@0: return file; michael@0: } michael@0: