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: runtime/vm/trace_buffer_test.cc

Issue 328663008: Add support to trace warnings in TraceBuffer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/trace_buffer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/globals.h" 6 #include "vm/globals.h"
7 #include "vm/json_stream.h" 7 #include "vm/json_stream.h"
8 #include "vm/trace_buffer.h" 8 #include "vm/trace_buffer.h"
9 #include "vm/unit_test.h" 9 #include "vm/unit_test.h"
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 TraceBuffer* trace_buffer = isolate->trace_buffer(); 96 TraceBuffer* trace_buffer = isolate->trace_buffer();
97 trace_buffer->TraceF("foo %d %s", 99, "bar"); 97 trace_buffer->TraceF("foo %d %s", 99, "bar");
98 { 98 {
99 JSONStream js; 99 JSONStream js;
100 trace_buffer->PrintToJSONStream(&js); 100 trace_buffer->PrintToJSONStream(&js);
101 EXPECT_SUBSTRING("foo 99 bar", js.ToCString()); 101 EXPECT_SUBSTRING("foo 99 bar", js.ToCString());
102 } 102 }
103 delete trace_buffer; 103 delete trace_buffer;
104 } 104 }
105 105
106
107 } // namespace dart 106 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/trace_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698