forked from fluttercommunity/flutter_uploader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflutter_uploader_test.mocks.dart
80 lines (71 loc) · 3.45 KB
/
flutter_uploader_test.mocks.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
// Mocks generated by Mockito 5.0.17 from annotations
// in flutter_uploader/test/flutter_uploader_test.dart.
// Do not manually edit this file.
import 'dart:async' as i5;
import 'package:flutter/src/services/binary_messenger.dart' as i3;
import 'package:flutter/src/services/message_codec.dart' as i2;
import 'package:flutter/src/services/platform_channel.dart' as i4;
import 'package:mockito/mockito.dart' as i1;
// ignore_for_file: avoid_redundant_argument_values
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: comment_references
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
class _FakeMethodCodec_0 extends i1.Fake implements i2.MethodCodec {}
class _FakeBinaryMessenger_1 extends i1.Fake implements i3.BinaryMessenger {}
/// A class which mocks [EventChannel].
///
/// See the documentation for Mockito's code generation for more information.
class MockEventChannel extends i1.Mock implements i4.EventChannel {
MockEventChannel() {
i1.throwOnMissingStub(this);
}
@override
String get name => (super.noSuchMethod(Invocation.getter(#name), returnValue: '') as String);
@override
i2.MethodCodec get codec =>
(super.noSuchMethod(Invocation.getter(#codec), returnValue: _FakeMethodCodec_0()) as i2.MethodCodec);
@override
i3.BinaryMessenger get binaryMessenger =>
(super.noSuchMethod(Invocation.getter(#binaryMessenger), returnValue: _FakeBinaryMessenger_1())
as i3.BinaryMessenger);
@override
i5.Stream<dynamic> receiveBroadcastStream([dynamic arguments]) =>
(super.noSuchMethod(Invocation.method(#receiveBroadcastStream, [arguments]), returnValue: Stream<dynamic>.empty())
as i5.Stream<dynamic>);
}
/// A class which mocks [MethodChannel].
///
/// See the documentation for Mockito's code generation for more information.
class MockMethodChannel extends i1.Mock implements i4.MethodChannel {
MockMethodChannel() {
i1.throwOnMissingStub(this);
}
@override
String get name => (super.noSuchMethod(Invocation.getter(#name), returnValue: '') as String);
@override
i2.MethodCodec get codec =>
(super.noSuchMethod(Invocation.getter(#codec), returnValue: _FakeMethodCodec_0()) as i2.MethodCodec);
@override
i3.BinaryMessenger get binaryMessenger =>
(super.noSuchMethod(Invocation.getter(#binaryMessenger), returnValue: _FakeBinaryMessenger_1())
as i3.BinaryMessenger);
@override
i5.Future<T?> invokeMethod<T>(String? method, [dynamic arguments]) =>
(super.noSuchMethod(Invocation.method(#invokeMethod, [method, arguments]), returnValue: Future<T?>.value())
as i5.Future<T?>);
@override
i5.Future<List<T>?> invokeListMethod<T>(String? method, [dynamic arguments]) =>
(super.noSuchMethod(Invocation.method(#invokeListMethod, [method, arguments]),
returnValue: Future<List<T>?>.value()) as i5.Future<List<T>?>);
@override
i5.Future<Map<K, V>?> invokeMapMethod<K, V>(String? method, [dynamic arguments]) =>
(super.noSuchMethod(Invocation.method(#invokeMapMethod, [method, arguments]),
returnValue: Future<Map<K, V>?>.value()) as i5.Future<Map<K, V>?>);
@override
void setMethodCallHandler(i5.Future<dynamic> Function(i2.MethodCall)? handler) =>
super.noSuchMethod(Invocation.method(#setMethodCallHandler, [handler]), returnValueForMissingStub: null);
}