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

Unified Diff: runtime/vm/report_test.cc

Issue 1644793002: Replace intptr_t with TokenDescriptor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/report.cc ('k') | runtime/vm/runtime_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/report_test.cc
diff --git a/runtime/vm/report_test.cc b/runtime/vm/report_test.cc
index 95e469e02c288fb6ef6d44e9b508c3fa6d3702cd..08fbe703faad56cc6c5f4a5b055691fefe20ef0f 100644
--- a/runtime/vm/report_test.cc
+++ b/runtime/vm/report_test.cc
@@ -19,7 +19,7 @@ TEST_CASE(TraceJSWarning) {
Script::New(url, source, RawScript::kEvaluateTag));
script.Tokenize(String::Handle(String::New("")));
{
- const intptr_t token_pos = 0;
+ const TokenPosition token_pos = TokenPosition(0);
const char* message = "High Voltage";
Report::MessageF(Report::kJSWarning,
script, token_pos, Report::AtLocation, "%s", message);
@@ -44,7 +44,7 @@ TEST_CASE(TraceJSWarning) {
}
}
{
- const intptr_t token_pos = 1;
+ const TokenPosition token_pos = TokenPosition(1);
const char* message = "Low Voltage";
Report::MessageF(Report::kJSWarning,
script, token_pos, Report::AtLocation, "%s", message);
« no previous file with comments | « runtime/vm/report.cc ('k') | runtime/vm/runtime_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698