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

Side by Side Diff: tools/telemetry/telemetry/user_story/user_story_set.py

Issue 752883002: Revert of [Telemetry] Introduce shared_user_story_state for real. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 from telemetry import user_story as user_story_module 5 from telemetry import user_story as user_story_module
6 6
7 7
8 class UserStorySet(object): 8 class UserStorySet(object):
9 def __init__(self): 9 def __init__(self):
10 self.user_stories = [] 10 self.user_stories = []
(...skipping 16 matching lines...) Expand all
27 """ Return a string explaining in human-understandable terms what this 27 """ Return a string explaining in human-understandable terms what this
28 user story represents. 28 user story represents.
29 Note that this should be a classmethod so benchmark_runner script can 29 Note that this should be a classmethod so benchmark_runner script can
30 display user stories' names along their descriptions in the list commmand. 30 display user stories' names along their descriptions in the list commmand.
31 """ 31 """
32 if cls.__doc__: 32 if cls.__doc__:
33 return cls.__doc__.splitlines()[0] 33 return cls.__doc__.splitlines()[0]
34 else: 34 else:
35 return '' 35 return ''
36 36
37 def ShuffleAndFilterUserStorySet(self, finder_options):
38 pass
39
40 def __iter__(self): 37 def __iter__(self):
41 return self.user_stories.__iter__() 38 return self.user_stories.__iter__()
42 39
43 def __len__(self): 40 def __len__(self):
44 return len(self.user_stories) 41 return len(self.user_stories)
45 42
46 def __getitem__(self, key): 43 def __getitem__(self, key):
47 return self.user_stories[key] 44 return self.user_stories[key]
48 45
49 def __setitem__(self, key, value): 46 def __setitem__(self, key, value):
50 self.user_stories[key] = value 47 self.user_stories[key] = value
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698