Index: runtime/vm/debugger_test.cc |
diff --git a/runtime/vm/debugger_test.cc b/runtime/vm/debugger_test.cc |
index 842d0234f317a8439e4b8b78257c5cadbcfb827b..8b21da072cde10f3881e221bc678fc4ad3bc2e21 100644 |
--- a/runtime/vm/debugger_test.cc |
+++ b/runtime/vm/debugger_test.cc |
@@ -2,9 +2,9 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
+#include "vm/debugger.h" |
#include "vm/dart_api_impl.h" |
#include "vm/dart_api_message.h" |
-#include "vm/debugger.h" |
#include "vm/message.h" |
#include "vm/unit_test.h" |
@@ -283,7 +283,6 @@ TEST_CASE(Debugger_PrintBreakpointsToJSONArray) { |
} |
} |
- |
static bool saw_paused_event = false; |
static void InspectPausedEvent(Dart_IsolateId isolate_id, |
@@ -300,7 +299,6 @@ static void InspectPausedEvent(Dart_IsolateId isolate_id, |
saw_paused_event = true; |
} |
- |
TEST_CASE(Debugger_PauseEvent) { |
const char* kScriptChars = |
"main() {\n" |
@@ -332,7 +330,6 @@ TEST_CASE(Debugger_PauseEvent) { |
EXPECT(saw_paused_event); |
} |
- |
static uint8_t* malloc_allocator(uint8_t* ptr, |
intptr_t old_size, |
intptr_t new_size) { |
@@ -340,10 +337,8 @@ static uint8_t* malloc_allocator(uint8_t* ptr, |
return reinterpret_cast<uint8_t*>(new_ptr); |
} |
- |
const char* rewind_frame_index = "-1"; |
- |
// Build and send a fake resume OOB message for testing purposes. |
void SendResumeMessage(Isolate* isolate) { |
// Format is: [ oob_type, port, seq, method_name, [keys], [values] ] |
@@ -433,7 +428,6 @@ void SendResumeMessage(Isolate* isolate) { |
} |
} |
- |
static void RewindOnce(Dart_IsolateId isolate_id, |
intptr_t bp_id, |
const Dart_CodeLocation& loc) { |
@@ -451,7 +445,6 @@ static void RewindOnce(Dart_IsolateId isolate_id, |
} |
} |
- |
TEST_CASE(Debugger_RewindOneFrame_Unoptimized) { |
SetFlagScope<bool> sfs(&FLAG_trace_rewind, true); |
@@ -490,7 +483,6 @@ TEST_CASE(Debugger_RewindOneFrame_Unoptimized) { |
EXPECT(saw_paused_event); |
} |
- |
TEST_CASE(Debugger_RewindTwoFrames_Unoptimized) { |
SetFlagScope<bool> sfs(&FLAG_trace_rewind, true); |
@@ -537,7 +529,6 @@ TEST_CASE(Debugger_RewindTwoFrames_Unoptimized) { |
EXPECT(saw_paused_event); |
} |
- |
TEST_CASE(Debugger_Rewind_Optimized) { |
SetFlagScope<bool> sfs1(&FLAG_trace_rewind, true); |
SetFlagScope<bool> sfs2(&FLAG_prune_dead_locals, false); |