OLD | NEW |
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 #define _CRT_SECURE_NO_WARNINGS | 5 #define _CRT_SECURE_NO_WARNINGS |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/alias.h" | 10 #include "base/debug/alias.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 #endif | 40 #endif |
41 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
42 #include <windows.h> | 42 #include <windows.h> |
43 #endif | 43 #endif |
44 #if defined(OS_MACOSX) | 44 #if defined(OS_MACOSX) |
45 #include <mach/vm_param.h> | 45 #include <mach/vm_param.h> |
46 #include <malloc/malloc.h> | 46 #include <malloc/malloc.h> |
47 #include "base/process_util_unittest_mac.h" | 47 #include "base/process_util_unittest_mac.h" |
48 #endif | 48 #endif |
49 | 49 |
| 50 using base::FilePath; |
| 51 |
50 namespace { | 52 namespace { |
51 | 53 |
52 #if defined(OS_WIN) | 54 #if defined(OS_WIN) |
53 const wchar_t kProcessName[] = L"base_unittests.exe"; | 55 const wchar_t kProcessName[] = L"base_unittests.exe"; |
54 #else | 56 #else |
55 const wchar_t kProcessName[] = L"base_unittests"; | 57 const wchar_t kProcessName[] = L"base_unittests"; |
56 #endif // defined(OS_WIN) | 58 #endif // defined(OS_WIN) |
57 | 59 |
58 #if defined(OS_ANDROID) | 60 #if defined(OS_ANDROID) |
59 const char kShellPath[] = "/system/bin/sh"; | 61 const char kShellPath[] = "/system/bin/sh"; |
(...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1269 SetUpInDeathAssert(); | 1271 SetUpInDeathAssert(); |
1270 while ((value_ = base::AllocatePsychoticallyBigObjCObject())) {} | 1272 while ((value_ = base::AllocatePsychoticallyBigObjCObject())) {} |
1271 }, ""); | 1273 }, ""); |
1272 } | 1274 } |
1273 | 1275 |
1274 #endif // !ARCH_CPU_64_BITS | 1276 #endif // !ARCH_CPU_64_BITS |
1275 #endif // OS_MACOSX | 1277 #endif // OS_MACOSX |
1276 | 1278 |
1277 #endif // !defined(OS_ANDROID) && !defined(OS_OPENBSD) && | 1279 #endif // !defined(OS_ANDROID) && !defined(OS_OPENBSD) && |
1278 // !defined(OS_WIN) && !defined(ADDRESS_SANITIZER) | 1280 // !defined(OS_WIN) && !defined(ADDRESS_SANITIZER) |
OLD | NEW |