| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import mock | 5 import mock |
| 6 | 6 |
| 7 from infra_libs.ts_mon import interface | 7 from infra_libs.ts_mon import interface |
| 8 from infra_libs.ts_mon import monitors | 8 from infra_libs.ts_mon import monitors |
| 9 from infra_libs.ts_mon import targets | 9 from infra_libs.ts_mon.gae import targets |
| 10 | 10 |
| 11 | 11 |
| 12 class MockState(interface.State): # pragma: no cover | 12 class MockState(interface.State): # pragma: no cover |
| 13 | 13 |
| 14 def __init__(self): | 14 def __init__(self): |
| 15 self.global_monitor = None | 15 self.global_monitor = None |
| 16 self.default_target = None | 16 self.default_target = None |
| 17 self.flush_mode = None | 17 self.flush_mode = None |
| 18 self.flush_thread = None | 18 self.flush_thread = None |
| 19 self.metrics = set() | 19 self.metrics = set() |
| (...skipping 23 matching lines...) Expand all Loading... |
| 43 pass | 43 pass |
| 44 | 44 |
| 45 def flush(self): | 45 def flush(self): |
| 46 pass | 46 pass |
| 47 | 47 |
| 48 def register(self, metric): | 48 def register(self, metric): |
| 49 pass | 49 pass |
| 50 | 50 |
| 51 def unregister(self, metric): | 51 def unregister(self, metric): |
| 52 pass | 52 pass |
| OLD | NEW |