platform_system_core/metricsd/include/metrics
Bertrand SIMONNET 3598d951a6 metricsd: Fix race condition in the tests.
We cached the enabled status for metrics as a static field in the
metrics library. This field is not reset in between tests which treats
the metrics as enabled if they were enabled previously.

None of the users rely on the caching being static so the cached status
was changed into a field.
Also enabled the metrics in upload_service_test.cc after verifying that
the test failed consistently.

BUG: 24473349
TEST: unit tests.

Change-Id: If05fdca644016d923aa7b1978db5e74ada563c1a
2015-09-28 15:02:00 -07:00
..
c_metrics_library.h metricsd: Relicense as Apache 2. 2015-08-10 15:57:47 -07:00
metrics_library.h metricsd: Fix race condition in the tests. 2015-09-28 15:02:00 -07:00
metrics_library_mock.h metricsd: move timer_mock.h and metrics_library_mock.h into include/metrics/ 2015-09-23 18:12:37 -07:00
timer.h metricsd: move timer.h into include/metrics/ 2015-09-15 11:52:59 -07:00
timer_mock.h metricsd: move timer_mock.h and metrics_library_mock.h into include/metrics/ 2015-09-23 18:12:37 -07:00