/* -*- Mode: JavaScript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

(function () {
   Components.utils.import("resource:///modules/mailServices.js");
   var testFolderTreeMode = {
     __proto__: IFolderTreeMode,
     generateMap: function testFolderTreeMode_generateMap(aFTV) {
       // Pick the tinderbox@foo.invalid inbox and use it as the only folder
       let server = MailServices.accounts.FindServer("tinderbox", "tinderbox123", "pop3");
       let item = new ftvItem(server.rootFolder.getChildNamed("Inbox"));
       item.__defineGetter__("children", () => []);
       return [item];
     },
   };
   gFolderTreeView.registerFolderTreeMode("testmode", testFolderTreeMode,
                                          "Test Mode");
})();
