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

Side by Side Diff: runtime/vm/json_stream.h

Issue 24255013: - Write the coverage data to a file instead of printing to stdout. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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
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 #ifndef VM_JSON_STREAM_H_ 5 #ifndef VM_JSON_STREAM_H_
6 #define VM_JSON_STREAM_H_ 6 #define VM_JSON_STREAM_H_
7 7
8 #include "platform/json.h" 8 #include "platform/json.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 10
11 namespace dart { 11 namespace dart {
12 12
13 class Object; 13 class Object;
14 class JSONObject; 14 class JSONObject;
15 class JSONArray; 15 class JSONArray;
16 16
17 class JSONStream : ValueObject { 17 class JSONStream : ValueObject {
18 public: 18 public:
19 explicit JSONStream(intptr_t buf_size = 256); 19 explicit JSONStream(intptr_t buf_size = 256);
20 ~JSONStream(); 20 ~JSONStream();
21 21
22 TextBuffer* buffer() { return &buffer_; }
siva 2013/09/20 19:51:45 TextBuffer* buffer() const { return &buffer_; }
Ivan Posva 2013/09/20 21:37:07 Unfortunately that is not possible because the emb
22 const char* ToCString() { return buffer_.buf(); } 23 const char* ToCString() { return buffer_.buf(); }
siva 2013/09/20 19:51:45 Ditto here.
Ivan Posva 2013/09/20 21:37:07 Ditto here.
23 24
24 void SetArguments(const char** arguments, intptr_t num_arguments); 25 void SetArguments(const char** arguments, intptr_t num_arguments);
25 void SetOptions(const char** option_keys, const char** option_values, 26 void SetOptions(const char** option_keys, const char** option_values,
26 intptr_t num_options); 27 intptr_t num_options);
27 28
28 intptr_t num_arguments() const { return num_arguments_; } 29 intptr_t num_arguments() const { return num_arguments_; }
29 const char* GetArgument(intptr_t i) const { 30 const char* GetArgument(intptr_t i) const {
30 return arguments_[i]; 31 return arguments_[i];
31 } 32 }
32 intptr_t num_options() const { return num_options_; } 33 intptr_t num_options() const { return num_options_; }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 152
152 friend class JSONObject; 153 friend class JSONObject;
153 154
154 DISALLOW_ALLOCATION(); 155 DISALLOW_ALLOCATION();
155 DISALLOW_COPY_AND_ASSIGN(JSONArray); 156 DISALLOW_COPY_AND_ASSIGN(JSONArray);
156 }; 157 };
157 158
158 } // namespace dart 159 } // namespace dart
159 160
160 #endif // VM_JSON_STREAM_H_ 161 #endif // VM_JSON_STREAM_H_
OLDNEW
« runtime/vm/coverage.cc ('K') | « runtime/vm/isolate.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698