Thieu Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 1 | // Copyright (c) 2012 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 SHILL_MOCK_METRICS_ |
| 6 | #define SHILL_MOCK_METRICS_ |
| 7 | |
Thieu Le | a20cbc2 | 2012-01-09 22:01:43 +0000 | [diff] [blame] | 8 | #include <gmock/gmock.h> |
| 9 | |
Thieu Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 10 | #include "shill/metrics.h" |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class MockMetrics : public Metrics { |
| 15 | public: |
| 16 | MockMetrics(); |
| 17 | virtual ~MockMetrics(); |
| 18 | |
Thieu Le | a20cbc2 | 2012-01-09 22:01:43 +0000 | [diff] [blame] | 19 | MOCK_METHOD1(NotifyDefaultServiceChanged, void(const Service *service)); |
Darin Petkov | 58f0b6d | 2012-06-12 12:52:30 +0200 | [diff] [blame] | 20 | MOCK_METHOD2(NotifyServiceStateChanged, |
| 21 | void(const Service *service, Service::ConnectState new_state)); |
Thieu Le | 85e050b | 2012-03-13 15:04:38 -0700 | [diff] [blame] | 22 | MOCK_METHOD3(SendEnumToUMA, bool(const std::string &name, int sample, |
| 23 | int max)); |
| 24 | MOCK_METHOD5(SendToUMA, bool(const std::string &name, int sample, int min, |
| 25 | int max, int num_buckets)); |
Thieu Le | a20cbc2 | 2012-01-09 22:01:43 +0000 | [diff] [blame] | 26 | |
Thieu Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 27 | private: |
| 28 | DISALLOW_COPY_AND_ASSIGN(MockMetrics); |
| 29 | }; |
| 30 | |
| 31 | } |
| 32 | |
| 33 | #endif // SHILL_MOCK_METRICS_ |