| Index: ui/file_manager/file_manager/background/js/test_duplicate_finder.js
|
| diff --git a/ui/file_manager/file_manager/background/js/test_duplicate_finder.js b/ui/file_manager/file_manager/background/js/test_duplicate_finder.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cd09f030f0cd71d1e85a6df2a55b107abbf872cd
|
| --- /dev/null
|
| +++ b/ui/file_manager/file_manager/background/js/test_duplicate_finder.js
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// Namespace
|
| +var importer = importer || {};
|
| +
|
| +/**
|
| + * A duplicate finder for testing. Allows the return value to be set.
|
| + * @constructor
|
| + * @implements {importer.DuplicateFinder}
|
| + * @struct
|
| + */
|
| +importer.TestDuplicateFinder = function() {
|
| + /** @type {boolean} */
|
| + this.returnValue = false;
|
| +};
|
| +
|
| +/** @override */
|
| +importer.TestDuplicateFinder.prototype.checkDuplicate = function(entry) {
|
| + return Promise.resolve(this.returnValue);
|
| +};
|
|
|