Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6f0cf2a

Browse files
committed
Fix a race in the EmbedderA11yTest.A11yTreeIsConsistent tests
1 parent b65ac4a commit 6f0cf2a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

shell/platform/embedder/tests/embedder_a11y_unittests.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ TEST_F(EmbedderA11yTest, A11yTreeIsConsistent) {
160160
auto handle = Dart_GetNativeBooleanArgument(args, 0, &enabled);
161161
ASSERT_FALSE(Dart_IsError(handle));
162162
ASSERT_TRUE(enabled);
163-
latch.Signal();
163+
notify_features_latch.Signal();
164164
};
165165
result = FlutterEngineUpdateAccessibilityFeatures(
166166
engine.get(), kFlutterAccessibilityFeatureReduceMotion);
167167
ASSERT_EQ(result, FlutterEngineResult::kSuccess);
168-
latch.Wait();
168+
notify_features_latch.Wait();
169169

170170
// Wait for UpdateSemantics callback on platform (current) thread.
171171
latch.Wait();
@@ -350,12 +350,12 @@ TEST_F(EmbedderA11yTest, A11yTreeIsConsistentUsingLegacyCallbacks) {
350350
auto handle = Dart_GetNativeBooleanArgument(args, 0, &enabled);
351351
ASSERT_FALSE(Dart_IsError(handle));
352352
ASSERT_TRUE(enabled);
353-
latch.Signal();
353+
notify_features_latch.Signal();
354354
};
355355
result = FlutterEngineUpdateAccessibilityFeatures(
356356
engine.get(), kFlutterAccessibilityFeatureReduceMotion);
357357
ASSERT_EQ(result, FlutterEngineResult::kSuccess);
358-
latch.Wait();
358+
notify_features_latch.Wait();
359359

360360
// Wait for UpdateSemantics callback on platform (current) thread.
361361
latch.Wait();

0 commit comments

Comments
 (0)