Files
firefox/mobile/android/tests
Michael Comella e999f48e07 Bug 1289006 - Add code to assert potential crashing case never happens & tests. r=grisha
I expect the crashes occurred because one of the following:
  * the store already existed as a file
  * the store was a directory that did not have the appropriate permissions

In the telemetry code, none of the cases above should happen so I assert that
they never do.

If the crashes did occur for these reasons, the user will unfortunately
continue to crash but at least we'll know where our assumptions are going wrong.

I originally intended to write a regression test for listFiles returning null
but it requires the application code to be modified in non-trivial ways (e.g.
accessor methods we might forget to use) so I decided against it.

MozReview-Commit-ID: 9V9H84ehbdO
2016-07-25 14:24:03 -07:00
..