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

Side by Side Diff: tools/telemetry/telemetry/core/timeline/model_unittest.py

Issue 19772005: [telemetry] Timeline model cleanups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix parenting Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 unittest 5 import unittest
6 6
7 from telemetry.core.timeline.event import TimelineEvent
8 from telemetry.core.timeline.model import TimelineModel
9
10 class TimelineModelUnittest(unittest.TestCase): 7 class TimelineModelUnittest(unittest.TestCase):
11 def testTimelineEventsOfType(self): 8 pass
12 timeline_model = TimelineModel()
13 a = TimelineEvent('a', 0, 10)
14 b = TimelineEvent('b', 11, 10)
15 timeline_model.AddEvent(a)
16 timeline_model.AddEvent(b)
17 timeline_model.DidFinishRecording()
18 self.assertEquals(1, len(timeline_model.GetAllEventsOfName('a')))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698