1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 * Mock of Progress Center.
10 function MockProgressCenter() {
12 * Items stored in the progress center.
13 * @type {Object.<string, ProgressCenterItem>}
21 * Stores an item to the progress center.
22 * @param {ProgressCenterItem} item Progress center item to be stored.
24 MockProgressCenter.prototype.updateItem = function(item) {
25 this.items[item.id] = item;
29 * Obtains an item stored in the progress center.
30 * @param {string} id ID spcifying the progress item.
32 MockProgressCenter.prototype.getItemById = function(id) {
33 return this.items[id];