Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: infra_libs/ts_mon/test/stubs.py

Issue 1260293009: make version of ts_mon compatible with appengine (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: add noncululativedistribution metric to ts_mon imports Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « infra_libs/ts_mon/test/standard_metrics_test.py ('k') | infra_libs/ts_mon/test/targets_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.common 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
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
OLDNEW
« no previous file with comments | « infra_libs/ts_mon/test/standard_metrics_test.py ('k') | infra_libs/ts_mon/test/targets_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698