Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Unified Diff: chrome/utility/importer/firefox_importer_unittest_utils_mac.cc

Issue 2473993003: Delete IPC::ChannelPosix, IPC::ChannelWin and IPC::AttachmentBroker. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/test/fake_engine/fake_engine_app_tests.cc ('k') | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/importer/firefox_importer_unittest_utils_mac.cc
diff --git a/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc b/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc
index 209fbcee9b7cefabad9ad821021b9d734c792cbc..777a461ba2112d6fd87bea0ccc4194f0bcecf248 100644
--- a/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc
+++ b/chrome/utility/importer/firefox_importer_unittest_utils_mac.cc
@@ -17,15 +17,16 @@
#include "base/process/launch.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
+#include "base/test/multiprocess_test.h"
#include "base/test/test_timeouts.h"
#include "base/threading/thread_task_runner_handle.h"
#include "chrome/common/importer/firefox_importer_utils.h"
+#include "content/public/common/content_descriptors.h"
#include "content/public/common/mojo_channel_switches.h"
#include "ipc/ipc_channel.h"
#include "ipc/ipc_descriptors.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_message.h"
-#include "ipc/ipc_multiprocess_test.h"
#include "mojo/edk/embedder/embedder.h"
#include "mojo/edk/embedder/platform_channel_pair.h"
#include "mojo/edk/embedder/scoped_platform_handle.h"
@@ -55,8 +56,9 @@ base::Process LaunchNSSDecrypterChildProcess(
options.environ["DYLD_FALLBACK_LIBRARY_PATH"] = nss_path.value();
base::FileHandleMappingVector fds_to_map;
- fds_to_map.push_back(std::pair<int,int>(mojo_handle.get().handle,
- kPrimaryIPCChannel + base::GlobalDescriptors::kBaseDescriptor));
+ fds_to_map.push_back(std::pair<int, int>(
+ mojo_handle.get().handle,
+ kMojoIPCChannel + base::GlobalDescriptors::kBaseDescriptor));
options.fds_to_remap = &fds_to_map;
return base::LaunchProcess(cl.argv(), options);
@@ -278,13 +280,13 @@ class FFDecryptorClientChannelListener : public IPC::Listener {
};
// Entry function in child process.
-MULTIPROCESS_IPC_TEST_MAIN(NSSDecrypterChildProcess) {
+MULTIPROCESS_TEST_MAIN(NSSDecrypterChildProcess) {
base::MessageLoopForIO main_message_loop;
FFDecryptorClientChannelListener listener;
mojo::edk::SetParentPipeHandle(
mojo::edk::ScopedPlatformHandle(mojo::edk::PlatformHandle(
- base::GlobalDescriptors::GetInstance()->Get(kPrimaryIPCChannel))));
+ kMojoIPCChannel + base::GlobalDescriptors::kBaseDescriptor)));
mojo::ScopedMessagePipeHandle mojo_handle =
mojo::edk::CreateChildMessagePipe(
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
« no previous file with comments | « blimp/test/fake_engine/fake_engine_app_tests.cc ('k') | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698