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

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

Issue 293013: Deprecate PathService::Get(..., wstring*) and use FilePath instead. (Closed)
Patch Set: Created 11 years, 2 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug_on_start.h" 8 #include "base/debug_on_start.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 bool got_result; 116 bool got_result;
117 117
118 private: 118 private:
119 IPC::Message::Sender* sender_; // weak 119 IPC::Message::Sender* sender_; // weak
120 }; 120 };
121 121
122 FFUnitTestDecryptorProxy::FFUnitTestDecryptorProxy() 122 FFUnitTestDecryptorProxy::FFUnitTestDecryptorProxy()
123 : child_process_(0) { 123 : child_process_(0) {
124 } 124 }
125 125
126 bool FFUnitTestDecryptorProxy::Setup(std::wstring& nss_path) { 126 bool FFUnitTestDecryptorProxy::Setup(const std::wstring& nss_path) {
127 // Create a new message loop and spawn the child process. 127 // Create a new message loop and spawn the child process.
128 message_loop_.reset(new MessageLoopForIO()); 128 message_loop_.reset(new MessageLoopForIO());
129 129
130 listener_.reset(new FFDecryptorServerChannelListener()); 130 listener_.reset(new FFDecryptorServerChannelListener());
131 channel_.reset(new IPC::Channel(kTestChannelID, 131 channel_.reset(new IPC::Channel(kTestChannelID,
132 IPC::Channel::MODE_SERVER, 132 IPC::Channel::MODE_SERVER,
133 listener_.get())); 133 listener_.get()));
134 channel_->Connect(); 134 channel_->Connect();
135 listener_->SetSender(channel_.get()); 135 listener_->SetSender(channel_.get());
136 136
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 257
258 IPC::Channel channel(kTestChannelID, IPC::Channel::MODE_CLIENT, &listener); 258 IPC::Channel channel(kTestChannelID, IPC::Channel::MODE_CLIENT, &listener);
259 channel.Connect(); 259 channel.Connect();
260 listener.SetSender(&channel); 260 listener.SetSender(&channel);
261 261
262 // run message loop 262 // run message loop
263 MessageLoop::current()->Run(); 263 MessageLoop::current()->Run();
264 264
265 return 0; 265 return 0;
266 } 266 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698