@@ -142,13 +142,13 @@ class PlatformHandlerTest : public WindowsTest {
142142 protected:
143143 FlutterWindowsEngine* engine () { return engine_.get (); }
144144
145- void use_headless_engine () {
145+ void UseHeadlessEngine () {
146146 FlutterWindowsEngineBuilder builder{GetContext ()};
147147
148148 engine_ = builder.Build ();
149149 }
150150
151- void use_engine_with_view () {
151+ void UseEngineWithView () {
152152 FlutterWindowsEngineBuilder builder{GetContext ()};
153153
154154 auto window = std::make_unique<NiceMock<MockWindowBindingHandler>>();
@@ -166,7 +166,7 @@ class PlatformHandlerTest : public WindowsTest {
166166};
167167
168168TEST_F (PlatformHandlerTest, GetClipboardData) {
169- use_engine_with_view ();
169+ UseEngineWithView ();
170170
171171 TestBinaryMessenger messenger;
172172 PlatformHandler platform_handler (&messenger, engine (), []() {
@@ -190,7 +190,7 @@ TEST_F(PlatformHandlerTest, GetClipboardData) {
190190}
191191
192192TEST_F (PlatformHandlerTest, GetClipboardDataRejectsUnknownContentType) {
193- use_engine_with_view ();
193+ UseEngineWithView ();
194194
195195 TestBinaryMessenger messenger;
196196 PlatformHandler platform_handler (&messenger, engine ());
@@ -203,7 +203,7 @@ TEST_F(PlatformHandlerTest, GetClipboardDataRejectsUnknownContentType) {
203203}
204204
205205TEST_F (PlatformHandlerTest, GetClipboardDataRequiresView) {
206- use_headless_engine ();
206+ UseHeadlessEngine ();
207207
208208 TestBinaryMessenger messenger;
209209 PlatformHandler platform_handler (&messenger, engine ());
@@ -217,7 +217,7 @@ TEST_F(PlatformHandlerTest, GetClipboardDataRequiresView) {
217217}
218218
219219TEST_F (PlatformHandlerTest, GetClipboardDataReportsOpenFailure) {
220- use_engine_with_view ();
220+ UseEngineWithView ();
221221
222222 TestBinaryMessenger messenger;
223223 PlatformHandler platform_handler (&messenger, engine (), []() {
@@ -237,7 +237,7 @@ TEST_F(PlatformHandlerTest, GetClipboardDataReportsOpenFailure) {
237237}
238238
239239TEST_F (PlatformHandlerTest, GetClipboardDataReportsGetDataFailure) {
240- use_engine_with_view ();
240+ UseEngineWithView ();
241241
242242 TestBinaryMessenger messenger;
243243 PlatformHandler platform_handler (&messenger, engine (), []() {
@@ -261,7 +261,7 @@ TEST_F(PlatformHandlerTest, GetClipboardDataReportsGetDataFailure) {
261261}
262262
263263TEST_F (PlatformHandlerTest, ClipboardHasStrings) {
264- use_engine_with_view ();
264+ UseEngineWithView ();
265265
266266 TestBinaryMessenger messenger;
267267 PlatformHandler platform_handler (&messenger, engine (), []() {
@@ -282,7 +282,7 @@ TEST_F(PlatformHandlerTest, ClipboardHasStrings) {
282282}
283283
284284TEST_F (PlatformHandlerTest, ClipboardHasStringsReturnsFalse) {
285- use_engine_with_view ();
285+ UseEngineWithView ();
286286
287287 TestBinaryMessenger messenger;
288288 PlatformHandler platform_handler (&messenger, engine (), []() {
@@ -303,7 +303,7 @@ TEST_F(PlatformHandlerTest, ClipboardHasStringsReturnsFalse) {
303303}
304304
305305TEST_F (PlatformHandlerTest, ClipboardHasStringsRejectsUnknownContentType) {
306- use_engine_with_view ();
306+ UseEngineWithView ();
307307
308308 TestBinaryMessenger messenger;
309309 PlatformHandler platform_handler (&messenger, engine ());
@@ -315,7 +315,7 @@ TEST_F(PlatformHandlerTest, ClipboardHasStringsRejectsUnknownContentType) {
315315}
316316
317317TEST_F (PlatformHandlerTest, ClipboardHasStringsRequiresView) {
318- use_headless_engine ();
318+ UseHeadlessEngine ();
319319
320320 TestBinaryMessenger messenger;
321321 PlatformHandler platform_handler (&messenger, engine ());
@@ -330,7 +330,7 @@ TEST_F(PlatformHandlerTest, ClipboardHasStringsRequiresView) {
330330
331331// Regression test for https://github.com/flutter/flutter/issues/95817.
332332TEST_F (PlatformHandlerTest, ClipboardHasStringsIgnoresPermissionErrors) {
333- use_engine_with_view ();
333+ UseEngineWithView ();
334334
335335 TestBinaryMessenger messenger;
336336 PlatformHandler platform_handler (&messenger, engine (), []() {
@@ -350,7 +350,7 @@ TEST_F(PlatformHandlerTest, ClipboardHasStringsIgnoresPermissionErrors) {
350350}
351351
352352TEST_F (PlatformHandlerTest, ClipboardHasStringsReportsErrors) {
353- use_engine_with_view ();
353+ UseEngineWithView ();
354354
355355 TestBinaryMessenger messenger;
356356 PlatformHandler platform_handler (&messenger, engine (), []() {
@@ -370,7 +370,7 @@ TEST_F(PlatformHandlerTest, ClipboardHasStringsReportsErrors) {
370370}
371371
372372TEST_F (PlatformHandlerTest, ClipboardSetData) {
373- use_engine_with_view ();
373+ UseEngineWithView ();
374374
375375 TestBinaryMessenger messenger;
376376 PlatformHandler platform_handler (&messenger, engine (), []() {
@@ -397,7 +397,7 @@ TEST_F(PlatformHandlerTest, ClipboardSetData) {
397397
398398// Regression test for: https://github.com/flutter/flutter/issues/121976
399399TEST_F (PlatformHandlerTest, ClipboardSetDataTextMustBeString) {
400- use_engine_with_view ();
400+ UseEngineWithView ();
401401
402402 TestBinaryMessenger messenger;
403403 PlatformHandler platform_handler (&messenger, engine ());
@@ -409,7 +409,7 @@ TEST_F(PlatformHandlerTest, ClipboardSetDataTextMustBeString) {
409409}
410410
411411TEST_F (PlatformHandlerTest, ClipboardSetDataUnknownType) {
412- use_engine_with_view ();
412+ UseEngineWithView ();
413413
414414 TestBinaryMessenger messenger;
415415 PlatformHandler platform_handler (&messenger, engine ());
@@ -421,7 +421,7 @@ TEST_F(PlatformHandlerTest, ClipboardSetDataUnknownType) {
421421}
422422
423423TEST_F (PlatformHandlerTest, ClipboardSetDataRequiresView) {
424- use_headless_engine ();
424+ UseHeadlessEngine ();
425425
426426 TestBinaryMessenger messenger;
427427 PlatformHandler platform_handler (&messenger, engine ());
@@ -435,7 +435,7 @@ TEST_F(PlatformHandlerTest, ClipboardSetDataRequiresView) {
435435}
436436
437437TEST_F (PlatformHandlerTest, ClipboardSetDataReportsOpenFailure) {
438- use_engine_with_view ();
438+ UseEngineWithView ();
439439
440440 TestBinaryMessenger messenger;
441441 PlatformHandler platform_handler (&messenger, engine (), []() {
@@ -455,7 +455,7 @@ TEST_F(PlatformHandlerTest, ClipboardSetDataReportsOpenFailure) {
455455}
456456
457457TEST_F (PlatformHandlerTest, ClipboardSetDataReportsSetDataFailure) {
458- use_engine_with_view ();
458+ UseEngineWithView ();
459459
460460 TestBinaryMessenger messenger;
461461 PlatformHandler platform_handler (&messenger, engine (), []() {
@@ -478,7 +478,7 @@ TEST_F(PlatformHandlerTest, ClipboardSetDataReportsSetDataFailure) {
478478}
479479
480480TEST_F (PlatformHandlerTest, PlaySystemSound) {
481- use_headless_engine ();
481+ UseHeadlessEngine ();
482482
483483 TestBinaryMessenger messenger;
484484 MockPlatformHandler platform_handler (&messenger, engine ());
@@ -496,7 +496,7 @@ TEST_F(PlatformHandlerTest, PlaySystemSound) {
496496}
497497
498498TEST_F (PlatformHandlerTest, SystemExitApplicationRequired) {
499- use_headless_engine ();
499+ UseHeadlessEngine ();
500500 UINT exit_code = 0 ;
501501
502502 TestBinaryMessenger messenger ([](const std::string& channel,
@@ -518,7 +518,7 @@ TEST_F(PlatformHandlerTest, SystemExitApplicationRequired) {
518518}
519519
520520TEST_F (PlatformHandlerTest, SystemExitApplicationCancelableCancel) {
521- use_headless_engine ();
521+ UseHeadlessEngine ();
522522 bool called_cancel = false ;
523523
524524 TestBinaryMessenger messenger (
@@ -539,7 +539,7 @@ TEST_F(PlatformHandlerTest, SystemExitApplicationCancelableCancel) {
539539}
540540
541541TEST_F (PlatformHandlerTest, SystemExitApplicationCancelableExit) {
542- use_headless_engine ();
542+ UseHeadlessEngine ();
543543 bool called_cancel = false ;
544544 UINT exit_code = 0 ;
545545
0 commit comments