1 #pylint: disable-msg=C0111 2 3 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 4 # Use of this source code is governed by a BSD-style license that can be 5 # found in the LICENSE file. 6 7 import stats_es_mock 8 9 10 class Connection: 11 """Mock class for statsd.Connection""" 12 def __init__(self, host, port): 13 pass 14 15 16 @classmethod 17 def set_defaults(cls, host, port): 18 pass 19 20 21 class Average(stats_es_mock.mock_class_base): 22 """Mock class for statsd.Average.""" 23 24 25 class Counter(stats_es_mock.mock_class_base): 26 """Mock class for statsd.Counter.""" 27 28 29 class Gauge(stats_es_mock.mock_class_base): 30 """Mock class for statsd.Gauge.""" 31 32 33 class Timer(stats_es_mock.mock_class_base): 34 """Mock class for statsd.Timer.""" 35 36 37 def __enter__(self): 38 pass 39 40 41 def __exit__(self): 42 pass 43 44 45 class Raw(stats_es_mock.mock_class_base): 46 """Mock class for statsd.Raw.""" 47