2023-06-16 09:37:02 +00:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
|
|
|
|
|
|
#ifndef FakeRCTBlobManager_h
|
|
|
|
|
#define FakeRCTBlobManager_h
|
|
|
|
|
|
|
|
|
|
#import <React/RCTBlobManager.h>
|
|
|
|
|
|
|
|
|
|
@interface FakeRCTBlobManager : RCTBlobManager
|
|
|
|
|
|
2024-08-14 23:51:22 +00:00
|
|
|
@property(nonatomic, strong) NSMutableDictionary* blobs;
|
2023-06-16 09:37:02 +00:00
|
|
|
|
2024-08-14 23:51:22 +00:00
|
|
|
- (NSString*)store:(NSData*)data;
|
2023-06-16 09:37:02 +00:00
|
|
|
|
2024-08-14 23:51:22 +00:00
|
|
|
- (NSData*)resolve:(NSString*)blobId offset:(long)offset size:(long)size;
|
2023-06-16 09:37:02 +00:00
|
|
|
|
2024-08-14 23:51:22 +00:00
|
|
|
- (NSDictionary*)testCreateData:(NSData*)buffer;
|
2023-06-16 09:37:02 +00:00
|
|
|
|
2024-08-14 23:51:22 +00:00
|
|
|
- (NSString*)testGetData:(NSDictionary*)data;
|
2023-06-16 09:37:02 +00:00
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
#endif /* FakeRCTBlobManager_h */
|