blob: 129fda3c8d84f8497dedb856caa428049081eb98 [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));
Darin Petkov58f0b6d2012-06-12 12:52:30 +020020 MOCK_METHOD2(NotifyServiceStateChanged,
21 void(const Service *service, Service::ConnectState new_state));
Thieu Le85e050b2012-03-13 15:04:38 -070022 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 Lea20cbc22012-01-09 22:01:43 +000026
Thieu Le3426c8f2012-01-11 17:35:11 -080027 private:
28 DISALLOW_COPY_AND_ASSIGN(MockMetrics);
29};
30
31}
32
33#endif // SHILL_MOCK_METRICS_