OLD | NEW |
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 #ifndef BASE_MULTIPROCESS_TEST_H__ | 5 #ifndef BASE_MULTIPROCESS_TEST_H__ |
6 #define BASE_MULTIPROCESS_TEST_H__ | 6 #define BASE_MULTIPROCESS_TEST_H__ |
7 | 7 |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/platform_test.h" | |
10 #include "base/process_util.h" | 9 #include "base/process_util.h" |
11 #include "base/string_util.h" | 10 #include "base/string_util.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "testing/multiprocess_func_list.h" | 12 #include "testing/multiprocess_func_list.h" |
| 13 #include "testing/platform_test.h" |
14 | 14 |
15 #if defined(OS_POSIX) | 15 #if defined(OS_POSIX) |
16 #include <sys/types.h> | 16 #include <sys/types.h> |
17 #include <unistd.h> | 17 #include <unistd.h> |
18 #endif | 18 #endif |
19 | 19 |
20 // Command line switch to invoke a child process rather than | 20 // Command line switch to invoke a child process rather than |
21 // to run the normal test suite. | 21 // to run the normal test suite. |
22 static const wchar_t kRunClientProcess[] = L"client"; | 22 static const wchar_t kRunClientProcess[] = L"client"; |
23 | 23 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 std::string switchstr = WideToUTF8(wswitchstr); | 67 std::string switchstr = WideToUTF8(wswitchstr); |
68 clvec.push_back(switchstr.c_str()); | 68 clvec.push_back(switchstr.c_str()); |
69 base::LaunchApp(clvec, false, &handle); | 69 base::LaunchApp(clvec, false, &handle); |
70 #endif | 70 #endif |
71 | 71 |
72 return handle; | 72 return handle; |
73 } | 73 } |
74 }; | 74 }; |
75 | 75 |
76 #endif // BASE_MULTIPROCESS_TEST_H__ | 76 #endif // BASE_MULTIPROCESS_TEST_H__ |
OLD | NEW |