OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
3 * All rights reserved. | 3 * All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 object_manager_->DestroyPack(pack_); | 63 object_manager_->DestroyPack(pack_); |
64 } | 64 } |
65 | 65 |
66 TEST_F(ObjectBaseTest, ObjectIdOfNullIsZero) { | 66 TEST_F(ObjectBaseTest, ObjectIdOfNullIsZero) { |
67 ASSERT_EQ(0, GetObjectId(NULL)); | 67 ASSERT_EQ(0, GetObjectId(NULL)); |
68 } | 68 } |
69 | 69 |
70 TEST_F(ObjectBaseTest, ObjectIdOfObjectIsReturned) { | 70 TEST_F(ObjectBaseTest, ObjectIdOfObjectIsReturned) { |
71 ASSERT_EQ(pack_->id(), GetObjectId(pack_)); | 71 ASSERT_EQ(pack_->id(), GetObjectId(pack_)); |
72 } | 72 } |
| 73 |
| 74 TEST_F(ObjectBaseTest, ObjectClassName) { |
| 75 ASSERT_EQ(0, |
| 76 strcmp(ObjectBase::GetApparentClass()->name(), |
| 77 "o3d.ObjectBase")); |
| 78 ASSERT_EQ(0, |
| 79 strcmp(ObjectBase::GetApparentClass()->unqualified_name(), |
| 80 "ObjectBase")); |
| 81 } |
| 82 |
73 } // namespace o3d | 83 } // namespace o3d |
OLD | NEW |