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 #include "base/bind.h" | 5 #include "base/bind.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "build/build_config.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
16 | 18 |
17 using ::testing::Mock; | 19 using ::testing::Mock; |
18 using ::testing::Return; | 20 using ::testing::Return; |
19 using ::testing::StrictMock; | 21 using ::testing::StrictMock; |
20 | 22 |
21 namespace base { | 23 namespace base { |
22 namespace { | 24 namespace { |
23 | 25 |
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
870 base::Callback<void(int)> null_cb; | 872 base::Callback<void(int)> null_cb; |
871 ASSERT_TRUE(null_cb.is_null()); | 873 ASSERT_TRUE(null_cb.is_null()); |
872 EXPECT_DEATH(base::Bind(null_cb, 42), ""); | 874 EXPECT_DEATH(base::Bind(null_cb, 42), ""); |
873 } | 875 } |
874 | 876 |
875 #endif // (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) && | 877 #endif // (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) && |
876 // GTEST_HAS_DEATH_TEST | 878 // GTEST_HAS_DEATH_TEST |
877 | 879 |
878 } // namespace | 880 } // namespace |
879 } // namespace base | 881 } // namespace base |
OLD | NEW |