run_storage_server.js 696 B

1234567891011121314151617181920212223242526
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this file,
  3. * You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. /**
  5. * This file runs a Storage Service server.
  6. *
  7. * It is meant to be executed with an xpcshell.
  8. *
  9. * The Makefile in this directory contains a target to run it:
  10. *
  11. * $ make storage-server
  12. */
  13. Cu.import("resource://testing-common/services/common/storageserver.js");
  14. initTestLogging();
  15. var server = new StorageServer();
  16. server.allowAllUsers = true;
  17. server.startSynchronous(SERVER_PORT);
  18. _("Storage server started on port " + SERVER_PORT);
  19. // Launch the thread manager.
  20. _do_main();