On 11/13/13 3:34 PM, Mike Habicher wrote:
Hello everyone,
I'm working on automated tests for Gecko's camera code on B2G, and I
want to replace different pieces of the implementation with fake
objects that return one or more injected error codes so that I can
exercise all of the error-handling paths.
None of this code needs to be included in shipping B2G builds
(particularly if space on the target device is at a premium), so I was
wondering if there were a way to have it included in TBPL builds but
not otherwise.
I've spoken to a few people now and it doesn't sound like there is
such a thing, but it also sounds like it might be a useful thing to have.
Generally we test and ship the same bits, so this doesn't sound great.
That being said, having test-only prefs to enable this behavior seems
fine, I doubt that your test code is going to take up that much space.
There's some related work going on in a bug[1] on WebRTC testing that
you might find interesting.
-Ted
1. https://bugzilla.mozilla.org/show_bug.cgi?id=934667
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform