diff options
author | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-11 19:15:49 +0000 |
---|---|---|
committer | agl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-11 19:15:49 +0000 |
commit | 26a323ff00cc293f835a801da8c60b7ecdd36472 (patch) | |
tree | 45cbe23e37efb77d3aab4f2ee74cb148707433af /chrome/renderer/render_thread_unittest.cc | |
parent | 71f65dd427f9a579d258162fd02a73ae9a500916 (diff) | |
download | chromium_src-26a323ff00cc293f835a801da8c60b7ecdd36472.zip chromium_src-26a323ff00cc293f835a801da8c60b7ecdd36472.tar.gz chromium_src-26a323ff00cc293f835a801da8c60b7ecdd36472.tar.bz2 |
POSIX: TestVisitedMsg; use valid file descriptor (unit_tests fix)
We need to pass a valid file descriptor when sending messages on
POSIX, otherwise the send will fail. Use stdin in tests.
Review URL: http://codereview.chromium.org/21258
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9586 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_thread_unittest.cc')
-rw-r--r-- | chrome/renderer/render_thread_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/render_thread_unittest.cc b/chrome/renderer/render_thread_unittest.cc index 9d13170..12e6941 100644 --- a/chrome/renderer/render_thread_unittest.cc +++ b/chrome/renderer/render_thread_unittest.cc @@ -49,7 +49,7 @@ TEST_F(RenderThreadTest, TestVisitedMsg) { IPC::Message* msg = new ViewMsg_VisitedLink_NewTable(NULL); #elif defined(OS_POSIX) IPC::Message* msg = new ViewMsg_VisitedLink_NewTable( - base::SharedMemoryHandle()); + base::SharedMemoryHandle(0, false)); #endif ASSERT_TRUE(msg); // Message goes nowhere, but this confirms Init() has happened. |