Darin Petkov | f1e85e4 | 2010-06-10 15:59:53 -0700 | [diff] [blame] | 1 | // 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 | #ifndef METRICS_COUNTER_MOCK_H_ |
| 6 | #define METRICS_COUNTER_MOCK_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <gmock/gmock.h> |
| 11 | |
| 12 | #include "counter.h" |
| 13 | |
| 14 | namespace chromeos_metrics { |
| 15 | |
| 16 | class TaggedCounterMock : public TaggedCounterInterface { |
| 17 | public: |
| 18 | MOCK_METHOD3(Init, void(const char* filename, |
| 19 | Reporter reporter, void* reporter_handle)); |
| 20 | MOCK_METHOD2(Update, void(int tag, int count)); |
| 21 | MOCK_METHOD0(Flush, void()); |
| 22 | }; |
| 23 | |
| 24 | } // namespace chromeos_metrics |
| 25 | |
| 26 | #endif // METRICS_COUNTER_MOCK_H_ |