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

Unified Diff: tracing/tracing/core/test_utils.html

Issue 2016213002: Introduce base classes for blame contexts (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Remove isTracedByRenderer from blame_context_test.html Created 4 years, 7 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
« no previous file with comments | « tracing/trace_viewer.gypi ('k') | tracing/tracing/extras/chrome/blame_context/blame_context.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/core/test_utils.html
diff --git a/tracing/tracing/core/test_utils.html b/tracing/tracing/core/test_utils.html
index db9a59c7fcd5bd48edcdb93f1ac5ceb0802cf836..a21fb014904273277503da5bd7050716a8399d76 100644
--- a/tracing/tracing/core/test_utils.html
+++ b/tracing/tracing/core/test_utils.html
@@ -9,6 +9,7 @@ found in the LICENSE file.
<link rel="import" href="/tracing/importer/import.html">
<link rel="import" href="/tracing/model/counter.html">
<link rel="import" href="/tracing/model/model.html">
+<link rel="import" href="/tracing/model/scoped_id.html">
<link rel="import" href="/tracing/model/slice.html">
<link rel="import" href="/tracing/model/slice_group.html">
<link rel="import" href="/tracing/model/stack_frame.html">
@@ -268,6 +269,17 @@ tr.exportTo('tr.c', function() {
return frame;
};
+ TestUtils.newSnapshot = function(model, options) {
+ return model.getOrCreateProcess(options.pid || 1).objects.addSnapshot(
+ new tr.model.ScopedId(options.scope || tr.model.OBJECT_DEFAULT_SCOPE,
+ options.id || '0x1'),
+ options.category || 'cat',
+ options.name || 'A',
+ options.ts || 0,
+ options.args || {},
+ options.baseTypeName);
+ };
+
TestUtils.findSliceNamed = function(slices, name) {
if (slices instanceof tr.model.SliceGroup)
slices = slices.slices;
« no previous file with comments | « tracing/trace_viewer.gypi ('k') | tracing/tracing/extras/chrome/blame_context/blame_context.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698