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.
8 * Mock class of FileOperationManager.
11 function MockFileOperationManager() {
12 cr.EventTarget.call(this);
15 * Event to be dispatched when requestTaskCancel is called.
18 this.cancelEvent = null;
21 MockFileOperationManager.prototype = {
22 __proto__: cr.EventTarget.prototype
26 * Dispatches a pre-specified cancel event.
28 MockFileOperationManager.prototype.requestTaskCancel = function() {
29 this.dispatchEvent(this.cancelEvent);