blob: cdf5b15a615e8aad6fccd190a5f0220e7b41a170 [file] [log] [blame]
// Copyright 2021 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IIOSERVICE_DAEMON_SENSOR_METRICS_MOCK_H_
#define IIOSERVICE_DAEMON_SENSOR_METRICS_MOCK_H_
#include "iioservice/daemon/sensor_metrics.h"
#include <memory>
#include <metrics/metrics_library_mock.h>
namespace iioservice {
class IIOSERVICE_EXPORT SensorMetricsMock : public SensorMetrics {
public:
// Creates the global SensorMetricsMock instance for testing.
static MetricsLibraryMock* InitializeForTesting();
private:
explicit SensorMetricsMock(
std::unique_ptr<MetricsLibraryInterface> metrics_lib);
};
} // namespace iioservice
#endif // IIOSERVICE_DAEMON_SENSOR_METRICS_MOCK_H_