platform_system_core/metricsd/uploader
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
..
mock metricsd: Make the unit tests pass. 2015-09-02 13:30:48 -07:00
proto metricsd: Relicense as Apache 2. 2015-08-10 15:57:47 -07:00
metrics_hashes.cc metricsd: Relicense as Apache 2. 2015-08-10 15:57:47 -07:00
metrics_hashes.h metricsd: Relicense as Apache 2. 2015-08-10 15:57:47 -07:00
metrics_hashes_unittest.cc metricsd: Relicense as Apache 2. 2015-08-10 15:57:47 -07:00
metrics_log.cc metricsd: Don't crash when some metadata is missing. 2015-08-20 11:57:50 -07:00
metrics_log.h metricsd: Don't crash when some metadata is missing. 2015-08-20 11:57:50 -07:00
metrics_log_base.cc metricsd: Log the histogram name to hash mapping. 2015-09-02 15:07:10 -07:00
metrics_log_base.h metricsd: Relicense as Apache 2. 2015-08-10 15:57:47 -07:00
metrics_log_base_unittest.cc metricsd: Relicense as Apache 2. 2015-08-10 15:57:47 -07:00
sender.h metricsd: Relicense as Apache 2. 2015-08-10 15:57:47 -07:00
sender_http.cc metricsd: Relicense as Apache 2. 2015-08-10 15:57:47 -07:00
sender_http.h metricsd: Relicense as Apache 2. 2015-08-10 15:57:47 -07:00
system_profile_cache.cc metricsd: Use product id instead of build target id. 2015-09-24 16:23:30 -07:00
system_profile_cache.h metricsd: Use product id instead of build target id. 2015-09-24 16:23:30 -07:00
system_profile_setter.h metricsd: Don't crash when some metadata is missing. 2015-08-20 11:57:50 -07:00
upload_service.cc metricsd: Persist the report to disk if an upload fails. 2015-09-14 13:55:33 -07:00
upload_service.h metricsd: Add test case for the upload service. 2015-09-14 13:55:33 -07:00
upload_service_test.cc metricsd: Fix race condition in the tests. 2015-09-28 15:02:00 -07:00