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

Side by Side Diff: runtime/vm/service_test.cc

Issue 340843003: Remove timers from Service_Isolate test (Closed) Base URL: https://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 | « no previous file | 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/globals.h" 5 #include "platform/globals.h"
6 6
7 #include "include/dart_debugger_api.h" 7 #include "include/dart_debugger_api.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/debugger.h" 10 #include "vm/debugger.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 reader.GetDecodedValueChars(buffer, kBufferSize); 201 reader.GetDecodedValueChars(buffer, kBufferSize);
202 EXPECT_STREQ("Isolate", buffer); 202 EXPECT_STREQ("Isolate", buffer);
203 203
204 // id 204 // id
205 EXPECT(reader.Seek("id")); 205 EXPECT(reader.Seek("id"));
206 EXPECT_EQ(reader.Type(), JSONReader::kString); 206 EXPECT_EQ(reader.Type(), JSONReader::kString);
207 reader.GetDecodedValueChars(buffer, kBufferSize); 207 reader.GetDecodedValueChars(buffer, kBufferSize);
208 EXPECT_SUBSTRING("isolates/", buffer); 208 EXPECT_SUBSTRING("isolates/", buffer);
209 209
210 // heap 210 // heap
211 EXPECT(reader.Seek("heap")); 211 EXPECT(reader.Seek("heaps"));
212 EXPECT_EQ(reader.Type(), JSONReader::kObject); 212 EXPECT_EQ(reader.Type(), JSONReader::kObject);
213
214 // timers
215 EXPECT(reader.Seek("timers"));
216 EXPECT_EQ(reader.Type(), JSONReader::kArray);
217 } 213 }
218 214
219 215
220 TEST_CASE(Service_StackTrace) { 216 TEST_CASE(Service_StackTrace) {
221 // TODO(turnidge): Extend this test to cover a non-trivial stack trace. 217 // TODO(turnidge): Extend this test to cover a non-trivial stack trace.
222 const char* kScript = 218 const char* kScript =
223 "var port;\n" // Set to our mock port by C++. 219 "var port;\n" // Set to our mock port by C++.
224 "\n" 220 "\n"
225 "main() {\n" 221 "main() {\n"
226 "}"; 222 "}";
(...skipping 1282 matching lines...) Expand 10 before | Expand all | Expand 10 after
1509 service_msg = Eval(h_lib, "[0, port, ['profile'], ['tags'], ['hidden']]"); 1505 service_msg = Eval(h_lib, "[0, port, ['profile'], ['tags'], ['hidden']]");
1510 Service::HandleIsolateMessage(isolate, service_msg); 1506 Service::HandleIsolateMessage(isolate, service_msg);
1511 handler.HandleNextMessage(); 1507 handler.HandleNextMessage();
1512 // Expect error. 1508 // Expect error.
1513 EXPECT_SUBSTRING("\"type\":\"Error\"", handler.msg()); 1509 EXPECT_SUBSTRING("\"type\":\"Error\"", handler.msg());
1514 } 1510 }
1515 1511
1516 #endif // !defined(TARGET_ARCH_ARM64) 1512 #endif // !defined(TARGET_ARCH_ARM64)
1517 1513
1518 } // namespace dart 1514 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698