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

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

Issue 270503007: Eliminate unused url mapping parameter in dartutils (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/dart_api_impl_test.cc ('k') | runtime/vm/debugger_test.cc » ('j') | 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 // TODO(zra): Remove when tests are ready to enable. 5 // TODO(zra): Remove when tests are ready to enable.
6 #include "platform/globals.h" 6 #include "platform/globals.h"
7 #if !defined(TARGET_ARCH_ARM64) 7 #if !defined(TARGET_ARCH_ARM64)
8 8
9 #include "include/dart_debugger_api.h" 9 #include "include/dart_debugger_api.h"
10 #include "include/dart_mirrors_api.h" 10 #include "include/dart_mirrors_api.h"
(...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after
1925 loc.token_pos = -1; 1925 loc.token_pos = -1;
1926 Dart_Handle res = Dart_GetClosureInfo(clo, &name, &sig, &loc); 1926 Dart_Handle res = Dart_GetClosureInfo(clo, &name, &sig, &loc);
1927 EXPECT_VALID(res); 1927 EXPECT_VALID(res);
1928 EXPECT_TRUE(res); 1928 EXPECT_TRUE(res);
1929 EXPECT_VALID(name); 1929 EXPECT_VALID(name);
1930 EXPECT(Dart_IsString(name)); 1930 EXPECT(Dart_IsString(name));
1931 EXPECT_STREQ("foo", ToCString(name)); 1931 EXPECT_STREQ("foo", ToCString(name));
1932 EXPECT(Dart_IsString(sig)); 1932 EXPECT(Dart_IsString(sig));
1933 EXPECT_STREQ("() => void", ToCString(sig)); 1933 EXPECT_STREQ("() => void", ToCString(sig));
1934 EXPECT(Dart_IsString(loc.script_url)); 1934 EXPECT(Dart_IsString(loc.script_url));
1935 EXPECT_STREQ("dart:test-lib", ToCString(loc.script_url)); 1935 EXPECT_STREQ("test-lib", ToCString(loc.script_url));
1936 EXPECT_EQ(0, loc.token_pos); 1936 EXPECT_EQ(0, loc.token_pos);
1937 EXPECT(loc.library_id > 0); 1937 EXPECT(loc.library_id > 0);
1938 } 1938 }
1939 1939
1940 1940
1941 TEST_CASE(Debug_GetSupertype) { 1941 TEST_CASE(Debug_GetSupertype) {
1942 const char* kScriptChars = 1942 const char* kScriptChars =
1943 "class Test {\n" 1943 "class Test {\n"
1944 "}\n" 1944 "}\n"
1945 "class Test1 extends Test {\n" 1945 "class Test1 extends Test {\n"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
2139 " null, 5, 17, 5, 18, 9, 19, 12," 2139 " null, 5, 17, 5, 18, 9, 19, 12,"
2140 " null, 6, 21, 1," 2140 " null, 6, 21, 1,"
2141 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," 2141 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8,"
2142 " null, 9, 29, 1]", 2142 " null, 9, 29, 1]",
2143 tokens_cstr); 2143 tokens_cstr);
2144 } 2144 }
2145 2145
2146 } // namespace dart 2146 } // namespace dart
2147 2147
2148 #endif // !defined(TARGET_ARCH_ARM64) 2148 #endif // !defined(TARGET_ARCH_ARM64)
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/debugger_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698