@@ -31,6 +31,9 @@ void main() {
3131 called = true ;
3232 }
3333 buffers.push (channel, data, callback);
34+ // Ignoring the deprecated member use because we're specifically testing
35+ // deprecated API.
36+ // ignore: deprecated_member_use
3437 await buffers.drain (channel, (ByteData ? drainedData, ui.PlatformMessageResponseCallback drainedCallback) async {
3538 expect (drainedData, equals (data));
3639 assert (! called);
@@ -52,6 +55,9 @@ void main() {
5255
5356 // Ignoring the returned future because the completion of the drain is
5457 // communicated using the `completer`.
58+ // Ignoring the deprecated member use because we're specifically testing
59+ // deprecated API.
60+ // ignore: deprecated_member_use
5561 buffers.drain (channel, (ByteData ? drainedData, ui.PlatformMessageResponseCallback drainedCallback) async {
5662 log.add ('callback' );
5763 completer.complete ();
@@ -77,6 +83,9 @@ void main() {
7783 _resize (buffers, channel, 0 );
7884 buffers.push (channel, data, callback);
7985 bool didCall = false ;
86+ // Ignoring the deprecated member use because we're specifically testing
87+ // deprecated API.
88+ // ignore: deprecated_member_use
8089 await buffers.drain (channel, (ByteData ? drainedData, ui.PlatformMessageResponseCallback drainedCallback) async {
8190 didCall = true ;
8291 });
@@ -87,6 +96,9 @@ void main() {
8796 const String channel = 'foo' ;
8897 final ui.ChannelBuffers buffers = ui.ChannelBuffers ();
8998 bool didCall = false ;
99+ // Ignoring the deprecated member use because we're specifically testing
100+ // deprecated API.
101+ // ignore: deprecated_member_use
90102 await buffers.drain (channel, (ByteData ? drainedData, ui.PlatformMessageResponseCallback drainedCallback) async {
91103 didCall = true ;
92104 });
@@ -107,6 +119,9 @@ void main() {
107119 buffers.push (channel, three, callback);
108120 buffers.push (channel, four, callback);
109121 int counter = 0 ;
122+ // Ignoring the deprecated member use because we're specifically testing
123+ // deprecated API.
124+ // ignore: deprecated_member_use
110125 await buffers.drain (channel, (ByteData ? drainedData, ui.PlatformMessageResponseCallback drainedCallback) async {
111126 switch (counter) {
112127 case 0 :
@@ -132,6 +147,9 @@ void main() {
132147 buffers.push (channel, two, callback);
133148 _resize (buffers, channel, 1 );
134149 int counter = 0 ;
150+ // Ignoring the deprecated member use because we're specifically testing
151+ // deprecated API.
152+ // ignore: deprecated_member_use
135153 await buffers.drain (channel, (ByteData ? drainedData, ui.PlatformMessageResponseCallback drainedCallback) async {
136154 switch (counter) {
137155 case 0 :
0 commit comments