Commit bdaf8320 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Fixed Linux build.

TBR=ager@chromium.org
Review URL: http://codereview.chromium.org/20493

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1319 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 44b83d3e
...@@ -419,7 +419,7 @@ class Debugger { ...@@ -419,7 +419,7 @@ class Debugger {
static v8::DebugHostDispatchHandler host_dispatch_handler_; static v8::DebugHostDispatchHandler host_dispatch_handler_;
static void* host_dispatch_handler_data_; static void* host_dispatch_handler_data_;
friend class DebugMessageThread; friend class DebugMessageThread;
}; };
......
...@@ -3664,8 +3664,6 @@ TEST(DebuggerUnload) { ...@@ -3664,8 +3664,6 @@ TEST(DebuggerUnload) {
int host_dispatch_hit_count = 0; int host_dispatch_hit_count = 0;
static void HostDispatchHandlerHitCount(void* dispatch, void *data) { static void HostDispatchHandlerHitCount(void* dispatch, void *data) {
CHECK_EQ(dispatch, &HostDispatchHandlerHitCount);
CHECK_EQ(data, &HostDispatchHandlerHitCount);
host_dispatch_hit_count++; host_dispatch_hit_count++;
} }
...@@ -3686,14 +3684,15 @@ TEST(DebuggerHostDispatch) { ...@@ -3686,14 +3684,15 @@ TEST(DebuggerHostDispatch) {
// Setup message and host dispatch handlers. // Setup message and host dispatch handlers.
v8::Debug::SetMessageHandler(DummyMessageHandler); v8::Debug::SetMessageHandler(DummyMessageHandler);
v8::Debug::SetHostDispatchHandler(HostDispatchHandlerHitCount, v8::Debug::SetHostDispatchHandler(HostDispatchHandlerHitCount,
&HostDispatchHandlerHitCount); NULL);
// Fill a host dispatch and a continue command on the command queue before // Fill a host dispatch and a continue command on the command queue before
// generating a debug break. // generating a debug break.
v8::Debug::SendHostDispatch(&HostDispatchHandlerHitCount); v8::Debug::SendHostDispatch(NULL);
v8::Debug::SendCommand(buffer, AsciiToUtf16(command_continue, buffer)); v8::Debug::SendCommand(buffer, AsciiToUtf16(command_continue, buffer));
CompileRun("debugger"); CompileRun("debugger");
// The host dispatch callback should be called. // The host dispatch callback should be called.
CHECK_EQ(1, host_dispatch_hit_count); CHECK_EQ(1, host_dispatch_hit_count);
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment