Changeset 8349334 in mainline


Ignore:
Timestamp:
2018-07-05T21:41:24Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
122c3b8
Parents:
3adbbda
git-author:
Dzejrou <dzejrou@…> (2018-05-15 22:02:39)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:24)
Message:

cpp: created a constructor/destructor call counting mock object that can be used to test smart pointers, added unique_ptr tests

Location:
uspace/lib/cpp
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/Makefile

    r3adbbda r8349334  
    6161        src/internal/test/deque.cpp \
    6262        src/internal/test/map.cpp \
     63        src/internal/test/memory.cpp \
     64        src/internal/test/mock.cpp \
    6365        src/internal/test/numeric.cpp \
    6466        src/internal/test/set.cpp \
  • uspace/lib/cpp/include/internal/test/tests.hpp

    r3adbbda r8349334  
    243243            void test_stack();
    244244    };
     245
     246    class memory_test: public test_suite
     247    {
     248        public:
     249            bool run(bool) override;
     250            const char* name() override;
     251
     252        private:
     253            void test_unique_ptr();
     254    };
    245255}
    246256
Note: See TracChangeset for help on using the changeset viewer.