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

Side by Side Diff: chrome/utility/importer/firefox_importer_unittest_utils_mac.cc

Issue 1899083002: Convert //chrome from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 months 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/utility/importer/firefox_importer_unittest_utils.h ('k') | chrome/utility/importer/nss_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698