OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <string> | 15 #include <string> |
16 #include <utility> | 16 #include <utility> |
17 | 17 |
18 #include "ipc/ipc_tests.h" | 18 #include "ipc/ipc_tests.h" |
19 | 19 |
20 #include "base/base_switches.h" | 20 #include "base/base_switches.h" |
21 #include "base/command_line.h" | 21 #include "base/command_line.h" |
22 #include "base/debug_on_start.h" | 22 #include "base/debug_on_start.h" |
23 #include "base/perftimer.h" | 23 #include "base/perftimer.h" |
24 #include "base/test/perf_test_suite.h" | 24 #include "base/test/perf_test_suite.h" |
25 #include "base/test/test_suite.h" | 25 #include "base/test/test_suite.h" |
26 #include "base/thread.h" | 26 #include "base/threading/thread.h" |
27 #include "ipc/ipc_descriptors.h" | 27 #include "ipc/ipc_descriptors.h" |
28 #include "ipc/ipc_channel.h" | 28 #include "ipc/ipc_channel.h" |
29 #include "ipc/ipc_channel_proxy.h" | 29 #include "ipc/ipc_channel_proxy.h" |
30 #include "ipc/ipc_message_utils.h" | 30 #include "ipc/ipc_message_utils.h" |
31 #include "ipc/ipc_switches.h" | 31 #include "ipc/ipc_switches.h" |
32 #include "testing/multiprocess_func_list.h" | 32 #include "testing/multiprocess_func_list.h" |
33 | 33 |
34 // Define to enable IPC performance testing instead of the regular unit tests | 34 // Define to enable IPC performance testing instead of the regular unit tests |
35 // #define PERFORMANCE_TEST | 35 // #define PERFORMANCE_TEST |
36 | 36 |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 #endif // PERFORMANCE_TEST | 537 #endif // PERFORMANCE_TEST |
538 | 538 |
539 int main(int argc, char** argv) { | 539 int main(int argc, char** argv) { |
540 #ifdef PERFORMANCE_TEST | 540 #ifdef PERFORMANCE_TEST |
541 int retval = base::PerfTestSuite(argc, argv).Run(); | 541 int retval = base::PerfTestSuite(argc, argv).Run(); |
542 #else | 542 #else |
543 int retval = base::TestSuite(argc, argv).Run(); | 543 int retval = base::TestSuite(argc, argv).Run(); |
544 #endif | 544 #endif |
545 return retval; | 545 return retval; |
546 } | 546 } |
OLD | NEW |