diff options
author | Pixel <pixel@nobis-crew.org> | 2012-04-02 07:27:33 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2012-04-02 07:27:33 -0700 |
commit | 983cb6320349852b16a4edc1c71d45f94b689544 (patch) | |
tree | 9dbe0275e88836fe90f778d5b406e2cfca39f2ee /tests | |
parent | ea652a2019e4cbbbdd0ca5ebda5ee6edbc4e2d59 (diff) |
Fixing unit tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-Sockets.cc | 6 | ||||
-rw-r--r-- | tests/test-Tasks.cc | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-Sockets.cc b/tests/test-Sockets.cc index 073548a..a3e2755 100644 --- a/tests/test-Sockets.cc +++ b/tests/test-Sockets.cc @@ -6,7 +6,7 @@ using namespace Balau; class Worker : public Task { public: Worker(IO<Socket> io, void *); - virtual const char * getName(); + virtual const char * getName() const; virtual void Do(); IO<Socket> m_io; String m_name; @@ -17,7 +17,7 @@ Worker::Worker(IO<Socket> io, void *) : m_io(io) { Printer::log(M_STATUS, "Got connection: %s", m_name.to_charp()); } -const char * Worker::getName() { +const char * Worker::getName() const { return m_name.to_charp(); } @@ -37,7 +37,7 @@ Listener<Worker> * listener; class Client : public Task { public: - virtual const char * getName() { return "Test client"; } + virtual const char * getName() const { return "Test client"; } virtual void Do() { Events::Timeout evt(0.1); waitFor(&evt); diff --git a/tests/test-Tasks.cc b/tests/test-Tasks.cc index 4b26406..272e61d 100644 --- a/tests/test-Tasks.cc +++ b/tests/test-Tasks.cc @@ -11,7 +11,7 @@ static CustomPrinter * customPrinter = NULL; class TestTask : public Task { public: - virtual const char * getName() { return "MainTask"; } + virtual const char * getName() const { return "TestTask"; } private: virtual void Do() { customPrinter->setLocal(); |