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

Side by Side Diff: chrome/common/ipc_tests.cc

Issue 21208: POSIX: Transfer network data using shared memory (Closed)
Patch Set: ... Created 11 years, 10 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
« no previous file with comments | « chrome/common/ipc_send_fds_test.cc ('k') | chrome/common/resource_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #elif defined(OS_POSIX) 9 #elif defined(OS_POSIX)
10 #include <sys/types.h> 10 #include <sys/types.h>
11 #include <unistd.h> 11 #include <unistd.h>
12 #endif 12 #endif
13 13
14 #include <stdio.h> 14 #include <stdio.h>
15 #include <iostream> 15 #include <iostream>
16 #include <string> 16 #include <string>
17 17
18 #include "chrome/common/ipc_tests.h" 18 #include "chrome/common/ipc_tests.h"
19 19
20 #include "base/at_exit.h" 20 #include "base/at_exit.h"
21 #include "base/base_switches.h" 21 #include "base/base_switches.h"
22 #include "base/command_line.h" 22 #include "base/command_line.h"
23 #include "base/debug_on_start.h" 23 #include "base/debug_on_start.h"
24 #include "base/perftimer.h" 24 #include "base/perftimer.h"
25 #include "base/perf_test_suite.h" 25 #include "base/perf_test_suite.h"
26 #include "base/test_suite.h" 26 #include "base/test_suite.h"
27 #include "base/thread.h" 27 #include "base/thread.h"
28 #include "chrome/common/chrome_switches.h" 28 #include "chrome/common/chrome_switches.h"
29 #if defined(OS_POSIX) 29 #if defined(OS_POSIX)
30 #include "chrome/common/file_descriptor_posix.h" 30 #include "chrome/common/descriptor_set_posix.h"
31 #endif 31 #endif
32 #include "chrome/common/ipc_channel.h" 32 #include "chrome/common/ipc_channel.h"
33 #include "chrome/common/ipc_channel_proxy.h" 33 #include "chrome/common/ipc_channel_proxy.h"
34 #include "chrome/common/ipc_message_utils.h" 34 #include "chrome/common/ipc_message_utils.h"
35 #include "testing/multiprocess_func_list.h" 35 #include "testing/multiprocess_func_list.h"
36 36
37 // Define to enable IPC performance testing instead of the regular unit tests 37 // Define to enable IPC performance testing instead of the regular unit tests
38 // #define PERFORMANCE_TEST 38 // #define PERFORMANCE_TEST
39 39
40 const wchar_t kTestClientChannel[] = L"T1"; 40 const wchar_t kTestClientChannel[] = L"T1";
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 #endif // PERFORMANCE_TEST 475 #endif // PERFORMANCE_TEST
476 476
477 int main(int argc, char** argv) { 477 int main(int argc, char** argv) {
478 #ifdef PERFORMANCE_TEST 478 #ifdef PERFORMANCE_TEST
479 int retval = PerfTestSuite(argc, argv).Run(); 479 int retval = PerfTestSuite(argc, argv).Run();
480 #else 480 #else
481 int retval = TestSuite(argc, argv).Run(); 481 int retval = TestSuite(argc, argv).Run();
482 #endif 482 #endif
483 return retval; 483 return retval;
484 } 484 }
OLDNEW
« no previous file with comments | « chrome/common/ipc_send_fds_test.cc ('k') | chrome/common/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698