blob: ebc972cae4b897f193d80ee4e0b9897f887c7727 [file] [log] [blame]
Darin Petkov65b01462010-04-14 13:32:20 -07001// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5/*
6 * metrics_library.h
7 *
8 * Created on: Dec 1, 2009
9 * Author: sosa
10 */
11
12#ifndef METRICS_LIBRARY_H_
13#define METRICS_LIBRARY_H_
14
Darin Petkov65b01462010-04-14 13:32:20 -070015#include <string>
16
17// TODO(sosa@chromium.org): Add testing for send methods
18
19// Library used to send metrics both Autotest and Chrome
20class MetricsLibrary {
21 public:
Darin Petkov4fcb2ac2010-04-15 16:40:23 -070022 // Sends histogram data to Chrome and returns true on success.
23 static bool SendToChrome(std::string name, int value);
24 // Sends to Autotest and returns true on success.
25 static bool SendToAutotest(std::string name, int value);
Darin Petkov65b01462010-04-14 13:32:20 -070026};
27
28#endif /* METRICS_LIBRARY_H_ */