| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |