blob: 64b5132235e51157981c19be2fcfb912f9296091 [file] [log] [blame]
Thieu Le3426c8f2012-01-11 17:35:11 -08001// 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 Lea20cbc22012-01-09 22:01:43 +00008#include <gmock/gmock.h>
9
Thieu Le3426c8f2012-01-11 17:35:11 -080010#include "shill/metrics.h"
11
12namespace shill {
13
14class MockMetrics : public Metrics {
15 public:
16 MockMetrics();
17 virtual ~MockMetrics();
18
Thieu Lea20cbc22012-01-09 22:01:43 +000019 MOCK_METHOD1(NotifyDefaultServiceChanged, void(const Service *service));
Thieu Le85e050b2012-03-13 15:04:38 -070020 MOCK_METHOD3(SendEnumToUMA, bool(const std::string &name, int sample,
21 int max));
22 MOCK_METHOD5(SendToUMA, bool(const std::string &name, int sample, int min,
23 int max, int num_buckets));
Thieu Lea20cbc22012-01-09 22:01:43 +000024
Thieu Le3426c8f2012-01-11 17:35:11 -080025 private:
26 DISALLOW_COPY_AND_ASSIGN(MockMetrics);
27};
28
29}
30
31#endif // SHILL_MOCK_METRICS_