From 76aac1e0281a0518734c4404e9fb0814ff3c7b20 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Mon, 16 Mar 2009 16:45:36 +0000 Subject: Port visitedlink tests to Linux. Also make them pass on Linux, which may fix the attached bug. The problem was that the debug check was in wrong place (too early, before every member was initialized), so it failed in the test. BUG=8710 Review URL: http://codereview.chromium.org/48005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11734 0039d316-1c4b-4281-b951-d872f2087c98 --- base/shared_memory.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'base/shared_memory.h') diff --git a/base/shared_memory.h b/base/shared_memory.h index 744b348..bd6770c 100644 --- a/base/shared_memory.h +++ b/base/shared_memory.h @@ -58,6 +58,9 @@ class SharedMemory { // invalid value; NULL for a HANDLE and -1 for a file descriptor) static bool IsHandleValid(const SharedMemoryHandle& handle); + // Return invalid handle (see comment above for exact definition). + static SharedMemoryHandle NULLHandle(); + // Creates or opens a shared memory segment based on a name. // If read_only is true, opens the memory as read-only. // If open_existing is true, and the shared memory already exists, -- cgit v1.1