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 file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /** michael@0: * This file runs a Storage Service server. michael@0: * michael@0: * It is meant to be executed with an xpcshell. michael@0: * michael@0: * The Makefile in this directory contains a target to run it: michael@0: * michael@0: * $ make storage-server michael@0: */ michael@0: michael@0: Cu.import("resource://testing-common/services-common/storageserver.js"); michael@0: michael@0: initTestLogging(); michael@0: michael@0: let server = new StorageServer(); michael@0: server.allowAllUsers = true; michael@0: server.startSynchronous(SERVER_PORT); michael@0: _("Storage server started on port " + SERVER_PORT); michael@0: michael@0: // Launch the thread manager. michael@0: _do_main();