-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separeted unit tests for utils.h and ds.iterator.h in separate files.
Fixed a bug in ds.iterator.h due to virtual inheritance in SListNode/DListNode constructors. Tests are now available only when GTEST is 1 and YASI_TEST_THIS_MODULE is 1 Signed-off-by: unknown <saq10002@iteb-219.ad.engr.uconn.edu>
- Loading branch information
saq10002
committed
Oct 10, 2014
1 parent
5c038bf
commit 4d213c7
Showing
11 changed files
with
208 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// deliberately not using #pragma once | ||
|
||
// Are we required to test classes defined in this file? | ||
#if YASI_TEST_THIS_MODULE | ||
|
||
#if GTEST | ||
|
||
#define FRIEND_TEST_CLASS(className) \ | ||
friend class className | ||
|
||
#else // GTEST | ||
// GTest not available | ||
#define FRIEND_TEST_CLASS(className) | ||
|
||
#endif // GTEST | ||
|
||
#else // YASI_TEST_THIS_MODULE | ||
|
||
// We don't want to test classes defined in this file | ||
#define FRIEND_TEST_CLASS(className) | ||
|
||
|
||
#endif // YASI_TEST_THIS_MODULE |
Oops, something went wrong.