open_url_context.h 911 B

123456789101112131415161718192021222324252627
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef IOS_TESTING_OPEN_URL_CONTEXT_H_
  5. #define IOS_TESTING_OPEN_URL_CONTEXT_H_
  6. #import <UIKit/UIKit.h>
  7. /*UISceneOpenURLOptions and UIOpenURLContext can't be instantiated directly*/
  8. // This class mirrors fields of UIOpenURLContext which can't be instantiated
  9. // directly.
  10. @interface TestOpenURLContext : NSObject
  11. @property(nonatomic, copy) NSURL* URL;
  12. @property(nonatomic, strong) UISceneOpenURLOptions* options;
  13. @end
  14. // This class mirrors fields of UISceneOpenURLOptions which can't be
  15. // instantiated directly.
  16. @interface TestSceneOpenURLOptions : NSObject
  17. @property(nonatomic) NSString* sourceApplication;
  18. @property(nonatomic, strong) id annotation;
  19. @property(nonatomic) BOOL openInPlace;
  20. @end
  21. #endif // IOS_TESTING_OPEN_URL_CONTEXT_H_