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

Side by Side Diff: tools/telemetry/telemetry/timeline_model_unittest.py

Issue 12278015: [Telemetry] Reorganize everything. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add shebangs. Created 7 years, 10 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
(Empty)
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
3 # found in the LICENSE file.
4
5 import unittest
6
7 from telemetry.timeline_event import TimelineEvent
8 from telemetry.timeline_model import TimelineModel
9
10 class TimelineModelUnittest(unittest.TestCase):
11 def testTimelineEventsOfType(self):
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.GetAllOfName('a')))
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/timeline_model.py ('k') | tools/telemetry/telemetry/trace_event_importer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698