Closed Bug 1869842 Opened 1 year ago Closed 10 months ago

Expand `MockRegistry` to support more: registry types, subkeys/children, etc

Categories

(Toolkit :: Default Browser Agent, task, P3)

task

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: nalexander, Assigned: nipunshukla002)

References

(Depends on 1 open bug)

Details

(Whiteboard: [fidedi-wdba])

Attachments

(1 file, 1 obsolete file)

This ticket tracks making MockRegistry support more of the Windows registry API, including registry types and subkeys/children. And, while we're in the neighbourhood, testing it against the same battery as https://searchfox.org/mozilla-central/source/xpcom/tests/unit/test_windows_registry.js.

There's no dependency relationship, but it's good to be aware of Bug 1852781 when working in the area -- especially when testing.

This implements registry types by storing a pair of [value, type].

This implements subkeys/children by nesting "keys" with children and
values maps.

The biggest limitation added is to have the store be a static on
the MockRegistry class rather than on each instance. This allows to
refer to MockWindowsRegKey more easily, rather than having that
class be scoped to the specific MockRegistry instance.

Finally, this tests the MockRegistry interface in the same way we
test the native Windows registry interface.

Priority: -- → P3
Blocks: 1885386
Attachment #9392826 - Attachment is obsolete: true
Assignee: nobody → nshukla
Status: NEW → ASSIGNED
Attachment #9376133 - Attachment description: WIP: Bug 1869842 - Extend `MockRegistry` to support registry types and subkeys/children. r?nrishel → Bug 1869842 - Extend `MockRegistry` to support registry types and subkeys/children. r?nrishel
Attachment #9376133 - Attachment description: Bug 1869842 - Extend `MockRegistry` to support registry types and subkeys/children. r?nrishel → Bug 1869842 - Extend `MockRegistry` to support types and subkeys r?nrishel
Attachment #9376133 - Attachment description: Bug 1869842 - Extend `MockRegistry` to support types and subkeys r?nrishel → Bug 1869842 - Extend `MockRegistry` to support types and subkeys/children r?nrishel
Pushed by nshukla@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7c19bbbde9f0 Extend `MockRegistry` to support types and subkeys/children r=nrishel
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: