OLD | NEW |
(Empty) | |
| 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_LIBRARY_MOCK_H_ |
| 6 #define METRICS_LIBRARY_MOCK_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "metrics_library.h" |
| 11 |
| 12 #include <gmock/gmock.h> |
| 13 |
| 14 class MetricsLibraryMock : public MetricsLibraryInterface { |
| 15 public: |
| 16 MOCK_METHOD0(Init, void()); |
| 17 MOCK_METHOD5(SendToUMA, bool(const std::string& name, int sample, |
| 18 int min, int max, int nbuckets)); |
| 19 MOCK_METHOD3(SendEnumToUMA, bool(const std::string& name, int sample, |
| 20 int max)); |
| 21 }; |
| 22 |
| 23 #endif /* METRICS_LIBRARY_MOCK_H_ */ |
OLD | NEW |