stack_wallet/test/price_test.mocks.dart

107 lines
2.8 KiB
Dart
Raw Normal View History

2023-07-27 21:08:43 +00:00
// Mocks generated by Mockito 5.4.2 from annotations
2022-08-26 08:11:35 +00:00
// in stackwallet/test/price_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3;
2023-09-13 16:58:02 +00:00
import 'dart:convert' as _i5;
import 'dart:io' as _i4;
2022-08-26 08:11:35 +00:00
import 'package:mockito/mockito.dart' as _i1;
2023-09-13 16:58:02 +00:00
import 'package:stackwallet/networking/http.dart' as _i2;
2022-08-26 08:11:35 +00:00
// ignore_for_file: type=lint
// 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
// ignore_for_file: subtype_of_sealed_class
2022-08-26 08:11:35 +00:00
class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response {
_FakeResponse_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
2022-08-26 08:11:35 +00:00
2023-09-13 16:58:02 +00:00
/// A class which mocks [HTTP].
2022-08-26 08:11:35 +00:00
///
/// See the documentation for Mockito's code generation for more information.
2023-09-13 16:58:02 +00:00
class MockHTTP extends _i1.Mock implements _i2.HTTP {
MockHTTP() {
2022-08-26 08:11:35 +00:00
_i1.throwOnMissingStub(this);
}
@override
2023-09-13 16:58:02 +00:00
_i3.Future<_i2.Response> get({
required Uri? url,
Map<String, String>? headers,
2023-09-13 16:58:02 +00:00
required ({_i4.InternetAddress host, int port})? proxyInfo,
}) =>
(super.noSuchMethod(
Invocation.method(
#get,
2023-09-13 16:58:02 +00:00
[],
{
2023-09-13 16:58:02 +00:00
#url: url,
#headers: headers,
2023-09-13 16:58:02 +00:00
#proxyInfo: proxyInfo,
},
),
returnValue: _i3.Future<_i2.Response>.value(_FakeResponse_0(
this,
Invocation.method(
2023-09-13 16:58:02 +00:00
#get,
[],
{
2023-09-13 16:58:02 +00:00
#url: url,
#headers: headers,
2023-09-13 16:58:02 +00:00
#proxyInfo: proxyInfo,
},
),
)),
) as _i3.Future<_i2.Response>);
2022-08-26 08:11:35 +00:00
@override
2023-09-13 16:58:02 +00:00
_i3.Future<_i2.Response> post({
required Uri? url,
Map<String, String>? headers,
Object? body,
2023-09-13 16:58:02 +00:00
_i5.Encoding? encoding,
required ({_i4.InternetAddress host, int port})? proxyInfo,
}) =>
2022-08-26 08:11:35 +00:00
(super.noSuchMethod(
Invocation.method(
2023-09-13 16:58:02 +00:00
#post,
[],
{
2023-09-13 16:58:02 +00:00
#url: url,
#headers: headers,
#body: body,
#encoding: encoding,
2023-09-13 16:58:02 +00:00
#proxyInfo: proxyInfo,
},
),
returnValue: _i3.Future<_i2.Response>.value(_FakeResponse_0(
this,
Invocation.method(
2023-09-13 16:58:02 +00:00
#post,
[],
{
2023-09-13 16:58:02 +00:00
#url: url,
#headers: headers,
#body: body,
#encoding: encoding,
2023-09-13 16:58:02 +00:00
#proxyInfo: proxyInfo,
},
),
)),
) as _i3.Future<_i2.Response>);
2022-08-26 08:11:35 +00:00
}