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/utility/importer/firefox_importer_unittest_utils.h" | 5 #include "chrome/utility/importer/firefox_importer_unittest_utils.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 private: | 277 private: |
278 NSSDecryptor decryptor_; | 278 NSSDecryptor decryptor_; |
279 IPC::Sender* sender_; | 279 IPC::Sender* sender_; |
280 }; | 280 }; |
281 | 281 |
282 // Entry function in child process. | 282 // Entry function in child process. |
283 MULTIPROCESS_IPC_TEST_MAIN(NSSDecrypterChildProcess) { | 283 MULTIPROCESS_IPC_TEST_MAIN(NSSDecrypterChildProcess) { |
284 base::MessageLoopForIO main_message_loop; | 284 base::MessageLoopForIO main_message_loop; |
285 FFDecryptorClientChannelListener listener; | 285 FFDecryptorClientChannelListener listener; |
286 | 286 |
287 scoped_ptr<IPC::Channel> channel = IPC::Channel::CreateClient( | 287 std::unique_ptr<IPC::Channel> channel = |
288 kTestChannelID, &listener); | 288 IPC::Channel::CreateClient(kTestChannelID, &listener); |
289 CHECK(channel->Connect()); | 289 CHECK(channel->Connect()); |
290 listener.SetSender(channel.get()); | 290 listener.SetSender(channel.get()); |
291 | 291 |
292 // run message loop | 292 // run message loop |
293 base::MessageLoop::current()->Run(); | 293 base::MessageLoop::current()->Run(); |
294 | 294 |
295 return 0; | 295 return 0; |
296 } | 296 } |
OLD | NEW |