@@ -727,55 +727,6 @@ void main() {
727
727
},
728
728
);
729
729
730
- testUsingContext (
731
- 'dds options --disable-dds works, but is deprecated' ,
732
- () async {
733
- final ddsCommand = FakeDdsCommand ();
734
- final CommandRunner <void > runner = createTestCommandRunner (ddsCommand);
735
- await runner.run (< String > ['test' , '--disable-dds' ]);
736
- expect (ddsCommand.enableDds, isFalse);
737
- expect (logger.warningText, contains ('"--disable-dds" argument is deprecated' ));
738
- },
739
- overrides: < Type , Generator > {
740
- FileSystem : () => fileSystem,
741
- Logger : () => logger,
742
- ProcessManager : () => processManager,
743
- },
744
- );
745
-
746
- testUsingContext (
747
- 'dds options --no-disable-dds' ,
748
- () async {
749
- final ddsCommand = FakeDdsCommand ();
750
- final CommandRunner <void > runner = createTestCommandRunner (ddsCommand);
751
- await runner.run (< String > ['test' , '--no-disable-dds' ]);
752
- expect (ddsCommand.enableDds, isTrue);
753
- expect (
754
- logger.warningText,
755
- contains ('"--no-disable-dds" argument is deprecated and redundant' ),
756
- );
757
- },
758
- overrides: < Type , Generator > {
759
- FileSystem : () => fileSystem,
760
- Logger : () => logger,
761
- ProcessManager : () => processManager,
762
- },
763
- );
764
-
765
- testUsingContext (
766
- 'dds options --dds --disable-dds' ,
767
- () async {
768
- final ddsCommand = FakeDdsCommand ();
769
- final CommandRunner <void > runner = createTestCommandRunner (ddsCommand);
770
- await runner.run (< String > ['test' , '--dds' , '--disable-dds' ]);
771
- expect (() => ddsCommand.enableDds, throwsToolExit ());
772
- },
773
- overrides: < Type , Generator > {
774
- FileSystem : () => fileSystem,
775
- ProcessManager : () => processManager,
776
- },
777
- );
778
-
779
730
group ('findTargetDevice' , () {
780
731
final device1 = FakeDevice ('device1' , 'device1' );
781
732
final device2 = FakeDevice ('device2' , 'device2' );
0 commit comments