Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
loic-sharma committed Feb 15, 2024
1 parent 6ba408b commit d447004
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions shell/platform/windows/accessibility_bridge_windows_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@ void ExpectWinEventFromAXEvent(int32_t node_id,
ui::AXEventGenerator::Event ax_event,
ax::mojom::Event expected_event) {
auto engine = GetTestEngine();
auto modifier = EngineModifier(engine.get());
FlutterWindowsViewSpy view(
engine.get(), std::make_unique<NiceMock<MockWindowBindingHandler>>());
FlutterWindowsViewSpy view{
engine.get(), std::make_unique<NiceMock<MockWindowBindingHandler>>()};
EngineModifier modifier{engine.get()};
modifier.SetImplicitView(&view);
view.OnUpdateSemanticsEnabled(true);

Expand All @@ -210,9 +210,9 @@ void ExpectWinEventFromAXEventOnFocusNode(int32_t node_id,
ax::mojom::Event expected_event,
int32_t focus_id) {
auto engine = GetTestEngine();
auto modifier = EngineModifier(engine.get());
FlutterWindowsViewSpy view(
engine.get(), std::make_unique<NiceMock<MockWindowBindingHandler>>());
FlutterWindowsViewSpy view{
engine.get(), std::make_unique<NiceMock<MockWindowBindingHandler>>()};
EngineModifier modifier{engine.get()};
modifier.SetImplicitView(&view);
view.OnUpdateSemanticsEnabled(true);

Expand All @@ -236,9 +236,9 @@ void ExpectWinEventFromAXEventOnFocusNode(int32_t node_id,

TEST(AccessibilityBridgeWindows, GetParent) {
auto engine = GetTestEngine();
auto modifier = EngineModifier(engine.get());
FlutterWindowsViewSpy view(
engine.get(), std::make_unique<NiceMock<MockWindowBindingHandler>>());
FlutterWindowsViewSpy view{
engine.get(), std::make_unique<NiceMock<MockWindowBindingHandler>>()};
EngineModifier modifier{engine.get()};
modifier.SetImplicitView(&view);
view.OnUpdateSemanticsEnabled(true);

Expand All @@ -253,9 +253,9 @@ TEST(AccessibilityBridgeWindows, GetParent) {

TEST(AccessibilityBridgeWindows, GetParentOnRootRetunsNullptr) {
auto engine = GetTestEngine();
auto modifier = EngineModifier(engine.get());
FlutterWindowsViewSpy view(
engine.get(), std::make_unique<NiceMock<MockWindowBindingHandler>>());
FlutterWindowsViewSpy view{
engine.get(), std::make_unique<NiceMock<MockWindowBindingHandler>>()};
EngineModifier modifier{engine.get()};
modifier.SetImplicitView(&view);
view.OnUpdateSemanticsEnabled(true);

Expand All @@ -268,9 +268,9 @@ TEST(AccessibilityBridgeWindows, GetParentOnRootRetunsNullptr) {

TEST(AccessibilityBridgeWindows, DispatchAccessibilityAction) {
auto engine = GetTestEngine();
auto modifier = EngineModifier{engine.get()};
FlutterWindowsViewSpy view(
engine.get(), std::make_unique<NiceMock<MockWindowBindingHandler>>());
FlutterWindowsViewSpy view{
engine.get(), std::make_unique<NiceMock<MockWindowBindingHandler>>()};
EngineModifier modifier{engine.get()};
modifier.SetImplicitView(&view);
view.OnUpdateSemanticsEnabled(true);

Expand Down Expand Up @@ -304,9 +304,9 @@ TEST(AccessibilityBridgeWindows, OnAccessibilityEventChildrenChanged) {

TEST(AccessibilityBridgeWindows, OnAccessibilityEventFocusChanged) {
auto engine = GetTestEngine();
auto modifier = EngineModifier(engine.get());
FlutterWindowsViewSpy view(
engine.get(), std::make_unique<NiceMock<MockWindowBindingHandler>>());
FlutterWindowsViewSpy view{
engine.get(), std::make_unique<NiceMock<MockWindowBindingHandler>>()};
EngineModifier modifier{engine.get()};
modifier.SetImplicitView(&view);
view.OnUpdateSemanticsEnabled(true);

Expand Down

0 comments on commit d447004

Please sign in to comment.