File tree 2 files changed +7
-7
lines changed
shell/platform/darwin/macos/framework/Source 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 10
10
#import " flutter/shell/platform/darwin/macos/framework/Source/FlutterViewProvider.h"
11
11
#import " flutter/testing/testing.h"
12
12
13
- @interface FlutterViewMockProviderMetal : NSObject <FlutterViewProvider> {
13
+ @interface FlutterViewMockProvider : NSObject <FlutterViewProvider> {
14
14
FlutterView* _defaultView;
15
15
}
16
16
/* *
17
- * Create a FlutterViewMockProviderMetal with the provided view as the default view.
17
+ * Create a FlutterViewMockProvider with the provided view as the default view.
18
18
*/
19
19
- (nonnull instancetype )initWithDefaultView : (nonnull FlutterView*)view ;
20
20
@end
21
21
22
- @implementation FlutterViewMockProviderMetal
22
+ @implementation FlutterViewMockProvider
23
23
24
24
- (nonnull instancetype )initWithDefaultView : (nonnull FlutterView*)view {
25
25
self = [super init ];
@@ -58,7 +58,7 @@ - (nullable FlutterView*)getView:(uint64_t)viewId {
58
58
})
59
59
.andReturn (backingStoreMock);
60
60
61
- return [[FlutterViewMockProviderMetal alloc ] initWithDefaultView: viewMock];
61
+ return [[FlutterViewMockProvider alloc ] initWithDefaultView: viewMock];
62
62
}
63
63
} // namespace
64
64
Original file line number Diff line number Diff line change 9
9
#include " flutter/testing/testing.h"
10
10
#include " gtest/gtest.h"
11
11
12
- @interface TestMetalView : NSView
12
+ @interface TestView : NSView
13
13
14
14
- (nonnull instancetype )init ;
15
15
16
16
@end
17
17
18
- @implementation TestMetalView
18
+ @implementation TestView
19
19
20
20
- (instancetype )init {
21
21
self = [super initWithFrame: NSZeroRect ];
@@ -32,7 +32,7 @@ - (instancetype)init {
32
32
static FlutterSurfaceManager* CreateSurfaceManager () {
33
33
id <MTLDevice > device = MTLCreateSystemDefaultDevice ();
34
34
id <MTLCommandQueue > commandQueue = [device newCommandQueue ];
35
- TestMetalView * metalView = [[TestMetalView alloc ] init ];
35
+ TestView * metalView = [[TestView alloc ] init ];
36
36
CALayer * layer = reinterpret_cast <CALayer *>(metalView.layer );
37
37
return [[FlutterSurfaceManager alloc ] initWithDevice: device
38
38
commandQueue: commandQueue
You can’t perform that action at this time.
0 commit comments