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

Unified Diff: tools/telemetry/telemetry/core/timeline/event_unittest.py

Issue 332213003: Move telemetry/core/timeline and timeline_data to telemetry/timeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/core/timeline/event_unittest.py
diff --git a/tools/telemetry/telemetry/core/timeline/event_unittest.py b/tools/telemetry/telemetry/core/timeline/event_unittest.py
deleted file mode 100644
index 44aac65e89cea3b252426daf82d289f07c7d994d..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/core/timeline/event_unittest.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 2013 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import unittest
-
-from telemetry.core.timeline import event
-
-
-class TimelineEventTest(unittest.TestCase):
- def testHasThreadTimestamps(self):
- # No thread_start and no thread_duration
- event_1 = event.TimelineEvent('test', 'foo', 0, 10)
- # Has thread_start but no thread_duration
- event_2 = event.TimelineEvent('test', 'foo', 0, 10, 2)
- # Has thread_duration but no thread_start
- event_3 = event.TimelineEvent('test', 'foo', 0, 10, None, 4)
- # Has thread_start and thread_duration
- event_4 = event.TimelineEvent('test', 'foo', 0, 10, 2, 4)
-
- self.assertFalse(event_1.has_thread_timestamps)
- self.assertFalse(event_2.has_thread_timestamps)
- self.assertFalse(event_3.has_thread_timestamps)
- self.assertTrue(event_4.has_thread_timestamps)
« no previous file with comments | « tools/telemetry/telemetry/core/timeline/event_container.py ('k') | tools/telemetry/telemetry/core/timeline/flow_event.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698