blob: 958936e975e347e4df2dc7d1bb4a53d7985a49c1 [file] [log] [blame]
Andrew0a534ed2020-05-06 09:59:17 -07001// Copyright 2020 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#ifndef DLCSERVICE_MOCK_METRICS_H_
6#define DLCSERVICE_MOCK_METRICS_H_
7
8#include <gmock/gmock.h>
9
10#include "dlcservice/metrics.h"
11
12namespace dlcservice {
13
14class MockMetrics : public Metrics {
15 public:
16 MockMetrics() = default;
17
18 MOCK_METHOD(void,
19 SendInstallResult,
Andrew2eb95542020-06-24 14:51:49 -070020 (metrics::InstallResult result),
21 (override));
22
23 MOCK_METHOD(void,
24 SendUninstallResult,
25 (metrics::UninstallResult result),
Andrew0a534ed2020-05-06 09:59:17 -070026 (override));
27
28 private:
29 MockMetrics(const MockMetrics&) = delete;
30 MockMetrics& operator=(const MockMetrics&) = delete;
31};
32
33} // namespace dlcservice
34
35#endif // DLCSERVICE_MOCK_METRICS_H_