/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/'use strict';import{INotificationService,INotificationHandle,NoOpNotification,Severity,INotification,IPromptChoice}from'vs/platform/notification/common/notification';exportclassTestNotificationServiceimplementsINotificationService{public_serviceBrand:any;privatestaticreadonlyNO_OP:INotificationHandle=newNoOpNotification();publicinfo(message:string):INotificationHandle{returnthis.notify({severity:Severity.Info,message});}publicwarn(message:string):INotificationHandle{returnthis.notify({severity:Severity.Warning,message});}publicerror(error:string|Error):INotificationHandle{returnthis.notify({severity:Severity.Error,message:error});}publicnotify(notification:INotification):INotificationHandle{returnTestNotificationService.NO_OP;}publicprompt(severity:Severity,message:string,choices:IPromptChoice[],onCancel?:()=>void):INotificationHandle{returnTestNotificationService.NO_OP;}}