Skip to content

Commit

Permalink
Bump mockito and regenerate mocks (#22)
Browse files Browse the repository at this point in the history
* Bump mockito and regenerate mocks

* Bump to 5.4.3

* bump SDK constraint

* bump SDK in GitHub actions

* bump to 3.1.0
  • Loading branch information
srawlins committed Dec 14, 2023
1 parent 16c4afd commit 69d5639
Show file tree
Hide file tree
Showing 25 changed files with 1,030 additions and 933 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1.3
with:
sdk: 2.18.4
sdk: 3.1.0
- run: dart pub get
- run: dart analyze --fatal-infos --fatal-warnings
format:
Expand All @@ -19,13 +19,13 @@ jobs:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1.3
with:
sdk: 2.18.4
sdk: 3.1.0
- run: dart format --output none --set-exit-if-changed .\example\ .\lib\ .\test\
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1.3
with:
sdk: 2.18.4
sdk: 3.1.0
- run: dart test
6 changes: 3 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1.3
with:
sdk: 2.18.4
sdk: 3.1.0
- run: dart pub get
- run: dart analyze --fatal-infos --fatal-warnings
format:
Expand All @@ -17,13 +17,13 @@ jobs:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1.3
with:
sdk: 2.18.4
sdk: 3.1.0
- run: dart format --output none --set-exit-if-changed .\example\ .\lib\ .\test\
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1.3
with:
sdk: 2.18.4
sdk: 3.1.0
- run: dart test
32 changes: 17 additions & 15 deletions lib/src/client/config.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@ class _$ConfigCopyWithImpl<$Res, $Val extends Config>
}

/// @nodoc
abstract class _$$_ConfigCopyWith<$Res> implements $ConfigCopyWith<$Res> {
factory _$$_ConfigCopyWith(_$_Config value, $Res Function(_$_Config) then) =
__$$_ConfigCopyWithImpl<$Res>;
abstract class _$$ConfigImplCopyWith<$Res> implements $ConfigCopyWith<$Res> {
factory _$$ConfigImplCopyWith(
_$ConfigImpl value, $Res Function(_$ConfigImpl) then) =
__$$ConfigImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
Expand All @@ -102,10 +103,11 @@ abstract class _$$_ConfigCopyWith<$Res> implements $ConfigCopyWith<$Res> {
}

/// @nodoc
class __$$_ConfigCopyWithImpl<$Res>
extends _$ConfigCopyWithImpl<$Res, _$_Config>
implements _$$_ConfigCopyWith<$Res> {
__$$_ConfigCopyWithImpl(_$_Config _value, $Res Function(_$_Config) _then)
class __$$ConfigImplCopyWithImpl<$Res>
extends _$ConfigCopyWithImpl<$Res, _$ConfigImpl>
implements _$$ConfigImplCopyWith<$Res> {
__$$ConfigImplCopyWithImpl(
_$ConfigImpl _value, $Res Function(_$ConfigImpl) _then)
: super(_value, _then);

@pragma('vm:prefer-inline')
Expand All @@ -115,7 +117,7 @@ class __$$_ConfigCopyWithImpl<$Res>
Object? frameBufferWidth = null,
Object? pixelFormat = null,
}) {
return _then(_$_Config(
return _then(_$ConfigImpl(
frameBufferHeight: null == frameBufferHeight
? _value.frameBufferHeight
: frameBufferHeight // ignore: cast_nullable_to_non_nullable
Expand All @@ -134,8 +136,8 @@ class __$$_ConfigCopyWithImpl<$Res>

/// @nodoc
class _$_Config implements _Config {
const _$_Config(
class _$ConfigImpl implements _Config {
const _$ConfigImpl(
{required this.frameBufferHeight,
required this.frameBufferWidth,
required this.pixelFormat});
Expand All @@ -161,7 +163,7 @@ class _$_Config implements _Config {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_Config &&
other is _$ConfigImpl &&
(identical(other.frameBufferHeight, frameBufferHeight) ||
other.frameBufferHeight == frameBufferHeight) &&
(identical(other.frameBufferWidth, frameBufferWidth) ||
Expand All @@ -177,15 +179,15 @@ class _$_Config implements _Config {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_ConfigCopyWith<_$_Config> get copyWith =>
__$$_ConfigCopyWithImpl<_$_Config>(this, _$identity);
_$$ConfigImplCopyWith<_$ConfigImpl> get copyWith =>
__$$ConfigImplCopyWithImpl<_$ConfigImpl>(this, _$identity);
}

abstract class _Config implements Config {
const factory _Config(
{required final int frameBufferHeight,
required final int frameBufferWidth,
required final RemoteFrameBufferPixelFormat pixelFormat}) = _$_Config;
required final RemoteFrameBufferPixelFormat pixelFormat}) = _$ConfigImpl;

@override

Expand All @@ -201,6 +203,6 @@ abstract class _Config implements Config {
RemoteFrameBufferPixelFormat get pixelFormat;
@override
@JsonKey(ignore: true)
_$$_ConfigCopyWith<_$_Config> get copyWith =>
_$$ConfigImplCopyWith<_$ConfigImpl> get copyWith =>
throw _privateConstructorUsedError;
}
44 changes: 22 additions & 22 deletions lib/src/client/remote_frame_buffer_client_key_event.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,25 +66,25 @@ class _$RemoteFrameBufferClientKeyEventCopyWithImpl<$Res,
}

/// @nodoc
abstract class _$$_RemoteFrameBufferClientKeyEventCopyWith<$Res>
abstract class _$$RemoteFrameBufferClientKeyEventImplCopyWith<$Res>
implements $RemoteFrameBufferClientKeyEventCopyWith<$Res> {
factory _$$_RemoteFrameBufferClientKeyEventCopyWith(
_$_RemoteFrameBufferClientKeyEvent value,
$Res Function(_$_RemoteFrameBufferClientKeyEvent) then) =
__$$_RemoteFrameBufferClientKeyEventCopyWithImpl<$Res>;
factory _$$RemoteFrameBufferClientKeyEventImplCopyWith(
_$RemoteFrameBufferClientKeyEventImpl value,
$Res Function(_$RemoteFrameBufferClientKeyEventImpl) then) =
__$$RemoteFrameBufferClientKeyEventImplCopyWithImpl<$Res>;
@override
@useResult
$Res call({bool down, int key});
}

/// @nodoc
class __$$_RemoteFrameBufferClientKeyEventCopyWithImpl<$Res>
class __$$RemoteFrameBufferClientKeyEventImplCopyWithImpl<$Res>
extends _$RemoteFrameBufferClientKeyEventCopyWithImpl<$Res,
_$_RemoteFrameBufferClientKeyEvent>
implements _$$_RemoteFrameBufferClientKeyEventCopyWith<$Res> {
__$$_RemoteFrameBufferClientKeyEventCopyWithImpl(
_$_RemoteFrameBufferClientKeyEvent _value,
$Res Function(_$_RemoteFrameBufferClientKeyEvent) _then)
_$RemoteFrameBufferClientKeyEventImpl>
implements _$$RemoteFrameBufferClientKeyEventImplCopyWith<$Res> {
__$$RemoteFrameBufferClientKeyEventImplCopyWithImpl(
_$RemoteFrameBufferClientKeyEventImpl _value,
$Res Function(_$RemoteFrameBufferClientKeyEventImpl) _then)
: super(_value, _then);

@pragma('vm:prefer-inline')
Expand All @@ -93,7 +93,7 @@ class __$$_RemoteFrameBufferClientKeyEventCopyWithImpl<$Res>
Object? down = null,
Object? key = null,
}) {
return _then(_$_RemoteFrameBufferClientKeyEvent(
return _then(_$RemoteFrameBufferClientKeyEventImpl(
down: null == down
? _value.down
: down // ignore: cast_nullable_to_non_nullable
Expand All @@ -108,9 +108,9 @@ class __$$_RemoteFrameBufferClientKeyEventCopyWithImpl<$Res>

/// @nodoc
class _$_RemoteFrameBufferClientKeyEvent
class _$RemoteFrameBufferClientKeyEventImpl
implements _RemoteFrameBufferClientKeyEvent {
const _$_RemoteFrameBufferClientKeyEvent(
const _$RemoteFrameBufferClientKeyEventImpl(
{required this.down, required this.key});

@override
Expand All @@ -127,7 +127,7 @@ class _$_RemoteFrameBufferClientKeyEvent
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_RemoteFrameBufferClientKeyEvent &&
other is _$RemoteFrameBufferClientKeyEventImpl &&
(identical(other.down, down) || other.down == down) &&
(identical(other.key, key) || other.key == key));
}
Expand All @@ -138,25 +138,25 @@ class _$_RemoteFrameBufferClientKeyEvent
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_RemoteFrameBufferClientKeyEventCopyWith<
_$_RemoteFrameBufferClientKeyEvent>
get copyWith => __$$_RemoteFrameBufferClientKeyEventCopyWithImpl<
_$_RemoteFrameBufferClientKeyEvent>(this, _$identity);
_$$RemoteFrameBufferClientKeyEventImplCopyWith<
_$RemoteFrameBufferClientKeyEventImpl>
get copyWith => __$$RemoteFrameBufferClientKeyEventImplCopyWithImpl<
_$RemoteFrameBufferClientKeyEventImpl>(this, _$identity);
}

abstract class _RemoteFrameBufferClientKeyEvent
implements RemoteFrameBufferClientKeyEvent {
const factory _RemoteFrameBufferClientKeyEvent(
{required final bool down,
required final int key}) = _$_RemoteFrameBufferClientKeyEvent;
required final int key}) = _$RemoteFrameBufferClientKeyEventImpl;

@override
bool get down;
@override
int get key;
@override
@JsonKey(ignore: true)
_$$_RemoteFrameBufferClientKeyEventCopyWith<
_$_RemoteFrameBufferClientKeyEvent>
_$$RemoteFrameBufferClientKeyEventImplCopyWith<
_$RemoteFrameBufferClientKeyEventImpl>
get copyWith => throw _privateConstructorUsedError;
}
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ class _$RemoteFrameBufferClientPointerEventCopyWithImpl<$Res,
}

/// @nodoc
abstract class _$$_RemoteFrameBufferClientPointerEventCopyWith<$Res>
abstract class _$$RemoteFrameBufferClientPointerEventImplCopyWith<$Res>
implements $RemoteFrameBufferClientPointerEventCopyWith<$Res> {
factory _$$_RemoteFrameBufferClientPointerEventCopyWith(
_$_RemoteFrameBufferClientPointerEvent value,
$Res Function(_$_RemoteFrameBufferClientPointerEvent) then) =
__$$_RemoteFrameBufferClientPointerEventCopyWithImpl<$Res>;
factory _$$RemoteFrameBufferClientPointerEventImplCopyWith(
_$RemoteFrameBufferClientPointerEventImpl value,
$Res Function(_$RemoteFrameBufferClientPointerEventImpl) then) =
__$$RemoteFrameBufferClientPointerEventImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
Expand All @@ -147,13 +147,13 @@ abstract class _$$_RemoteFrameBufferClientPointerEventCopyWith<$Res>
}

/// @nodoc
class __$$_RemoteFrameBufferClientPointerEventCopyWithImpl<$Res>
class __$$RemoteFrameBufferClientPointerEventImplCopyWithImpl<$Res>
extends _$RemoteFrameBufferClientPointerEventCopyWithImpl<$Res,
_$_RemoteFrameBufferClientPointerEvent>
implements _$$_RemoteFrameBufferClientPointerEventCopyWith<$Res> {
__$$_RemoteFrameBufferClientPointerEventCopyWithImpl(
_$_RemoteFrameBufferClientPointerEvent _value,
$Res Function(_$_RemoteFrameBufferClientPointerEvent) _then)
_$RemoteFrameBufferClientPointerEventImpl>
implements _$$RemoteFrameBufferClientPointerEventImplCopyWith<$Res> {
__$$RemoteFrameBufferClientPointerEventImplCopyWithImpl(
_$RemoteFrameBufferClientPointerEventImpl _value,
$Res Function(_$RemoteFrameBufferClientPointerEventImpl) _then)
: super(_value, _then);

@pragma('vm:prefer-inline')
Expand All @@ -170,7 +170,7 @@ class __$$_RemoteFrameBufferClientPointerEventCopyWithImpl<$Res>
Object? x = null,
Object? y = null,
}) {
return _then(_$_RemoteFrameBufferClientPointerEvent(
return _then(_$RemoteFrameBufferClientPointerEventImpl(
button1Down: null == button1Down
? _value.button1Down
: button1Down // ignore: cast_nullable_to_non_nullable
Expand Down Expand Up @@ -217,9 +217,9 @@ class __$$_RemoteFrameBufferClientPointerEventCopyWithImpl<$Res>

/// @nodoc
class _$_RemoteFrameBufferClientPointerEvent
class _$RemoteFrameBufferClientPointerEventImpl
implements _RemoteFrameBufferClientPointerEvent {
const _$_RemoteFrameBufferClientPointerEvent(
const _$RemoteFrameBufferClientPointerEventImpl(
{required this.button1Down,
required this.button2Down,
required this.button3Down,
Expand Down Expand Up @@ -261,7 +261,7 @@ class _$_RemoteFrameBufferClientPointerEvent
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_RemoteFrameBufferClientPointerEvent &&
other is _$RemoteFrameBufferClientPointerEventImpl &&
(identical(other.button1Down, button1Down) ||
other.button1Down == button1Down) &&
(identical(other.button2Down, button2Down) ||
Expand Down Expand Up @@ -299,10 +299,10 @@ class _$_RemoteFrameBufferClientPointerEvent
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_RemoteFrameBufferClientPointerEventCopyWith<
_$_RemoteFrameBufferClientPointerEvent>
get copyWith => __$$_RemoteFrameBufferClientPointerEventCopyWithImpl<
_$_RemoteFrameBufferClientPointerEvent>(this, _$identity);
_$$RemoteFrameBufferClientPointerEventImplCopyWith<
_$RemoteFrameBufferClientPointerEventImpl>
get copyWith => __$$RemoteFrameBufferClientPointerEventImplCopyWithImpl<
_$RemoteFrameBufferClientPointerEventImpl>(this, _$identity);
}

abstract class _RemoteFrameBufferClientPointerEvent
Expand All @@ -317,7 +317,7 @@ abstract class _RemoteFrameBufferClientPointerEvent
required final bool button7Down,
required final bool button8Down,
required final int x,
required final int y}) = _$_RemoteFrameBufferClientPointerEvent;
required final int y}) = _$RemoteFrameBufferClientPointerEventImpl;

@override
bool get button1Down;
Expand All @@ -341,7 +341,7 @@ abstract class _RemoteFrameBufferClientPointerEvent
int get y;
@override
@JsonKey(ignore: true)
_$$_RemoteFrameBufferClientPointerEventCopyWith<
_$_RemoteFrameBufferClientPointerEvent>
_$$RemoteFrameBufferClientPointerEventImplCopyWith<
_$RemoteFrameBufferClientPointerEventImpl>
get copyWith => throw _privateConstructorUsedError;
}
Loading

0 comments on commit 69d5639

Please sign in to comment.