diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-12 12:56:20 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-12 12:56:20 +0000 |
commit | 4003d7147b7de61f66bd76dcfdf0a56de54fb4f7 (patch) | |
tree | e28e2c975fb7fc6bc255fb81671c9879913a75c7 /chrome/common/resource_dispatcher_unittest.cc | |
parent | 5a62814d1d33572b1b3cbfed4eaf3f49a1ae5498 (diff) | |
download | chromium_src-4003d7147b7de61f66bd76dcfdf0a56de54fb4f7.zip chromium_src-4003d7147b7de61f66bd76dcfdf0a56de54fb4f7.tar.gz chromium_src-4003d7147b7de61f66bd76dcfdf0a56de54fb4f7.tar.bz2 |
Add more tests to unit_tests on Linux, and some platform cleanups.
Review URL: http://codereview.chromium.org/17277
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7864 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/resource_dispatcher_unittest.cc')
-rw-r--r-- | chrome/common/resource_dispatcher_unittest.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/common/resource_dispatcher_unittest.cc b/chrome/common/resource_dispatcher_unittest.cc index 5fefdcd..bf9cc51 100644 --- a/chrome/common/resource_dispatcher_unittest.cc +++ b/chrome/common/resource_dispatcher_unittest.cc @@ -5,6 +5,7 @@ #include <string> #include <vector> +#include "base/process.h" #include "base/ref_counted.h" #include "chrome/common/filter_policy.h" #include "chrome/common/resource_dispatcher.h" @@ -109,7 +110,8 @@ class ResourceDispatcherTest : public testing::Test, char* put_data_here = static_cast<char*>(shared_mem.memory()); memcpy(put_data_here, test_page_contents, test_page_contents_len); base::SharedMemoryHandle dup_handle; - EXPECT_TRUE(shared_mem.GiveToProcess(GetCurrentProcess(), &dup_handle)); + EXPECT_TRUE(shared_mem.GiveToProcess( + base::Process::Current().handle(), &dup_handle)); dispatcher_->OnReceivedData(request_id, dup_handle, test_page_contents_len); message_queue_.erase(message_queue_.begin()); |