OLD | NEW |
1 // Copyright (c) 2009 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 #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/eintr_wrapper.h" | 10 #include "base/eintr_wrapper.h" |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/multiprocess_test.h" | 12 #include "base/multiprocess_test.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
14 #include "base/platform_thread.h" | 14 #include "base/platform_thread.h" |
15 #include "base/process_util.h" | 15 #include "base/process_util.h" |
16 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
| 17 #include "base/utf_string_conversions.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
18 | 19 |
19 #if defined(OS_LINUX) | 20 #if defined(OS_LINUX) |
20 #include <errno.h> | 21 #include <errno.h> |
21 #include <malloc.h> | 22 #include <malloc.h> |
22 #include <glib.h> | 23 #include <glib.h> |
23 #endif | 24 #endif |
24 #if defined(OS_POSIX) | 25 #if defined(OS_POSIX) |
25 #include <dlfcn.h> | 26 #include <dlfcn.h> |
26 #include <fcntl.h> | 27 #include <fcntl.h> |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 | 720 |
720 TEST_F(OutOfMemoryTest, PsychoticallyBigObjCObject) { | 721 TEST_F(OutOfMemoryTest, PsychoticallyBigObjCObject) { |
721 ASSERT_DEATH(while ((value_ = | 722 ASSERT_DEATH(while ((value_ = |
722 base::AllocatePsychoticallyBigObjCObject())) {}, ""); | 723 base::AllocatePsychoticallyBigObjCObject())) {}, ""); |
723 } | 724 } |
724 | 725 |
725 #endif // !ARCH_CPU_64_BITS | 726 #endif // !ARCH_CPU_64_BITS |
726 #endif // OS_MACOSX | 727 #endif // OS_MACOSX |
727 | 728 |
728 #endif // !defined(OS_WIN) | 729 #endif // !defined(OS_WIN) |
OLD | NEW |