| 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/template_util.h" | 5 #include "base/template_util.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 8 |
| 10 namespace base { | 9 namespace base { |
| 11 namespace { | 10 namespace { |
| 12 | 11 |
| 13 struct AStruct {}; | 12 struct AStruct {}; |
| 14 class AClass {}; | 13 class AClass {}; |
| 15 enum AnEnum {}; | 14 enum AnEnum {}; |
| 16 | 15 |
| 17 class Parent {}; | 16 class Parent {}; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 "IsMemberFunctionPointer"); | 98 "IsMemberFunctionPointer"); |
| 100 static_assert(is_member_function_pointer<int (AStruct::*)(int)>::value, | 99 static_assert(is_member_function_pointer<int (AStruct::*)(int)>::value, |
| 101 "IsMemberFunctionPointer"); | 100 "IsMemberFunctionPointer"); |
| 102 static_assert(is_member_function_pointer<int (AStruct::*)(int) const>::value, | 101 static_assert(is_member_function_pointer<int (AStruct::*)(int) const>::value, |
| 103 "IsMemberFunctionPointer"); | 102 "IsMemberFunctionPointer"); |
| 104 static_assert(is_member_function_pointer<int (AStruct::*)(int, int)>::value, | 103 static_assert(is_member_function_pointer<int (AStruct::*)(int, int)>::value, |
| 105 "IsMemberFunctionPointer"); | 104 "IsMemberFunctionPointer"); |
| 106 | 105 |
| 107 } // namespace | 106 } // namespace |
| 108 } // namespace base | 107 } // namespace base |
| OLD | NEW |