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

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

Issue 555973002: Elide the "size" property from a unit test -- platform specific. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 EXPECT_STREQ( 577 EXPECT_STREQ(
578 "{\"type\":\"Sentinel\",\"id\":\"objects\\/expired\"," 578 "{\"type\":\"Sentinel\",\"id\":\"objects\\/expired\","
579 "\"valueAsString\":\"<expired>\"}", 579 "\"valueAsString\":\"<expired>\"}",
580 handler.msg()); 580 handler.msg());
581 581
582 // bool 582 // bool
583 service_msg = Eval(lib, "[0, port, ['objects', 'bool-true'], [], []]"); 583 service_msg = Eval(lib, "[0, port, ['objects', 'bool-true'], [], []]");
584 Service::HandleIsolateMessage(isolate, service_msg); 584 Service::HandleIsolateMessage(isolate, service_msg);
585 handler.HandleNextMessage(); 585 handler.HandleNextMessage();
586 handler.filterMsg("_vmName"); 586 handler.filterMsg("_vmName");
587 handler.filterMsg("size");
587 EXPECT_STREQ( 588 EXPECT_STREQ(
588 "{\"type\":\"bool\"," 589 "{\"type\":\"bool\","
589 "\"class\":{\"type\":\"@Class\",\"id\":\"classes\\/46\"," 590 "\"class\":{\"type\":\"@Class\",\"id\":\"classes\\/46\","
590 "\"name\":\"bool\"}," 591 "\"name\":\"bool\"},"
591 "\"size\":8,\"fields\":[],\"id\":\"objects\\/bool-true\"," 592 "\"fields\":[],\"id\":\"objects\\/bool-true\","
592 "\"valueAsString\":\"true\"}", 593 "\"valueAsString\":\"true\"}",
593 handler.msg()); 594 handler.msg());
594 595
595 // int 596 // int
596 service_msg = Eval(lib, "[0, port, ['objects', 'int-123'], [], []]"); 597 service_msg = Eval(lib, "[0, port, ['objects', 'int-123'], [], []]");
597 Service::HandleIsolateMessage(isolate, service_msg); 598 Service::HandleIsolateMessage(isolate, service_msg);
598 handler.HandleNextMessage(); 599 handler.HandleNextMessage();
599 handler.filterMsg("_vmName"); 600 handler.filterMsg("_vmName");
600 EXPECT_STREQ( 601 EXPECT_STREQ(
601 "{\"type\":\"int\",\"_vmType\":\"Smi\"," 602 "{\"type\":\"int\",\"_vmType\":\"Smi\","
(...skipping 1592 matching lines...) Expand 10 before | Expand all | Expand 10 after
2194 service_msg = Eval(lib, "[0, port, ['profile'], ['tags'], ['hidden']]"); 2195 service_msg = Eval(lib, "[0, port, ['profile'], ['tags'], ['hidden']]");
2195 Service::HandleIsolateMessage(isolate, service_msg); 2196 Service::HandleIsolateMessage(isolate, service_msg);
2196 handler.HandleNextMessage(); 2197 handler.HandleNextMessage();
2197 // Expect error. 2198 // Expect error.
2198 EXPECT_SUBSTRING("\"type\":\"Error\"", handler.msg()); 2199 EXPECT_SUBSTRING("\"type\":\"Error\"", handler.msg());
2199 } 2200 }
2200 2201
2201 #endif // !defined(TARGET_ARCH_ARM64) 2202 #endif // !defined(TARGET_ARCH_ARM64)
2202 2203
2203 } // namespace dart 2204 } // 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