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.
6 * Mock class for Background.
9 function MockBackground() {
10 this.fileOperationManager = new MockFileOperationManager();
11 this.progressCenter = new MockProgressCenter();
12 this.closeRequestCount = 0;
16 * Increments the close request counter.
18 MockBackground.prototype.tryClose = function() {
19 this.closeRequestCount++;