Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: core/cross/object_base_test.cc

Issue 149300: These files were meant to be checked in with ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « core/cross/buffer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « core/cross/buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698