Closed
Bug 1313479
Opened 8 years ago
Closed 8 years ago
Convert XPCOM test TestObserverService to a gtest
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: erahm, Assigned: erahm)
References
Details
Attachments
(4 files)
8.78 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
1.11 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
9.44 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
9.67 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
Convert xpcom/tests/TestObserverService.cpp to a gtest and move to xpcom/tests/gtest/.
Assignee | ||
Comment 1•8 years ago
|
||
Just a note: it looks like this test currently doesn't do anything because it doesn't have a ScopedXPCOM declaration.
Assignee | ||
Comment 2•8 years ago
|
||
MozReview-Commit-ID: 7PAMbXHB5Ws
Attachment #8806826 -
Flags: review?(nfroyd)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → erahm
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•8 years ago
|
||
MozReview-Commit-ID: 4KVwMQJcAIS
Attachment #8806827 -
Flags: review?(nfroyd)
Assignee | ||
Comment 4•8 years ago
|
||
This is a straightforward conversion to a gtest. The test itself is updated to use RefPtr/nsCOMPtr where appropriate to avoid memory leaks. MozReview-Commit-ID: JyHF3iTaoOg
Attachment #8806828 -
Flags: review?(nfroyd)
Assignee | ||
Comment 5•8 years ago
|
||
This splits out enumertion testing, adds testing of weak references, and other basic tests for add and remove functions. MozReview-Commit-ID: CLEafPJhe3z
Attachment #8806829 -
Flags: review?(nfroyd)
Updated•8 years ago
|
Attachment #8806826 -
Flags: review?(nfroyd) → review+
Updated•8 years ago
|
Attachment #8806827 -
Flags: review?(nfroyd) → review+
Comment 6•8 years ago
|
||
Comment on attachment 8806828 [details] [diff] [review] Part 1: Convert TestObserverService to a gtest Review of attachment 8806828 [details] [diff] [review]: ----------------------------------------------------------------- ::: xpcom/tests/gtest/TestObserverService.cpp @@ -55,5 @@ > - nsCString topic( aTopic ); > - nsString data( someData ); > - /* > - The annoying double-cast below is to work around an annoying bug in > - the compiler currently used on wensleydale. This is a test. o.O
Attachment #8806828 -
Flags: review?(nfroyd) → review+
Updated•8 years ago
|
Attachment #8806829 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 7•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9559827d07d0f7ddfbf38eec42140c4b6f26195e Bug 1313479 - Part 0: Cleanup indentation. r=froydnj https://hg.mozilla.org/integration/mozilla-inbound/rev/fd302c72543de9f896f35fa87d9b2d07f49a4f1f Bug 1313479 - Part 0-1: Add missing includes to unified gtests. r=froydnj https://hg.mozilla.org/integration/mozilla-inbound/rev/921433b91312e220341c858581e852c843d89d21 Bug 1313479 - Part 1: Convert TestObserverService to a gtest. r=froydnj https://hg.mozilla.org/integration/mozilla-inbound/rev/a3b30fb7d3e6a4f97889180b6348d7771bd05891 Bug 1313479 - Part 2: Expand and split out TestObserverService tests. r=froydnj
Comment 8•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/9559827d07d0 https://hg.mozilla.org/mozilla-central/rev/fd302c72543d https://hg.mozilla.org/mozilla-central/rev/921433b91312 https://hg.mozilla.org/mozilla-central/rev/a3b30fb7d3e6
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in
before you can comment on or make changes to this bug.
Description
•