OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/process/process.h" | 5 #include "base/process/process.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/process/kill.h" | 9 #include "base/process/kill.h" |
10 #include "base/test/multiprocess_test.h" | 10 #include "base/test/multiprocess_test.h" |
11 #include "base/test/test_timeouts.h" | 11 #include "base/test/test_timeouts.h" |
12 #include "base/threading/platform_thread.h" | 12 #include "base/threading/platform_thread.h" |
| 13 #include "build/build_config.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "testing/multiprocess_func_list.h" | 15 #include "testing/multiprocess_func_list.h" |
15 | 16 |
16 namespace { | 17 namespace { |
17 | 18 |
18 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
19 const int kExpectedStillRunningExitCode = 0x102; | 20 const int kExpectedStillRunningExitCode = 0x102; |
20 #else | 21 #else |
21 const int kExpectedStillRunningExitCode = 0; | 22 const int kExpectedStillRunningExitCode = 0; |
22 #endif | 23 #endif |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 "2:freezer:/chrome_renderers/to_be_frozen\n" | 216 "2:freezer:/chrome_renderers/to_be_frozen\n" |
216 "1:cpu:/chrome_renderers/background\n"; | 217 "1:cpu:/chrome_renderers/background\n"; |
217 | 218 |
218 EXPECT_FALSE(IsProcessBackgroundedCGroup(kNotBackgrounded)); | 219 EXPECT_FALSE(IsProcessBackgroundedCGroup(kNotBackgrounded)); |
219 EXPECT_TRUE(IsProcessBackgroundedCGroup(kBackgrounded)); | 220 EXPECT_TRUE(IsProcessBackgroundedCGroup(kBackgrounded)); |
220 } | 221 } |
221 | 222 |
222 #endif // defined(OS_CHROMEOS) | 223 #endif // defined(OS_CHROMEOS) |
223 | 224 |
224 } // namespace base | 225 } // namespace base |
OLD | NEW |