Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(913)

Unified Diff: ui/file_manager/file_manager/common/js/test_importer_common.js

Issue 945933003: Add support for log file rotation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge w/ master. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/file_manager/common/js/test_importer_common.js
diff --git a/ui/file_manager/file_manager/common/js/test_importer_common.js b/ui/file_manager/file_manager/common/js/test_importer_common.js
index a4618672ef389e6f4813569a3b3e011caff5a979..3db007e6eed0b8abc48453bf068c0a5be599033b 100644
--- a/ui/file_manager/file_manager/common/js/test_importer_common.js
+++ b/ui/file_manager/file_manager/common/js/test_importer_common.js
@@ -21,7 +21,10 @@ importer.setupTestLogger = function() {
* @struct
* @final
*/
-importer.TestLogger = function() {};
+importer.TestLogger = function() {
+ /** @public {!TestCallRecorder} */
+ this.errorRecorder = new TestCallRecorder();
+};
/** @override */
importer.TestLogger.prototype.info = function(content) {
@@ -30,6 +33,7 @@ importer.TestLogger.prototype.info = function(content) {
/** @override */
importer.TestLogger.prototype.error = function(content) {
+ this.errorRecorder.callback(content);
console.error(content);
console.error(new Error('Error stack').stack);
};
« no previous file with comments | « ui/file_manager/file_manager/common/js/mock_entry.js ('k') | ui/file_manager/file_manager/foreground/js/import_controller.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698