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

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

Issue 10387218: Make GlobalDescriptors::MaybeGet return -1 when the key is not found. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing NaCl tests. Created 8 years, 5 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 | Annotate | Revision Log
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/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"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/test/test_timeouts.h" 13 #include "base/test/test_timeouts.h"
14 #include "chrome/browser/importer/firefox_importer_utils.h" 14 #include "chrome/browser/importer/firefox_importer_utils.h"
15 #include "ipc/ipc_channel.h" 15 #include "ipc/ipc_channel.h"
16 #include "ipc/ipc_descriptors.h" 16 #include "ipc/ipc_descriptors.h"
17 #include "ipc/ipc_message.h" 17 #include "ipc/ipc_message.h"
18 #include "ipc/ipc_multiprocess_test.h"
18 #include "ipc/ipc_switches.h" 19 #include "ipc/ipc_switches.h"
19 #include "testing/multiprocess_func_list.h" 20 #include "testing/multiprocess_func_list.h"
20 21
21 #define IPC_MESSAGE_IMPL 22 #define IPC_MESSAGE_IMPL
22 #include "chrome/browser/importer/firefox_importer_unittest_messages_internal.h" 23 #include "chrome/browser/importer/firefox_importer_unittest_messages_internal.h"
23 24
24 namespace { 25 namespace {
25 26
26 // Name of IPC Channel to use for Server<-> Child Communications. 27 // Name of IPC Channel to use for Server<-> Child Communications.
27 const char kTestChannelID[] = "T1"; 28 const char kTestChannelID[] = "T1";
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 virtual void OnChannelError() { 257 virtual void OnChannelError() {
257 MessageLoop::current()->Quit(); 258 MessageLoop::current()->Quit();
258 } 259 }
259 260
260 private: 261 private:
261 NSSDecryptor decryptor_; 262 NSSDecryptor decryptor_;
262 IPC::Sender* sender_; 263 IPC::Sender* sender_;
263 }; 264 };
264 265
265 // Entry function in child process. 266 // Entry function in child process.
266 MULTIPROCESS_TEST_MAIN(NSSDecrypterChildProcess) { 267 MULTIPROCESS_IPC_TEST_MAIN(NSSDecrypterChildProcess) {
267 MessageLoopForIO main_message_loop; 268 MessageLoopForIO main_message_loop;
268 FFDecryptorClientChannelListener listener; 269 FFDecryptorClientChannelListener listener;
269 270
270 IPC::Channel channel(kTestChannelID, IPC::Channel::MODE_CLIENT, &listener); 271 IPC::Channel channel(kTestChannelID, IPC::Channel::MODE_CLIENT, &listener);
271 CHECK(channel.Connect()); 272 CHECK(channel.Connect());
272 listener.SetSender(&channel); 273 listener.SetSender(&channel);
273 274
274 // run message loop 275 // run message loop
275 MessageLoop::current()->Run(); 276 MessageLoop::current()->Run();
276 277
277 return 0; 278 return 0;
278 } 279 }
OLDNEW
« no previous file with comments | « base/global_descriptors_posix.cc ('k') | chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698