Skip to content

Commit bd5b883

Browse files
committed
Automated g4 rollback of changelist 367238585.
*** Reason for rollback *** Broke https://test.corp.google.com/ui#cl=365134781&flags=CAMQBQ==&id=OCL:365134781:BASE:367271161:1617822936639:6a37b0ed&t=//chrome/cloudcast/client/gamerx/audio/test:active_controller_audio_service_test_ddc_headless-chrome-linux *** Original change description *** Import #376 *** PiperOrigin-RevId: 367295097
1 parent dfb7275 commit bd5b883

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

lib/src/mock.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -997,10 +997,7 @@ _InOrderVerification get verifyInOrder {
997997
throw StateError(_verifyCalls.join());
998998
}
999999
_verificationInProgress = true;
1000-
return <T>(List<T> responses) {
1001-
if (responses.length != _verifyCalls.length) {
1002-
fail('Used on a non-mockito object');
1003-
}
1000+
return <T>(List<T> _) {
10041001
_verificationInProgress = false;
10051002
var verificationResults = <VerificationResult>[];
10061003
var time = DateTime.fromMillisecondsSinceEpoch(0);

test/verify_test.dart

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,6 @@ void main() {
206206
'2 verify calls have been stored.')));
207207
}
208208
});
209-
210-
test('should fail when called with non-mock-call parameter', () {
211-
expectFail('Used on a non-mockito object', () {
212-
verifyInOrder(['a string is not a mock call']);
213-
});
214-
});
215209
});
216210

217211
group('verify should fail when no matching call is found', () {
@@ -463,12 +457,6 @@ void main() {
463457
});
464458
});
465459

466-
test('should fail when given non-mock-call parameters', () {
467-
expectFail('Used on a non-mockito object', () {
468-
verifyInOrder(['a string is not a mock call']);
469-
});
470-
});
471-
472460
test('verify been used as an argument fails', () {
473461
mock.methodWithoutArgs();
474462
mock.getter;

0 commit comments

Comments
 (0)