Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / test / data / file_manager / unit_tests / mocks / mock_background.js
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.
4
5 /**
6  * Mock class for Background.
7  * @constructor
8  */
9 function MockBackground() {
10   this.fileOperationManager = new MockFileOperationManager();
11   this.progressCenter = new MockProgressCenter();
12   this.closeRequestCount = 0;
13 }
14
15 /**
16  * Increments the close request counter.
17  */
18 MockBackground.prototype.tryClose = function() {
19   this.closeRequestCount++;
20 };