Index: base/shared_memory_unittest.cc |
=================================================================== |
--- base/shared_memory_unittest.cc (revision 55077) |
+++ base/shared_memory_unittest.cc (working copy) |
@@ -3,12 +3,13 @@ |
// found in the LICENSE file. |
#include "base/basictypes.h" |
-#include "base/multiprocess_test.h" |
#include "base/platform_thread.h" |
#include "base/scoped_nsautorelease_pool.h" |
#include "base/shared_memory.h" |
#include "base/scoped_ptr.h" |
+#include "base/test/multiprocess_test.h" |
#include "testing/gtest/include/gtest/gtest.h" |
+#include "testing/multiprocess_func_list.h" |
static const int kNumThreads = 5; |
static const int kNumTasks = 5; |
@@ -271,13 +272,11 @@ |
for (int i = 0; i < count; i++) { |
memories[i].Close(); |
} |
- |
} |
- |
// On POSIX it is especially important we test shmem across processes, |
// not just across threads. But the test is enabled on all platforms. |
-class SharedMemoryProcessTest : public MultiProcessTest { |
+class SharedMemoryProcessTest : public base::MultiProcessTest { |
public: |
static void CleanUp() { |
@@ -326,7 +325,7 @@ |
base::ProcessHandle handles[kNumTasks]; |
for (int index = 0; index < kNumTasks; ++index) { |
- handles[index] = SpawnChild("SharedMemoryTestMain"); |
+ handles[index] = SpawnChild("SharedMemoryTestMain", false); |
} |
int exit_code = 0; |
@@ -342,5 +341,4 @@ |
return SharedMemoryProcessTest::TaskTestMain(); |
} |
- |
} // namespace base |