From 3f66c5c26a61de01c26488bbe0e9853e90bef948 Mon Sep 17 00:00:00 2001 From: Atul Varma Date: Mon, 23 Jun 2008 14:13:46 -0700 Subject: [PATCH] Moved the FakeGUIDService from test_passwords.js to head.js. --- services/sync/tests/unit/head_first.js | 8 ++++++++ services/sync/tests/unit/test_passwords.js | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/services/sync/tests/unit/head_first.js b/services/sync/tests/unit/head_first.js index 7864ba09d6e..ba4895471d4 100644 --- a/services/sync/tests/unit/head_first.js +++ b/services/sync/tests/unit/head_first.js @@ -260,3 +260,11 @@ function FakeFilesystemService(contents) { return [fakeStream]; }; }; + +function FakeGUIDService() { + let latestGUID = 0; + + Utils.makeGUID = function fake_makeGUID() { + return "fake-guid-" + latestGUID++; + }; +} diff --git a/services/sync/tests/unit/test_passwords.js b/services/sync/tests/unit/test_passwords.js index be9e9b4f21e..9deddd6b30d 100644 --- a/services/sync/tests/unit/test_passwords.js +++ b/services/sync/tests/unit/test_passwords.js @@ -116,14 +116,6 @@ var ffs = new FakeFilesystemService({}); var fgs = new FakeGUIDService(); var fakeLoginManager = new FakeLoginManager(__fakeLogins); -function FakeGUIDService() { - let latestGUID = 0; - - Utils.makeGUID = function fake_makeGUID() { - return "fake-guid-" + latestGUID++; - }; -} - function FakeLoginManager(fakeLogins) { this.fakeLogins = fakeLogins;