| 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 "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gtest/googlemock/include/gmock/gmock.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/googletest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 using ::testing::Mock; | 14 using ::testing::Mock; |
| 15 using ::testing::Return; | 15 using ::testing::Return; |
| 16 using ::testing::StrictMock; | 16 using ::testing::StrictMock; |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 class IncompleteType; | 21 class IncompleteType; |
| 22 | 22 |
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 base::Callback<void(int)> null_cb; | 820 base::Callback<void(int)> null_cb; |
| 821 ASSERT_TRUE(null_cb.is_null()); | 821 ASSERT_TRUE(null_cb.is_null()); |
| 822 EXPECT_DEATH(base::Bind(null_cb, 42), ""); | 822 EXPECT_DEATH(base::Bind(null_cb, 42), ""); |
| 823 } | 823 } |
| 824 | 824 |
| 825 #endif // (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) && | 825 #endif // (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) && |
| 826 // GTEST_HAS_DEATH_TEST | 826 // GTEST_HAS_DEATH_TEST |
| 827 | 827 |
| 828 } // namespace | 828 } // namespace |
| 829 } // namespace base | 829 } // namespace base |
| OLD | NEW |