platform_system_core/metricsd/uploader
Alex Deymo de4497ef3d Fix UploadService unittests.
The unittest was creating a brillo::Daemon in a smart pointer and then
resetting it to a newly created different brillo::Daemon instance. This
creates two brillo::Daemon instances for a short period of time, which
both setup global context (the default message loop).

This patch fixes this situation by deleting the service before creating
a new one.

Bug: 27121855
TEST=`/data/nativetest/metricsd_tests/metricsd_tests` on edison-eng

Change-Id: I3b60cbfcdba77febbfa6104aa0ecad60a29afec5
2016-02-10 11:57:55 -08:00
..
mock metricsd: Make the unit tests pass. 2015-09-02 13:30:48 -07:00
proto metricsd: Rename build_target_id to product_id. 2015-10-06 15:27:37 -07:00
bn_metricsd_impl.cc metricsd: Cleanup on TERM signal. 2016-01-12 10:29:40 -08:00
bn_metricsd_impl.h metricsd: Cleanup on TERM signal. 2016-01-12 10:29:40 -08:00
crash_counters.cc metricsd: Log over binder. 2015-12-03 17:01:27 -08:00
crash_counters.h metricsd: Log over binder. 2015-12-03 17:01:27 -08: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: Add more assert clause. 2016-01-22 13:16:30 -08:00
metrics_log.h metricsd: Persist the metrics to disk periodically. 2016-01-12 15:54:11 -08:00
metrics_log_base.cc Use GetBuildTime from libchrome instead of __DATE__ 2015-10-29 13:02:42 -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
metricsd_service_runner.cc metricsd: Create a brillo::MessageLoop. 2016-02-04 13:56:38 -08:00
metricsd_service_runner.h metricsd: Create a brillo::MessageLoop. 2016-02-04 13:56:38 -08:00
sender.h metricsd: Relicense as Apache 2. 2015-08-10 15:57:47 -07:00
sender_http.cc system/core: Rename "chromeos" -> "brillo" in include paths and namespaces 2015-10-13 15:29:24 -07:00
sender_http.h core: Rename libchromeos into libbrillo 2015-10-27 11:46:37 -07:00
system_profile_cache.cc metricsd: Add more assert clause. 2016-01-22 13:16:30 -08:00
system_profile_cache.h metricsd: Replace scoped_ptr with unique_ptr. 2015-12-22 09:18:04 -08: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 metrics on shutdown. 2016-01-19 14:04:25 -08:00
upload_service.h metricsd: Persist the metrics to disk periodically. 2016-01-12 15:54:11 -08:00
upload_service_test.cc Fix UploadService unittests. 2016-02-10 11:57:55 -08:00