Index: runtime/vm/object_test.cc |
diff --git a/runtime/vm/object_test.cc b/runtime/vm/object_test.cc |
index 6c0d3b9b0be88dc85705e6b0aa148d912a33a74c..6f37cb2fe99cbc92bcec039a0bf57678080f30a8 100644 |
--- a/runtime/vm/object_test.cc |
+++ b/runtime/vm/object_test.cc |
@@ -4079,10 +4079,8 @@ TEST_CASE(FunctionWithBreakpointNotInlined) { |
EXPECT(func_b.CanBeInlined()); |
// After setting a breakpoint in a function A.b, it is no longer inlineable. |
- Breakpoint* bpt = |
- Isolate::Current()->debugger()->SetBreakpointAtLine(name, |
- kBreakpointLine); |
- ASSERT(bpt != NULL); |
+ result = Dart_SetBreakpoint(NewString(TestCase::url()), kBreakpointLine); |
+ EXPECT_VALID(result); |
EXPECT(!func_b.CanBeInlined()); |
} |