Changeset d76c105 for src/Patterns/unittests
- Timestamp:
- Jan 5, 2011, 1:48:15 PM (15 years ago)
- Children:
- 567640
- Parents:
- 1afcbe
- git-author:
- Frederik Heber <heber@…> (01/05/11 11:26:48)
- git-committer:
- Frederik Heber <heber@…> (01/05/11 13:48:15)
- Location:
- src/Patterns/unittests
- Files:
-
- 6 added
- 2 edited
-
Makefile.am (modified) (2 diffs)
-
PrototypeFactoryUnitTest.cpp (added)
-
PrototypeFactoryUnitTest.hpp (added)
-
stubs/CloneStub.hpp (modified) (3 diffs)
-
stubs/PrototypeFactoryStub.cpp (added)
-
stubs/PrototypeFactoryStub.def (added)
-
stubs/PrototypeFactoryStub.hpp (added)
-
stubs/PrototypeFactoryStub.undef (added)
Legend:
- Unmodified
- Added
- Removed
-
src/Patterns/unittests/Makefile.am
r1afcbe rd76c105 14 14 FactoryUnitTest \ 15 15 ObserverUnitTest \ 16 PrototypeFactoryUnitTest \ 16 17 RegistryUnitTest \ 17 18 SingletonUnitTest … … 73 74 ObserverUnitTest_LDADD = $(TESTLIBS) 74 75 76 PrototypeFactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 77 PrototypeFactoryUnitTest.cpp \ 78 PrototypeFactoryUnitTest.hpp \ 79 stubs/CloneStub.cpp \ 80 stubs/CloneStub.hpp \ 81 stubs/CommonStub.cpp \ 82 stubs/CommonStub.hpp \ 83 stubs/PrototypeFactoryStub.hpp \ 84 stubs/PrototypeFactoryStub.cpp \ 85 ../PrototypeFactory.hpp \ 86 ../FactoryTypeList.hpp \ 87 ../PrototypeFactory_impl.hpp 88 PrototypeFactoryUnitTest_LDADD = $(TESTLIBS) 89 75 90 RegistryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 76 91 RegistryUnitTest.cpp \ -
src/Patterns/unittests/stubs/CloneStub.hpp
r1afcbe rd76c105 24 24 }; 25 25 26 class CloneTest; 27 class PrototypeFactoryStub; 28 26 29 template <class T> 27 30 class Prototype : … … 29 32 public Clone<IPrototype> 30 33 { 31 public: 34 /** 35 * Prototype Factory is friend because it needs to access protected cstor 36 * to instantiate prototypes. 37 */ 38 friend class PrototypeFactoryStub; 39 40 /** 41 * Test is friend such that it can access protected cstor. 42 */ 43 friend class CloneTest; 44 45 protected: 32 46 Prototype() { 33 47 member.setcount(0); … … 35 49 ~Prototype() {}; 36 50 51 public: 37 52 void count() { 38 53 member.count();
Note:
See TracChangeset
for help on using the changeset viewer.
