7 #import "flutter/testing/testing.h"
8 #include "third_party/googletest/googletest/include/gtest/gtest.h"
11 @property(nonatomic, copy, nullable) NSArray<NSURL*>*
receivedURLs;
18 @property(nonatomic, copy, nullable) NSArray<NSURL*>*
receivedURLs;
23 - (BOOL)handleOpenURLs:(NSArray<NSURL*>*)urls {
32 TEST(FlutterAppDelegateTest, DoesNotCallDelegatesWithoutHandler) {
38 [appDelegate application:NSApplication.sharedApplication openURLs:@[]];
43 TEST(FlutterAppDelegateTest, ReceivesOpenURLs) {
49 NSURL* URL = [NSURL URLWithString:@"https://flutter.cn"];
51 NSArray<NSURL*>* URLs = @[ URL ];
52 [appDelegate application:NSApplication.sharedApplication openURLs:URLs];
57 TEST(FlutterAppDelegateTest, OperURLsStopsAfterHandled) {
66 NSURL* URL = [NSURL URLWithString:@"https://flutter.cn"];
68 NSArray<NSURL*>* URLs = @[ URL ];
69 [appDelegate application:NSApplication.sharedApplication openURLs:URLs];