blob: ebcc02e3f1feb9b9c86ab501286e6e5b2d852061 [file] [log] [blame]
// Copyright 2016 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.
#import <Foundation/Foundation.h>
// Stubs NSUserNotificationCenter so it can be used in tests without actually
// displaying notifications.
// Unlike the real class this is not a singleton and the lifecycle needs to be
// handled by the caller.
// See for an example.
@interface StubNotificationCenter : NSUserNotificationCenter
- (instancetype)init;
- (void)setDelegate:(id<NSUserNotificationCenterDelegate>)delegate;