Andrew | 0a534ed | 2020-05-06 09:59:17 -0700 | [diff] [blame] | 1 | // 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 | |
| 12 | namespace dlcservice { |
| 13 | |
| 14 | class MockMetrics : public Metrics { |
| 15 | public: |
| 16 | MockMetrics() = default; |
| 17 | |
| 18 | MOCK_METHOD(void, |
| 19 | SendInstallResult, |
Andrew | 2eb9554 | 2020-06-24 14:51:49 -0700 | [diff] [blame] | 20 | (metrics::InstallResult result), |
| 21 | (override)); |
| 22 | |
| 23 | MOCK_METHOD(void, |
| 24 | SendUninstallResult, |
| 25 | (metrics::UninstallResult result), |
Andrew | 0a534ed | 2020-05-06 09:59:17 -0700 | [diff] [blame] | 26 | (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_ |