Closed
Bug 1313467
Opened 9 years ago
Closed 9 years ago
Convert XPCOM test TestAutoPtr 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)
|
15.34 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
|
10.06 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
|
4.46 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
|
11.57 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
Convert xpcom/tests/TestAutoPtr.cpp to a gtest and move to xpcom/tests/gtest/.
| Assignee | ||
Comment 1•9 years ago
|
||
This is a test for nsAutoPtr, we shouldn't be testing RefPtr here.
MozReview-Commit-ID: IqwgINAuYar
Attachment #8805366 -
Flags: review?(nfroyd)
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → erahm
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•9 years ago
|
||
This just moves code into separate functions. No logic changes were made.
MozReview-Commit-ID: 98NqhCb4T67
Attachment #8805367 -
Flags: review?(nfroyd)
| Assignee | ||
Comment 3•9 years ago
|
||
MozReview-Commit-ID: AfMDPcBjf3Y
Attachment #8805368 -
Flags: review?(nfroyd)
| Assignee | ||
Comment 4•9 years ago
|
||
MozReview-Commit-ID: EOKHAQyZ4fZ
Attachment #8805369 -
Flags: review?(nfroyd)
Updated•9 years ago
|
Attachment #8805366 -
Flags: review?(nfroyd) → review+
Updated•9 years ago
|
Attachment #8805367 -
Flags: review?(nfroyd) → review+
Updated•9 years ago
|
Attachment #8805368 -
Flags: review?(nfroyd) → review+
Comment 5•9 years ago
|
||
Comment on attachment 8805369 [details] [diff] [review]
Part 4: Convert TestAutoPtr to a gtest
Review of attachment 8805369 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with changes below.
::: xpcom/tests/gtest/TestAutoPtr.cpp
@@ +7,5 @@
> #include "nsAutoPtr.h"
> +#include "gtest/gtest.h"
> +//#include <stdio.h>
> +//#include "nscore.h"
> +//#include "mozilla/Attributes.h"
Might as well just delete these while you're at it, rather than commenting them out?
::: xpcom/tests/moz.build
@@ -45,5 @@
>
> XPCSHELL_TESTS_MANIFESTS += ['unit/xpcshell.ini']
>
> GeckoCppUnitTests([
> - 'TestAutoPtr',
You need to remove this from testing/cppunittest.ini as well.
Attachment #8805369 -
Flags: review?(nfroyd) → review+
| Assignee | ||
Comment 6•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/107eb264a40d19ecdcb1af3d09959a547d397b9d
Bug 1313467 - Part 1: Remove RefPtr tests from TestAutoPtr. r=froydnj
https://hg.mozilla.org/integration/mozilla-inbound/rev/6fae1bbd3819833d07fd47f7b9b15b8e42e12452
Bug 1313467 - Part 2: Move tests into individual functions. r=froydnj
https://hg.mozilla.org/integration/mozilla-inbound/rev/0acc0a131101e59d9b6dbc1dded254ebf6707104
Bug 1313467 - Part 3: Cleanup the formatting of the rest of the file. r=froydnj
https://hg.mozilla.org/integration/mozilla-inbound/rev/3c25a6ed5914b926e5c554c5f38a2e71ee0673e7
Bug 1313467 - Part 4: Convert TestAutoPtr to a gtest. r=froydnj
Comment 7•9 years ago
|
||
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/561b87e98adacbd47769a71a0e6c72c5dcf66a9d to get at bug 1313470 for its crashes on OS X.
| Assignee | ||
Comment 8•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7abe65a85676c0f538b6871fee5ecc3ee3a17cba
Bug 1313467 - Part 1: Remove RefPtr tests from TestAutoPtr. r=froydnj
https://hg.mozilla.org/integration/mozilla-inbound/rev/2d1eb2bddef98eaf9ab1069c32f16538a5c2a893
Bug 1313467 - Part 2: Move tests into individual functions. r=froydnj
https://hg.mozilla.org/integration/mozilla-inbound/rev/d7335cf91ad0ad8b9f798735490a15876aa05bb8
Bug 1313467 - Part 3: Cleanup the formatting of the rest of the file. r=froydnj
https://hg.mozilla.org/integration/mozilla-inbound/rev/6ca9d7aa4dc75e39aa260313d8ba552b2e76322a
Bug 1313467 - Part 4: Convert TestAutoPtr to a gtest. r=froydnj
Comment 9•9 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/7abe65a85676
https://hg.mozilla.org/mozilla-central/rev/2d1eb2bddef9
https://hg.mozilla.org/mozilla-central/rev/d7335cf91ad0
https://hg.mozilla.org/mozilla-central/rev/6ca9d7aa4dc7
Status: ASSIGNED → RESOLVED
Closed: 9 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
•