Closed
Bug 1144211
Opened 10 years ago
Closed 10 years ago
[B2G][Camera] Increase code coverage of mochitests
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect)
Tracking
(firefox40 fixed)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: aosmond, Assigned: aosmond)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
aosmond
:
review+
|
Details | Diff | Splinter Review |
Increase code coverage of camera mochitests, including
- Configuration, particular video mode
- Start / stop recording
- Camera capabilities
- Certain failure paths of APIs
Assignee | ||
Comment 1•10 years ago
|
||
Assignee: nobody → aosmond
Status: NEW → ASSIGNED
Assignee | ||
Updated•10 years ago
|
Blocks: camera-backlog
Flags: in-testsuite+
Assignee | ||
Comment 2•10 years ago
|
||
Comment on attachment 8578737 [details] [diff] [review]
bug1144211.patch
Feel free to review the individual tests but I am mainly looking for the non-test case bits.
Attachment #8578737 -
Flags: review?(mhabicher)
Comment 3•10 years ago
|
||
Comment on attachment 8578737 [details] [diff] [review]
bug1144211.patch
Review of attachment 8578737 [details] [diff] [review]:
-----------------------------------------------------------------
This looks good, with the question and issue noted below addresses. Hopefully your Gecko changes don't break my patch too much. :)
::: dom/camera/GonkCameraControl.cpp
@@ +1269,5 @@
> mRecorder->stop();
> mRecorder = nullptr;
> +#else
> + if (!mVideoFile) {
> + return NS_OK;
Can we ever have !!mVideoFile?
@@ +1286,5 @@
> }
> }
>
> // notify DeviceStorage that the new video file is closed and ready
> + nsresult rv = NS_DispatchToMainThread(new RecordingComplete(mVideoFile.forget()));
And 'rv' is used where...?
Attachment #8578737 -
Flags: review?(mhabicher) → review+
Assignee | ||
Comment 4•10 years ago
|
||
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=47299624c007
(In reply to Mike Habicher [:mikeh] from comment #3)
> Comment on attachment 8578737 [details] [diff] [review]
> bug1144211.patch
>
> Review of attachment 8578737 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> This looks good, with the question and issue noted below addresses.
> Hopefully your Gecko changes don't break my patch too much. :)
>
> ::: dom/camera/GonkCameraControl.cpp
> @@ +1269,5 @@
> > mRecorder->stop();
> > mRecorder = nullptr;
> > +#else
> > + if (!mVideoFile) {
> > + return NS_OK;
>
> Can we ever have !!mVideoFile?
>
I changed the dispatch further down to use mVideoFile.forget() so that it is cleared when the recording is stopped. So it should *only* be set if there was a pending recording, where mRecorder is also set. On B2G desktop, where recordering isn't supported fully, mRecorder doesn't exist.
> @@ +1286,5 @@
> > }
> > }
> >
> > // notify DeviceStorage that the new video file is closed and ready
> > + nsresult rv = NS_DispatchToMainThread(new RecordingComplete(mVideoFile.forget()));
>
> And 'rv' is used where...?
Why didn't the build break?!?! Fixed. It should have returned from NS_Dispatch... here.
Attachment #8578737 -
Attachment is obsolete: true
Attachment #8594249 -
Flags: review+
Assignee | ||
Comment 5•10 years ago
|
||
Tests pass on B2G desktop, but a few failed on the emulator. Round two!
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=4a060f4bf783
Attachment #8594249 -
Attachment is obsolete: true
Attachment #8594281 -
Flags: review+
Comment 7•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•