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

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

Issue 189583003: Eliminate more implicit getters (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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/parser.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 "include/dart_debugger_api.h" 5 #include "include/dart_debugger_api.h"
6 #include "vm/dart_api_impl.h" 6 #include "vm/dart_api_impl.h"
7 #include "vm/dart_entry.h" 7 #include "vm/dart_entry.h"
8 #include "vm/debugger.h" 8 #include "vm/debugger.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/message_handler.h" 10 #include "vm/message_handler.h"
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 604
605 Instance& service_msg = Instance::Handle(); 605 Instance& service_msg = Instance::Handle();
606 service_msg = Eval(h_lib, "[port, ['coverage'], [], []]"); 606 service_msg = Eval(h_lib, "[port, ['coverage'], [], []]");
607 Service::HandleIsolateMessage(isolate, service_msg); 607 Service::HandleIsolateMessage(isolate, service_msg);
608 handler.HandleNextMessage(); 608 handler.HandleNextMessage();
609 EXPECT_SUBSTRING( 609 EXPECT_SUBSTRING(
610 "{\"source\":\"dart:test-lib\",\"script\":{" 610 "{\"source\":\"dart:test-lib\",\"script\":{"
611 "\"type\":\"@Script\",\"id\":\"scripts\\/dart%3Atest-lib\"," 611 "\"type\":\"@Script\",\"id\":\"scripts\\/dart%3Atest-lib\","
612 "\"name\":\"dart:test-lib\",\"user_name\":\"dart:test-lib\"," 612 "\"name\":\"dart:test-lib\",\"user_name\":\"dart:test-lib\","
613 "\"kind\":\"script\"},\"hits\":" 613 "\"kind\":\"script\"},\"hits\":"
614 "[3,0,3,1,5,1,5,1,5,1,6,1,6,1]}", handler.msg()); 614 "[5,1,6,1]}", handler.msg());
615 } 615 }
616 616
617 617
618 TEST_CASE(Service_AllocationProfile) { 618 TEST_CASE(Service_AllocationProfile) {
619 const char* kScript = 619 const char* kScript =
620 "var port;\n" // Set to our mock port by C++. 620 "var port;\n" // Set to our mock port by C++.
621 "\n" 621 "\n"
622 "var x = 7;\n" 622 "var x = 7;\n"
623 "main() {\n" 623 "main() {\n"
624 " x = x * x;\n" 624 " x = x * x;\n"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 Service::HandleIsolateMessage(isolate, service_msg); 745 Service::HandleIsolateMessage(isolate, service_msg);
746 handler.HandleNextMessage(); 746 handler.HandleNextMessage();
747 EXPECT_STREQ("alpha", handler.msg()); 747 EXPECT_STREQ("alpha", handler.msg());
748 service_msg = Eval(lib, "[port, ['beta'], [], []]"); 748 service_msg = Eval(lib, "[port, ['beta'], [], []]");
749 Service::HandleIsolateMessage(isolate, service_msg); 749 Service::HandleIsolateMessage(isolate, service_msg);
750 handler.HandleNextMessage(); 750 handler.HandleNextMessage();
751 EXPECT_STREQ("beta", handler.msg()); 751 EXPECT_STREQ("beta", handler.msg());
752 } 752 }
753 753
754 } // namespace dart 754 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698