Add metrics library tests. Some metrics daemon API cleanup.

Refactor the metrics daemon API a little so that we don't need
to link in libmetrics into the daemon test binary.

Review URL: http://codereview.chromium.org/2079007
8 files changed
tree: ff55b58daa739b9d6098362560cbfa4512ba4ef2
  1. metrics/