mozilla/MozStumbler — pull request #1004 by crankycoder (2014-10-15 02:35:10+00:00)
Title: 993 - add proper guards around the Reporter to limit wifi and cellular data per location

This should fix #993

It's possible that a stumble bundle is created with an initial GPS fix, and subsequent wifi and cell data is attached to that bundle - but no subsequent GPS events occur.

In this case, the Reporter did not properly guard against limiting the total number of wifi or cell records in the bundle allowing the bundle to grow without bound.

This patch adds tests and code to verify that those guards are properly honored.