| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/importer/firefox_importer_unittest_utils.h" | 5 #include "chrome/browser/importer/firefox_importer_unittest_utils.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/base_switches.h" | 8 #include "base/base_switches.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 private: | 262 private: |
| 263 NSSDecryptor decryptor_; | 263 NSSDecryptor decryptor_; |
| 264 IPC::Sender* sender_; | 264 IPC::Sender* sender_; |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 // Entry function in child process. | 267 // Entry function in child process. |
| 268 MULTIPROCESS_IPC_TEST_MAIN(NSSDecrypterChildProcess) { | 268 MULTIPROCESS_IPC_TEST_MAIN(NSSDecrypterChildProcess) { |
| 269 MessageLoopForIO main_message_loop; | 269 MessageLoopForIO main_message_loop; |
| 270 FFDecryptorClientChannelListener listener; | 270 FFDecryptorClientChannelListener listener; |
| 271 | 271 |
| 272 IPC::Channel channel(kTestChannelID, IPC::Channel::MODE_CLIENT, &listener); | 272 IPC::Channel channel(kTestChannelID, |
| 273 IPC::Channel::MODE_CLIENT, &listener); |
| 273 CHECK(channel.Connect()); | 274 CHECK(channel.Connect()); |
| 274 listener.SetSender(&channel); | 275 listener.SetSender(&channel); |
| 275 | 276 |
| 276 // run message loop | 277 // run message loop |
| 277 MessageLoop::current()->Run(); | 278 MessageLoop::current()->Run(); |
| 278 | 279 |
| 279 return 0; | 280 return 0; |
| 280 } | 281 } |
| OLD | NEW |