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

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

Issue 12732007: Remove Dart_GetScriptSource as it is not used anywhere. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/debugger_api_impl.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "platform/assert.h" 6 #include "platform/assert.h"
7 #include "vm/dart_api_impl.h" 7 #include "vm/dart_api_impl.h"
8 #include "vm/thread.h" 8 #include "vm/thread.h"
9 #include "vm/unit_test.h" 9 #include "vm/unit_test.h"
10 10
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 EXPECT(num_scripts >= 0); 1017 EXPECT(num_scripts >= 0);
1018 for (int i = 0; i < num_scripts; i++) { 1018 for (int i = 0; i < num_scripts; i++) {
1019 Dart_Handle script_url = Dart_ListGetAt(scripts, i); 1019 Dart_Handle script_url = Dart_ListGetAt(scripts, i);
1020 char const* chars; 1020 char const* chars;
1021 Dart_StringToCString(script_url, &chars); 1021 Dart_StringToCString(script_url, &chars);
1022 OS::Print(" script %d: '%s'\n", i + 1, chars); 1022 OS::Print(" script %d: '%s'\n", i + 1, chars);
1023 } 1023 }
1024 } 1024 }
1025 1025
1026 Dart_Handle lib_url = NewString(TestCase::url()); 1026 Dart_Handle lib_url = NewString(TestCase::url());
1027 Dart_Handle source = Dart_GetScriptSource(lib_url, lib_url); 1027 Dart_Handle source = Dart_ScriptGetSource((num_libs - 1), lib_url);
1028 EXPECT(Dart_IsString(source)); 1028 EXPECT(Dart_IsString(source));
1029 char const* source_chars; 1029 char const* source_chars;
1030 Dart_StringToCString(source, &source_chars); 1030 Dart_StringToCString(source, &source_chars);
1031 OS::Print("\n=== source: ===\n%s", source_chars); 1031 OS::Print("\n=== source: ===\n%s", source_chars);
1032 EXPECT_STREQ(kScriptChars, source_chars); 1032 EXPECT_STREQ(kScriptChars, source_chars);
1033 } 1033 }
1034 1034
1035 1035
1036 TEST_CASE(GetLibraryURLs) { 1036 TEST_CASE(GetLibraryURLs) {
1037 const char* kScriptChars = 1037 const char* kScriptChars =
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 1545
1546 Dart_Handle retval = Invoke("main"); 1546 Dart_Handle retval = Invoke("main");
1547 EXPECT(Dart_IsError(retval)); 1547 EXPECT(Dart_IsError(retval));
1548 EXPECT(Dart_IsUnhandledExceptionError(retval)); 1548 EXPECT(Dart_IsUnhandledExceptionError(retval));
1549 EXPECT_EQ(1, breakpoint_hit_counter); 1549 EXPECT_EQ(1, breakpoint_hit_counter);
1550 } 1550 }
1551 1551
1552 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). 1552 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64).
1553 1553
1554 } // namespace dart 1554 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/debugger_api_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698