blob: 40ac679862a9f26aa2af655428896bdc2db57fd8 [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
8#include "shill/metrics.h"
9
Wade Guthrie5a4e2ef2013-04-30 12:51:39 -070010#include <gmock/gmock.h>
11
Thieu Le3426c8f2012-01-11 17:35:11 -080012namespace shill {
13
14class MockMetrics : public Metrics {
15 public:
Wade Guthrie5a4e2ef2013-04-30 12:51:39 -070016 explicit MockMetrics(EventDispatcher *dispatcher);
Thieu Le3426c8f2012-01-11 17:35:11 -080017 virtual ~MockMetrics();
18
Thieu Le6c1e3bb2013-02-06 15:20:35 -080019 MOCK_METHOD0(Start, void());
20 MOCK_METHOD0(Stop, void());
Wade Guthrie5a4e2ef2013-04-30 12:51:39 -070021 MOCK_METHOD1(NotifyDeviceScanFinished, void(int interface_index));
Thieu Lea20cbc22012-01-09 22:01:43 +000022 MOCK_METHOD1(NotifyDefaultServiceChanged, void(const Service *service));
Darin Petkov58f0b6d2012-06-12 12:52:30 +020023 MOCK_METHOD2(NotifyServiceStateChanged,
24 void(const Service *service, Service::ConnectState new_state));
Thieu Le5133b712013-02-19 14:47:21 -080025 MOCK_METHOD0(NotifyCorruptedProfile, void());
Thieu Le85e050b2012-03-13 15:04:38 -070026 MOCK_METHOD3(SendEnumToUMA, bool(const std::string &name, int sample,
27 int max));
28 MOCK_METHOD5(SendToUMA, bool(const std::string &name, int sample, int min,
29 int max, int num_buckets));
Thieu Lea20cbc22012-01-09 22:01:43 +000030
Thieu Le3426c8f2012-01-11 17:35:11 -080031 private:
32 DISALLOW_COPY_AND_ASSIGN(MockMetrics);
33};
34
Wade Guthrie5a4e2ef2013-04-30 12:51:39 -070035} // namespace shill
Thieu Le3426c8f2012-01-11 17:35:11 -080036
37#endif // SHILL_MOCK_METRICS_